Hanjoung Lee
3606350a48
Add a regression test for #280
...
Releated issue: #280
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
2015-12-11 15:52:37 +03:00
Laszlo Vidacs
54ade8b29e
Unicode string builtin tests added.
...
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-12-11 15:39:36 +03:00
Tamas Czene
f8f7eb4251
allow_to_customize_address_for_jerry_mem_heap
...
JerryScript-DCO-1.0-Signed-off-by: Tamas Czene tczene.u-szeged@partner.samsung.com
2015-12-11 10:09:17 +03:00
SaeHie Park
fe2a76fced
Fix Unittests build fails when LTO is disabled
...
Related issue: #774
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-12-10 10:28:16 +09:00
Zsolt Borbély
ab6d777220
Fix unittests build, when all-in-one is enabled.
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-12-08 14:06:17 +01:00
SaeHie Park
8fbde244e9
Move log message output(fprintf, puthcar) to target code
...
Related issue #752
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-12-08 07:48:16 +09:00
Evgeny Gavrin
9cb711ad80
Add script to sort and categorize fails in directory.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
2015-12-07 14:40:29 +03:00
Sung-Jae Lee
2378b0cf3d
Merge pull request #767 from lemmaa/add-generate-map-file-option
...
Generate `jerry.map` file on build
JerryScript-DCO-1.0-Signed-off-by: Sung-Jae Lee sjlee@mail.com
2015-12-07 20:34:05 +09:00
Sung-Jae Lee
b3e5322c4e
Generate jerry.map file on build.
...
JerryScript-DCO-1.0-Signed-off-by: Sung-Jae Lee sjlee@mail.com
2015-12-07 19:08:06 +09:00
Laszlo Vidacs
b8b3b1f275
Test and fix CESU-8 handling in String builtins.
...
Fixes #757
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-12-02 12:38:06 +03:00
chunseok lee
cb0087b517
remove 15.07.04.02-002.js from jerry-test-suites
...
Number.prototype.toString([radix]) is implementation-dependant.
JerryScript-DCO-1.0-Signed-off-by: chunseok lee chunseok.lee@samsung.com
2015-12-02 12:31:59 +03:00
Ilyong Cho
1c21e16c7b
Adding Jerry api for triggering gc.
...
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
2015-12-02 12:26:07 +03:00
pius.lee
ece246ef9e
Add foreach function for inquiry properties into obj
...
JerryScript-DCO-1.0-Signed-off-by: pius.lee pius.lee@samsung.com
2015-12-02 12:20:12 +03:00
Zidong Jiang
3d286b46d0
Fix bug in linked_list_block_size().
...
and Ruben Ayrapetyan fix a bug in linked_list_switch_to_next_elem
Related issue: #720
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
2015-12-02 12:12:03 +03:00
Hanjoung Lee
ce3b785c83
Fix lexing number literal
...
Related issue: #745
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
2015-12-02 11:36:30 +09:00
Akos Kiss
ab68d093e8
Whitespace cleanup: tab removal in tests directory
...
Also changed space-based indentation in touched files if they used
4 spaces for indentation (instead of the most-often-used 2).
Also added new line to end of touched files if they did not end
that way.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-11-28 21:47:37 +01:00
Akos Kiss
133fc6adfd
Whitespace cleanup: tab removal in tools directory
...
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-11-28 21:47:37 +01:00
Akos Kiss
5ffc9abb59
Whitespace cleanup: tab removal in CMakeLists.txt
...
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-11-28 21:47:37 +01:00
Laszlo Vidacs
cd7cf53ecb
Rearrange String.prototype.indexOf, lastIndexOf and Replace helpers
...
Fixes issue #515
JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
2015-11-27 14:09:11 +01:00
Hanjoung Lee
f20db76dfb
Fix parse error of parse_switch_statement
...
Related issue: #725
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
2015-11-27 12:19:09 +09:00
Hanjoung Lee
17f7bad242
Fix [[HasInstance]] operation for external functions
...
Related issue: #736
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
2015-11-27 12:02:09 +09:00
Zsolt Borbély
fe157301a2
Add option to enable all-in-one build mode
...
Related issue: #626
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-11-25 14:01:07 +01:00
Zsolt Borbély
aa74c3e2e0
Remove duplcation of ecma_reject function
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-11-25 14:01:07 +01:00
SaeHie Park
d11a9e1c0d
Change processor name from x86 to i686 for 32bit host
...
* to make it same as 'uname -p' result
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-11-24 18:48:23 +09:00
Evgeny Gavrin
17a5dd27bb
Add support of afl-fuzzer.
...
Related issue: #333 , #454
Works only with default libc:
```
$ make debug.linux -j TOOLCHAIN="./build/configs/toolchain_afl.cmake" USE_COMPILER_DEFAULT_LIBC=YES
```
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
2015-11-23 17:59:22 +03:00
Evgeny Gavrin
e80cc3592c
Add several regression tests from closed issues.
...
Related issues: #274 , #276 , #281 , #340 , #359 , #429 , #453 , #541 , #613 , #639 , #640
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
2015-11-19 14:36:59 +03:00
Zsolt Borbély
f17f785b6e
Make tools/perf.sh executable
...
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-11-18 09:49:01 +01:00
Akos Kiss
8006635636
Pass -Wno-error to linker in case of LTO builds
...
When linking a release-built command line shell on Linux against
default glibc with LTO enabled, a long-open gcc bug causes spurious
warning to be emitted around a call to fread. The `-Werror` flag
turns this into an error and the build process fails.
Unfortunately, there is no way to selectively disable the warning
with pragmas or `-Wno-error=xxx` flags.
Thus, this patch introduces some helper macros and lists all
warnings explicitly with `-Werror=xxx` instead of covering all
warnings with the `-Werror` flag. This way, warnings enabled by
command line flags do cause errors, but those raised by warning
attributes (which cannot be suppressed by any `-Wno-error=xxx`
flags) don't.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-11-17 22:20:23 +01:00
Hanjoung Lee
140982e900
Fix PropertyName not to be resolved as a local variable
...
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
JerryScript-DCO-1.0-Signed-off-by: Hanjoung Lee hanjoung.lee@samsung.com
2015-11-13 13:29:38 +09:00
Akos Kiss
7022aa26b0
Add a "Hello JerryScript!" program to the tests
...
The current code base does not contain any "first JavaScript
program" for those who build JerryScript for Linux console. It
does contain a LED-blinking example -- blinky.js -- but that's
only useful on an developer board where LEDs-to-be-blinked are
available. And the rest of the tests are just that: tests, giving
passed/failed information but nothing eye candy.
This patch adds a simple JS script that can act as a warm welcome
to anyone after the first successful build trying to run something
proving that Jerry works.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-11-11 11:32:08 +00:00
Szilard Ledan
36e90d952f
Global object unescape routine
...
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
2015-11-11 10:48:35 +01:00
Ruben Ayrapetyan
90122d9f33
Fix configuration of recordset's and literal storage's parameters according to MEM_ALIGNMENT_LOG and MEM_CP_WIDTH changes.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-09 21:24:03 +03:00
Ilyong Cho
94cb6aec26
Fix prop_getters stack manipulation for assignment expression.
...
Related issue: #614
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
2015-11-09 11:02:57 +09:00
Zsolt Borbély
eaca37c4c9
Simplify severity mechanism in mem allocator.
...
Related issue: #63
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
2015-11-04 17:06:43 +01:00
Ruben Ayrapetyan
8af87206c9
Fix ecma_builtin_global_object_decode_uri_helper.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-03 18:42:01 +03:00
Seo-Young Isabelle Hwang
b3c27e5635
Update README.md
...
Add link of project page
2015-11-03 23:10:55 +09:00
Seo-Young Isabelle Hwang
ed2eafba54
Update README.md
...
add gitter badge
2015-11-03 23:08:29 +09:00
Seo-Young Isabelle Hwang
5702eaab83
Merge pull request #701 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2015-11-03 23:05:43 +09:00
The Gitter Badger
eaa4be04b0
Add Gitter badge
2015-11-03 13:59:31 +00:00
Ruben Ayrapetyan
4aaf829320
Fix handling of non-zero status code in tools/perf.sh.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-03 16:51:30 +03:00
Ruben Ayrapetyan
9194240ada
Fix memory leak in jerry_api_set_object_native_handle.
...
Related issue: #683
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-03 16:41:19 +03:00
Zoltan Herczeg
c81c730129
Add support for reporting mallocs / frees to valgrind through client requests.
...
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg@inf.u-szeged.hu
2015-11-03 03:57:49 -08:00
Ruben Ayrapetyan
911163e787
Optimize object literal byte-code - store property names as literal arguments, instead passing them through register variables.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:47:18 +03:00
Ruben Ayrapetyan
1fe2817457
Introduce parser-time optimization that moves function's argument values to registers.
...
For functions with the optimization applied:
- vm puts arguments values immediately to registers without putting them to variables in lexical environment;
- number of arguments is extracted from corresponding 'reg_var_decl' instruction's argument;
- for functions that also don't have local variables, lexical environments are not created.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:15:13 +03:00
Ruben Ayrapetyan
46c65985e5
Create [[FormalParameters]] function object's internal property only if corresponding function has non-zero number of formal parameters.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:12:42 +03:00
Ruben Ayrapetyan
f24effa629
Read function's scope flags only in ecma_op_create_function_object instead of call sites of the routine.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:12:42 +03:00
Ruben Ayrapetyan
4d2ad40475
Remove var_decls_count field from scopes_tree header; getting "var_decl"s count using linked_list_get_length instead.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:10:45 +03:00
Ruben Ayrapetyan
0ef9c486c1
Introduce linked_list_chunk_header (header of a linked_list's chunk), add list's length field into linked_list's header; support removal of elements in linked_list.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 17:10:45 +03:00
Ruben Ayrapetyan
da47c671e7
List of lazy instantiated properties' names in ecma_op_object_get_property_names.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 16:32:31 +03:00
Ruben Ayrapetyan
9c3aa4a003
Improve performance of item 3.l of arrays' [[DefineOwnProperty]] (ecma_op_array_object_define_own_property).
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-11-02 16:32:09 +03:00