issue_owner_repo
sequencelengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "jerryscript-project", "jerryscript" ]
This would make them more readable. See #1039
Add symbolic constants for performing increment in vm.cpp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1057/comments
0
2016-05-13T09:52:05Z
2016-05-18T12:05:57Z
https://github.com/jerryscript-project/jerryscript/issues/1057
154,674,959
1,057
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 210ba6d Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript new String(Number.MAX_VALUE) ``` ###### Backtrace: ``` ICE: Assertion 's == 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c(ecma_number_to_utf8_string):1273. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x000000000048575d in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60 60 SYSCALL_2 (gdb) bt #0 0x000000000048575d in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60 #1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92 #2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78 #3 0x000000000041d3f1 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:54 #4 0x000000000041d032 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68 #5 0x000000000041d079 in jerry_assert_fail (assertion=0x49c4ec "s == 0", file=0x49c2d0 "jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c", function=0x48c5b0 <__func__.3096.lto_priv.420> "ecma_number_to_utf8_string", line=1273) at jerryscript/jerry-core/jrt/jrt-fatals.c:95 #6 0x000000000043ba34 in ecma_number_to_utf8_string (num=1.7976931348623157e+308, buffer_p=0x7fffffffc850 "8e+308", buffer_size=64) at jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c:1273 #7 0x000000000043bf48 in ecma_new_ecma_string_from_number (num=1.7976931348623157e+308) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:264 #8 0x00000000004341ff in ecma_op_to_string (value=625) at jerryscript/jerry-core/ecma/operations/ecma-conversion.c:361 #9 0x000000000042e109 in ecma_op_create_string_object (arguments_list_p=0x7fffffffcb94, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-string-object.c:61 #10 0x00000000004180e4 in ecma_builtin_string_dispatch_construct (arguments_list_p=0x7fffffffcb94, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string.c:149 #11 0x0000000000474618 in ecma_builtin_dispatch_construct (obj_p=0x8b2230 <mem_heap+432>, arguments_list_p=0x7fffffffcb94, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:63 #12 0x0000000000431e43 in ecma_op_function_construct (func_obj_p=0x8b2230 <mem_heap+432>, arguments_list_p=0x7fffffffcb94, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:846 #13 0x00000000004809f6 in opfunc_construct.lto_priv.785 (frame_ctx_p=0x7fffffffcc10) at jerryscript/jerry-core/vm/vm.c:437 #14 0x0000000000476a87 in vm_execute (frame_ctx_p=0x7fffffffcc10, arg_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2436 #15 0x0000000000476b0d in vm_run_with_inline_stack (frame_ctx_p=0x7fffffffcc10, arg_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2467 #16 0x0000000000476cf5 in vm_run (bytecode_header_p=0x8b2248 <mem_heap+456>, this_binding_value=35, lex_env_p=0x8b20b8 <mem_heap+56>, is_eval_code=false, arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2541 #17 0x00000000004804f7 in vm_run_global (error_value_p=0x7fffffffccf8) at jerryscript/jerry-core/vm/vm.c:190 #18 0x0000000000483af3 in jerry_run (error_value_p=0x7fffffffce90) at jerryscript/jerry-core/jerry.c:1759 #19 0x0000000000481cc5 in main (argc=3, argv=0x7fffffffd388) at jerryscript/main-unix.c:511 ```
Assertion 's == 0' failed in ecma_number_to_utf8_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1054/comments
1
2016-05-11T15:44:22Z
2016-07-08T12:22:31Z
https://github.com/jerryscript-project/jerryscript/issues/1054
154,276,354
1,054
[ "jerryscript-project", "jerryscript" ]
If jerryscript is intended to be built as an external library for inclusion into other projects, are there any thoughts on renaming all internal functions (for example, 'mem_init') - that may clash with functions in other libraries - to give them a namespace?
Namespace for internal functions
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1052/comments
7
2016-05-11T13:44:58Z
2016-06-16T06:23:00Z
https://github.com/jerryscript-project/jerryscript/issues/1052
154,247,307
1,052
[ "jerryscript-project", "jerryscript" ]
### Missing API references in `docs/API-REFERENCE.md` - [x] jerry_api_acquire_value - [x] jerry_api_create_boolean_value - [x] jerry_api_create_error_sz - [x] jerry_api_create_null_value - [x] jerry_api_create_number_value - [x] jerry_api_create_object_value - [x] jerry_api_create_string_sz - [x] jerry_api_create_string_value - [x] jerry_api_create_undefined_value - [x] jerry_api_create_void_value - [x] jerry_api_foreach_object_field - [x] jerry_api_gc - [x] jerry_api_get_boolean_value - [x] jerry_api_get_number_value - [x] jerry_api_get_object_field_value_sz - [x] jerry_api_get_object_value - [x] jerry_api_get_string_length - [x] jerry_api_get_string_size - [x] jerry_api_get_string_value - [x] jerry_api_set_object_field_value_sz - [x] jerry_api_value_is_boolean - [x] jerry_api_value_is_function - [x] jerry_api_value_is_null - [x] jerry_api_value_is_number - [x] jerry_api_value_is_object - [x] jerry_api_value_is_string - [x] jerry_api_value_is_undefined - [x] jerry_api_value_is_void - [x] jerry_api_value_to_string - [x] jerry_exec_snapshot - [x] jerry_get_memory_limits - [x] jerry_parse_and_save_snapshot - [x] jerry_register_external_magic_strings
Add missing API references
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1051/comments
0
2016-05-11T09:19:30Z
2016-07-14T12:26:52Z
https://github.com/jerryscript-project/jerryscript/issues/1051
154,196,833
1,051
[ "jerryscript-project", "jerryscript" ]
Hi, I'm recently interested in optimizing the memory management technique in lightweight JS engine. JerryScript uses the special policy for memory management, i.e. static heap reservation, and compressed pointer unlike other js engines such as duktape, v7, and mujs. As mentioned in IoT.js issue (https://github.com/Samsung/iotjs/issues/211), this heap reservation harms the other memory allocation in constrained memory environment. Why does jerryscript maintain this static heap reservation despite of that problem? IMHO, the reasons why jerry statically reserves heap region are 1. to use compressed pointer since it would save the memory by reducing the size of data structure including object pointer. In order to use compressed pointer, the contiguous memory region should be guaranteed so as to decompress that pointer via only base memory address (i.e. this base memory address and contiguous memory region guaranteed by static memory reservation). 2. The second reason is for the efficient management for the chunk (8 byte memory region). Using malloc / free as the other js engines do critically wastes the memory since malloc maintains chunk metadata (at least ptr, size for later free) even though chunk size is small so that it doubles memory usage in allocating small chunks such as 8-byte chunks, the most frequently used memory unit in jerryscript. 3. The last reason that I guess is to give such privilege to JS engine. The application running on the jerryscript could terminate by the out of memory error, but it MUST NOT terminate during run on the jerryscript code (It's about reliability issue of the engine). Is there other reason of the design to use static heap reservation? Appreciated with Any opinions. Thanks.
Why does jerryscript use static heap reservation?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1048/comments
1
2016-05-10T12:14:42Z
2016-07-28T09:55:06Z
https://github.com/jerryscript-project/jerryscript/issues/1048
153,991,698
1,048
[ "jerryscript-project", "jerryscript" ]
Contrary to the documentation for the function, this doesn't seem to return false when the field doesn't exist. This appears to be because the underlying call to ecma_op_general_object_get will just return an undefined value instead of an error, if the property doesn't exist. A simple fix would be to change the docs, but I think the behavior as stated is useful; I'm trying to use it. :) For now, I can work around it by checking for undefined value.
jerry_api_get_object_field_value doesn't return what it claims to
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1041/comments
1
2016-05-05T19:40:36Z
2016-05-09T07:56:45Z
https://github.com/jerryscript-project/jerryscript/issues/1041
153,308,336
1,041
[ "jerryscript-project", "jerryscript" ]
Since commit https://github.com/Samsung/jerryscript/commit/b523cf3cd10c02d96cfa43b4469508eabd58cf52 The `k64f` target which can be compiled with `target-mbed` in PR https://github.com/Samsung/jerryscript/pull/1019 Fails with: ``` bash /usr/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv7e-m/libc_nano.a(lib_a-gettimeofdayr.o): In function `_gettimeofday_r': gettimeofdayr.c:(.text._gettimeofday_r+0xe): undefined reference to `_gettimeofday' ``` @akiss77 @knightburton
_gettimeofday linking error for target-mbed
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1032/comments
3
2016-04-26T10:21:12Z
2016-05-06T18:51:36Z
https://github.com/jerryscript-project/jerryscript/issues/1032
151,096,777
1,032
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 0c7d3fb Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript new RegExp(); new (new Date())(RegExp.prototype.compile(RegExp.prototype)); ``` ###### Backtrace: ``` ICE: Assertion 'string_p->refs_and_container >= ECMA_STRING_REF_ONE' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c(ecma_copy_or_ref_ecma_string):451. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x000000000048d693 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60 60 SYSCALL_2 (gdb) bt #0 0x000000000048d693 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60 #1 0x00000000004003e5 in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:117 #2 0x00000000004003b7 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:103 #3 0x0000000000414f38 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:54 #4 0x000000000041ebe7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68 #5 0x000000000041ec2e in jerry_assert_fail (assertion=0x4a3fb8 "string_p->refs_and_container >= ECMA_STRING_REF_ONE", file=0x4a3d50 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.c", function=0x4946b0 <__func__.3587.lto_priv.423> "ecma_copy_or_ref_ecma_string", line=451) at jerryscript/jerry-core/jrt/jrt-fatals.c:95 #6 0x000000000043a614 in ecma_copy_or_ref_ecma_string (string_p=0x8bb3f0 <mem_heap+880>) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:451 #7 0x000000000044c48d in ecma_copy_value (value=882) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:416 #8 0x000000000044c4ef in ecma_copy_value_if_not_object (value=882) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:438 #9 0x000000000044e4e2 in ecma_named_data_property_assign_value (obj_p=0x8bb150 <mem_heap+208>, prop_p=0x8bb3f9 <mem_heap+889>, value=882) at jerryscript/jerry-core/ecma/base/ecma-helpers.c:1144 #10 0x000000000042b0c8 in re_initialize_props (re_obj_p=0x8bb150 <mem_heap+208>, source_p=0x8bb3f0 <mem_heap+880>, flags=0) at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c:150 #11 0x000000000047cb91 in ecma_builtin_regexp_prototype_compile (this_arg=211, pattern_arg=211, flags_arg=8) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.c:149 #12 0x000000000047c71e in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=211, arguments_list=0x7fffffffcb80, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #13 0x000000000047b87f in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=211, arguments_list=0x7fffffffcb80, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #14 0x000000000047b0c8 in ecma_builtin_dispatch_call (obj_p=0x8bb3c8 <mem_heap+840>, this_arg_value=211, arguments_list_p=0x7fffffffcb80, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:535 #15 0x00000000004381fb in ecma_op_function_call (func_obj_p=0x8bb3c8 <mem_heap+840>, this_arg_value=211, arguments_list_p=0x7fffffffcb80, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:651 #16 0x0000000000482b03 in opfunc_call.lto_priv.805 (frame_ctx_p=0x7fffffffcbf0) at jerryscript/jerry-core/vm/vm.c:379 #17 0x0000000000481ba0 in vm_execute (frame_ctx_p=0x7fffffffcbf0, arg_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2431 #18 0x0000000000481c68 in vm_run_with_inline_stack (frame_ctx_p=0x7fffffffcbf0, arg_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2467 #19 0x0000000000481e50 in vm_run (bytecode_header_p=0x8bb250 <mem_heap+464>, this_binding_value=35, lex_env_p=0x8bb0b8 <mem_heap+56>, is_eval_code=false, arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2541 #20 0x000000000048273c in vm_run_global (error_value_p=0x7fffffffccd8) at jerryscript/jerry-core/vm/vm.c:190 #21 0x00000000004894b2 in jerry_run (error_value_p=0x7fffffffce70) at jerryscript/jerry-core/jerry.c:1755 #22 0x0000000000487699 in main (argc=3, argv=0x7fffffffd368) at jerryscript/main-unix.c:511 ```
Assertion 'string_p->refs_and_container >= ECMA_STRING_REF_ONE' failed in ecma_copy_or_ref_ecma_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1031/comments
1
2016-04-25T16:54:12Z
2016-11-25T06:26:47Z
https://github.com/jerryscript-project/jerryscript/issues/1031
150,924,219
1,031
[ "jerryscript-project", "jerryscript" ]
Hi, I want to build Jerryscript for LLVM in Contiki/Galileo board. Can you please point me to what Makefile/compiler options I should change? Previously I [built Jerryscript for Contiki OS/Galileo board](https://github.com/Samsung/jerryscript/issues/827). Basically, I made a directory `jerryscript/targets/contiki-x86`, wrote a Makefile `jerryscript/targets/contiki-x86/Makefile.contikix86` for Contiki/Galileo board and set the appropriate toolchain. To build in LLVM, I've so far tried the following changes but haven't been successful to build JerryScript. 1. Updated PATH variable with `llvm/build/bin` path and Modified compiler options in Makefile.contikix86 as ``` jerry: ... ... -DCMAKE_TOOLCHAIN_FILE=build/configs/toolchain_external_clang.cmake \ -DEXTERNAL_LIBC_INTERFACE=$(CONTIKI)/platform/galileo/bsp/libc/i586-elf/include \ -DEXTERNAL_CMAKE_SYSTEM_PROCESSOR=x86 \ -DEXTERNAL_CMAKE_C_COMPILER=clang \ -DEXTERNAL_CMAKE_CXX_COMPILER=clang++ \ -DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS) $(CFLAGS)" ``` 2. Wrote `build/configs/toolchain_external_clang.cmake` as ``` ... ... CMAKE_FORCE_C_COMPILER(${EXTERNAL_CMAKE_C_COMPILER} Clang) CMAKE_FORCE_CXX_COMPILER(${EXTERNAL_CMAKE_CXX_COMPILER} Clang) ``` 3. Changed Imported Library Options in `JerryScript/CMakeLists.txt` as ``` elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") add_library(${PREFIX_IMPORTED_LIB}libclang STATIC IMPORTED) execute_process(COMMAND ${CMAKE_C_COMPILER} ${FLAGS_COMMON_ARCH} -print-file-name= OUTPUT_VARIABLE IMPORTED_LIBCLANG_RT_LOCATION OUTPUT_STRIP_TRAILING_WHITESPACE) set(IMPORTED_LIBCLANG_RT_LOCATION "/home/llvm-git/build/lib/libclang.so") set_property(TARGET ${PREFIX_IMPORTED_LIB}libclang PROPERTY IMPORTED_LOCATION ${IMPORTED_LIBCLANG_RT_LOCATION}) ``` @seanshpark
Build Jerryscript for LLVM
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1027/comments
3
2016-04-22T20:11:51Z
2016-07-28T21:18:04Z
https://github.com/jerryscript-project/jerryscript/issues/1027
150,461,036
1,027
[ "jerryscript-project", "jerryscript" ]
# Foreword I bear much love for autotools. However, I accept that JerryScript and several projects around it (e.g., IoT.js, libtuv) have decided to use cmake a long time ago. So, I wont propose to drop cmake for autotools. But still, I feel that the current build system needs a major revision. (Still, should I be not the only one craving for autotools, do let me know :) ) # Analysis To me, `cmake` is/should be analogous to `configure`: I tell it whether I want cross compilation or not, whether I'd like to disable some features or not, whether I want a debug or a release build, or where to find some dependencies -- and then it creates a Makefile for me so that when I run `make` with the build or install targets, that variant of the project will be built for me which I requested at the time of configuration. And this is where the current build system deviates from the conventions. The build directory is not set up to build exactly one configuration of the project but potentially several variants: right now, the same build directory can/must be used for debug and release builds, for full or compact profile versions, etc. After a `make precommit`, I have 10 jerry core lib variants, 2 jerry libc variants, 10 jerry libm variants, and 10 command line interpreter binaries in `build/obj/linux`! And because we have to differentiate between them, they have quite non-standard names, like libdebug-mem_stats.jerry-core.a, librelease.jerry-libc.linux.lib.a, librelease-mem_stress_test.jerry-libm.lib.a, or debug.linux. This can seem to be easy for us developers because the current build system ensures that at every precommit we build and test all configurations and we don't forget anything. But it's not what "others" (i.e., users, packagers, embedders) are used to. Rather, after the configuration happened and the build command finished, they (but even I) would expect a build dir to contain, say, 3 libraries and 1 command line tool: libjerry-core.a, libjerry-libc.a, libjerry-libm.a, and jerry (or something like that). # Proposal I suggest to rework the CMakeLists according to the above, i.e., one build dir should deal with (build) exactly one configuration of the project's libraries and tools. I think we can still adapt the Makefile in the root directory in such a way that we keep building and testing everything that we used to build and test with the current build system. # Risks - Although we can keep every configuration built and tested, libs and binaries _may_ turn up not where they used to (e.g., not at build/bin/debug.linux/jerry), or the invocation of the build system _may_ change. This can cause annoyance for developers. - We have some users/embedders who are already relying on the current build system and resulting file names. (E.g., just have a look at https://github.com/Samsung/jerryscript/blob/master/targets/nuttx-stm32f4/Makefile.nuttx , once build finishes, libs are renamed and copied around.) They all will need to adapt. This is a breaking change. However, I _do_ believe that it is worth making.
Re-thinking the build system (proposal)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/998/comments
5
2016-04-09T22:09:33Z
2016-08-19T11:45:28Z
https://github.com/jerryscript-project/jerryscript/issues/998
147,168,324
998
[ "jerryscript-project", "jerryscript" ]
The travis is green, but there are some error in the log: https://travis-ci.org/Samsung/jerryscript/jobs/121156143 `$> make precommit` fails on my workstation. (Ubuntu 14.04, x86_64)
Precommit fails on the current master
https://api.github.com/repos/jerryscript-project/jerryscript/issues/994/comments
1
2016-04-08T08:26:04Z
2016-11-25T06:26:46Z
https://github.com/jerryscript-project/jerryscript/issues/994
146,856,272
994
[ "jerryscript-project", "jerryscript" ]
Hi, I would like to nominate Akos Kiss to become a JerryScript maintainer. He already have reviewed 38 pull requests, and landed 56 patches. The list of these follows. 38 informal reviews: - #971 : Optimize string character access for ascii strings - #970 : Fix precommit scripts on OSX - #961 : Use code unit instead of code point - #955 : Allow external builds to use non-gnu compilers - #949 : Use '-Werror' instead of '-Werror=...' for Jerry libc - #948 : Storing byte code size in the byte code header. - #947 : Few improvements for RegExp - #947 : Make target provide jerry-port.c - #944 : Add acquire_value API to simplify caller code - #941 : Don't use messages for errors by default - #938 : Warning fixes. - #931 : Fix warning when returning from vm_loop. - #929 : Disable date object related system calls by default. - #920 : Non-recursive vm_loop - #917 : Fix the format of doxygen comments of output arguments - #916 : Add another argument for the JERRY_STATIC_ASSERT with the description of the assert statement. - #915 : Build fix - #914 : Various enhancements - #912 : Fix 'jerry-test-suite/13/13-011.js' fail in compact profile - #904 : Rearrange fields of ecma_property_t to be naturally aligned. - #901 : Remove EXTERN_C macros and use block based solution - #896 : Fix style issues and improve vera++ rules. - #893 : Optimize 'lit_get_magic_string_size' calls - #888 : Remove completion value. - #885 : Warning fixes. - #884 : README.md: add an hello.js example - #877 : Improve 'tools/run-perf-test.sh' - #876 : Eliminate cpp featureset - #873 : Fix system call related date builtin functions - #868 : Move the logic of Valgrind-support check to the CMake part. - #866 : Abort the build-process when the build-configuration is unsupported - #852 : Fix 'Segmentation fault on String.Replace' - #838 : Fix the correct number of command line arguments check. - #836 : remove the c++ syntax, struct::xxx - #831 : Add JerryScript logo. - #813 : Compact Byte Code parser and executor for Jerry (release branch). - #790 : Test the build options - #488 : Enhancement of parser operand handling, compaction of instruction dumper 56 pull requests merged into master (touching the build system, tests, online testing infrastructure, libc & fdlibm fixes, refactorings, fixes, and code size improvements in core): - #974 : Fix regexp character classes with \uNNNN and \xNN code points - #973 : Fix: code-related vera++ rules should not be enforced in comments - #972 : Remove exec mode from non-executable files - #967 : Add unit testing of fdlibm - #965 : Fix SCCS IDs in fdlibm - #963 : Fix `.size longjmp` in the linux port of jerry-libc - #960 : Refactor the printing of memory usage statistics - #959 : Improve the dumping of literals - #958 : Fix initialization from incompatible pointer type error in `re_dump_bytecode` - #954 : Remove support for per-instruction memory statistics - #953 : Fix terminology of snapshot saving in literals - #952 : Unify the naming scheme of all header defines - #951 : Check unit tests with vera++ & fix reported issues - #943 : Fix size types - #937 : Remove dead macros from memory management code - #936 : Change pool-based allocation to heap-based allocation in jerry.c - #934 : Remove memory management-related dead code - #932 : Add full profile to MCU build targets - #928 : Add `STRIP_RELEASE_BINARY` option to Makefile - #926 : Remove the prerequisites installation and MCU build steps from Travis CI - #925 : Remove default handling of build options from Makefile - #924 : Remove unused `EXTERNAL_` variables from Makefile - #913 : Replace bit field manipulation functions with macros - #909 : Improve the usability of test runner scripts - #908 : Replace the `EXTERN_C` macro with `extern "C" {` block in fdlibm - #907 : Drop unimplemented run context stubs - #906 : Add some more `const`s to get data moved from .data to .rodata - #905 : Refactor ECMA builtin template - #903 : Move cppcheck logic from Makefile and CMakeLists.txt to tools/check-cppcheck.sh - #902 : Fix tools/check-signed-off.sh to handle PRs not based on HEAD - #899 : Add merge commit support to tools/check-signed-off.sh and… - #898 : Add ARM cross build and QEMU user space emulated tests to the CI - #895 : Quick fix for Travis CI: remove signed-off check - #894 : Add Travis CI badge to readme - #892 : Turn some global variables `static const` - #891 : Get the alpha order of lexer keywords right - #890 : Change the layout of the doxygen-generated documentation - #889 : Eliminating doxygen warnings by fixing the documentation documentation enhancement - #887 : Move Doxyfile to the root directory of the project enhancement infrastructure - #886 : Add support for travis-ci integration enhancement infrastructure - #880 : Remove `jerry_port_` functions from test-common.h bug minor - #872 : Remove cppcheck and vera++ from prerequisites enhancement infrastructure style - #871 : Remove references to non-existent parser/js/bc and parser/js/collections directories enhancement infrastructure - #870 : Rename docs/Doxygen to docs/Doxyfile enhancement infrastructure - #867 : Refactoring the build system enhancement infrastructure - #849 : Add generated documentation to gitignore enhancement infrastructure - #845 : Refactoring jerry-libc to squeeze out some extra bytes from the code (+fixes) - #841 : Eliminate code duplication in memory statistics printing enhancement memory management - #834 : Revive mem_stats.sh - #753 : Tab removal - #719 : Pass -Wno-error to linker in case of LTO builds - #715 : Add a "Hello JerryScript!" program to the tests - #408 : Makefile refactor - #146 : Make exit behaviour of `jerry_fatal` flag-dependent - #141 : Add `abort ()` to jerry-libc - #134 : Terminate with signal in case of an assert Any seconds?
Nominating Akos Kiss (akiss77) for JerryScript Maintainer status
https://api.github.com/repos/jerryscript-project/jerryscript/issues/992/comments
7
2016-04-07T07:41:24Z
2016-05-05T13:44:54Z
https://github.com/jerryscript-project/jerryscript/issues/992
146,535,639
992
[ "jerryscript-project", "jerryscript" ]
It would make some conversations much easier if they could be had over real time chat.
[Meta] is there a public IRC or Slack channel (or equivalent) for JerryScript?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/968/comments
2
2016-03-17T22:07:46Z
2016-03-17T23:13:34Z
https://github.com/jerryscript-project/jerryscript/issues/968
141,719,336
968
[ "jerryscript-project", "jerryscript" ]
# Motivation Lately, there have been several PRs (#945 #946 #956 #957) that pointed out that the port API of jerry is not that easy to use by embedders that are not in the main code base and thus could benefit from improvements. Taking a closer look at some parts of the code also revealed that even the use cases in the main code base could become cleaner after some rethinking-refactoring. # Analysis I've built jerry with `make LTO=OFF ALL_IN_ONE=ON` and ran `nm` on the resulting jerry-core library to see what symbols it defines and -- most importantly -- what external symbols it references. Below is the list of external symbols (categorization by me): ``` "termination" U abort U exit "i/o" U printf U putchar U stderr U vfprintf "math" U acos U asin U atan U atan2 U ceil U cos U exp U fabs U floor U fmod U log U pow U sin U sqrt U tan "general libc" U longjmp U memcmp U memcpy U memmove U memset U rand U setjmp U strlen U strncmp ``` IMO, the "math" and "general libc" categories cover very fundamental functionalities, which a port shouldn't be allowed to override. However, the "termination" and "i/o" categories can be port specific, and we should think about what we actually use them for and how we should let the ports give their specific implementation. # Proposal I propose not to replicate the low-level libc API in the port API but to make the port functions "semantic". ## Port API: Termination ``` c /** * Signal the port that jerry experienced a fatal failure from which it cannot * recover. * * @param code gives the cause of the error. * * Note: jerry expects the function not to return. * * Example: a libc-based port may implement this with exit() or abort(). */ void jerry_port_fatal (jerry_fatal_code_t code); ``` It should be the embedder application and/or the port that decides whether exit or abort is to be called. This differs from the current approach, where jerry even provides an api function to switch between exit/abort mode of fatal termination. This would make that function unnecessary. _Note:_ It is highly questionable whether a library should be able to terminate an application. However, as of now, we only have the concept of completion code around jerry_parse and jerry_run. Most of the other API functions have no way of signaling an error. So, let's keep the termination approach for now with this port function. ## Port API: I/O ``` c /** * Print a string to the console. The function should implement a printf-like * interface, where the first argument specifies a format string on how to * stringify the rest of the parameter list. * * This function is only called with strings coming from the executed ECMAScript * wanting to print something as the result of its normal operation. * * Example: a libc-based port may implement this with vprintf(). */ void jerry_port_log_console (const char *fmt, ...); /** * Display or log an error message. The function should implement a printf-like * interface, where the first argument specifies a format string on how to * stringify the rest of the parameter list. * * This function is only called with messages coming from the jerry engine as * the result of some abnormal operation. * * @param level ??? (warning, error, fatal) * * Example: a libc-based port may implement this with vfprintf(stderr). */ void jerry_port_log_error (int level, const char *fmt, ...); /** * Display or log a debug message. The function should implement a printf-like * interface, where the first argument specifies a format string on how to * stringify the rest of the parameter list. * * This function is only called with debug messages coming from the jerry engine * describing its internal operations (e.g., data structure dumps or tracing * info). * * @param level ??? (numeric?) * * Example: a libc-based port may implement this with vfprintf(logfile). */ void jerry_port_log_debug (int level, const char *fmt, ...); ``` These should be the only I/O functions jerry calls. All calls to putchar, vfprintf, and putchar should be rewritten to one of these, depending on what jerry wants to print. It should be the port that decides what a console is, or whether error and debug messages are logged to the same console or saved to a database or to a file. ## Additional Port APIs The above proposal covers and re-thinks only those functionalities, which are already in the project. There might be need for additional port APIs (e.g., memory management, #946). They should/might be analysed and proposed a similar way.
Re-thinking the Jerry Port API (proposal)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/964/comments
53
2016-03-12T12:32:25Z
2016-08-19T11:56:06Z
https://github.com/jerryscript-project/jerryscript/issues/964
140,379,061
964
[ "jerryscript-project", "jerryscript" ]
Test code: ``` js function re_test (pattern, string) { var r = new RegExp (pattern); print ("'" + pattern + "' ~ '" + string + "' => '" + (new RegExp (pattern)).exec(string) + "'"); } re_test ("[\\u0020]", "u"); re_test ("[\\u0020]", " "); re_test ("[\\u0020]", "x"); re_test ("[\\x20]", "u"); re_test ("[\\x20]", " "); re_test ("[\\x20]", "x"); ``` Output: ``` '[\u0020]' ~ 'u' => 'u' '[\u0020]' ~ ' ' => ' ' '[\u0020]' ~ 'x' => 'null' '[\x20]' ~ 'u' => 'null' '[\x20]' ~ ' ' => ' ' '[\x20]' ~ 'x' => 'x' ``` The first and last results are incorrect. This could either be fixed in #961 or handled separately (in which case a regtest could be added to the test suite as well, based on the above).
Incorrect regexp character class handling with \uNNNN and \xNN code points
https://api.github.com/repos/jerryscript-project/jerryscript/issues/962/comments
1
2016-03-11T16:54:28Z
2016-03-21T07:50:27Z
https://github.com/jerryscript-project/jerryscript/issues/962
140,234,757
962
[ "jerryscript-project", "jerryscript" ]
When cross-building jerry for arm/linux with `TOOLCHAIN=build/configs/toolchain_linux_armv7l-hf.cmake make NINJA=1 build.linux`, the following error is reported: ``` ../../../main-unix.c: In function ‘main’: ../../../main-unix.c:563:7: error: conversion to ‘ssize_t’ from ‘jerry_api_size_t’ may change the sign of the result [-Werror=sign-conversion] ssize_t sz = jerry_api_string_to_char_buffer (err_str_p, err_str_buf, err_str_size); ```
Conversion error to ‘ssize_t’ from ‘jerry_api_size_t’ (in main-unix.c, on arm/linux)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/942/comments
2
2016-03-08T01:03:22Z
2016-03-09T09:21:59Z
https://github.com/jerryscript-project/jerryscript/issues/942
139,142,357
942
[ "jerryscript-project", "jerryscript" ]
I'm trying to build jerryscript on Odroid U3 or XU3 board.. As I know, someone already Did build it on RPI2.... But when i try this, I found some error gcc-4.8.real: error: cr: No such file or directory gcc-4.8.real: error: libdebug.jerry-core.a: No such file or directory make[5]: **\* [jerry-core/libdebug.jerry-core.a] Error 1 make[4]: **\* [jerry-core/CMakeFiles/debug.jerry-core.dir/all] Error 2 make[3]: **\* [CMakeFiles/debug.linux.dir/rule] Error 2 make[2]: **\* [debug.linux] Error 2 is it support to build on ARM now?? thx in advance
How can I build jerryscript on another ARM board?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/933/comments
2
2016-03-07T04:35:09Z
2016-07-28T09:54:28Z
https://github.com/jerryscript-project/jerryscript/issues/933
138,885,355
933
[ "jerryscript-project", "jerryscript" ]
OSX Travis revealed a problem in `vm_loop` (in jerry-core/vm/vm.c): ``` ../../../jerry-core/vm/vm.c:1351:13: error: non-void function 'vm_loop' should return a value [-Wreturn-type] return; ../../../jerry-core/vm/vm.c:1383:13: error: non-void function 'vm_loop' should return a value [-Wreturn-type] return; ``` Interestingly, gcc on Linux did not compain about it (neither on Travis, nor locally), but it is an issue nevertheless.
non-void function 'vm_loop' should return a value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/930/comments
1
2016-03-03T10:02:01Z
2016-11-25T06:26:44Z
https://github.com/jerryscript-project/jerryscript/issues/930
138,133,576
930
[ "jerryscript-project", "jerryscript" ]
Implement an eviction mechanism for RegExp cache, if the cache is full throw out an element and add the new bytecode into the cache. May be a FIFO algorithm would cause the less performance regression.
Add eviction mechanism to RegExp cache
https://api.github.com/repos/jerryscript-project/jerryscript/issues/927/comments
1
2016-03-01T17:26:35Z
2016-03-11T17:27:30Z
https://github.com/jerryscript-project/jerryscript/issues/927
137,636,937
927
[ "jerryscript-project", "jerryscript" ]
On current master (5d3aa98), arm/linux target fails on 5 date-related tests. Details below. I've been building jerry on Ubuntu 14.04.3 LTS x86_64 GNU/Linux 3.13.0 with cross toolchain arm-linux-gnueabihf-gcc 4.8.2, and testing it with qemu user space emulation as follows: ``` TOOLCHAIN=build/configs/toolchain_linux_armv7l-hf.cmake TIMEOUT=300 make NINJA=1 test-js.debug.linux.j ``` 5 tests in the suite fail (all seem to be date-related): ``` [32/259] /home/akiss/devel/jerry/jerryscript/build/bin/debug.linux/jerry /home/akiss/devel/jerry/jerryscript/tests/jerry/date-annexb.js: FAIL (1) Script assertion failed [33/259] /home/akiss/devel/jerry/jerryscript/build/bin/debug.linux/jerry /home/akiss/devel/jerry/jerryscript/tests/jerry/date-construct.js: FAIL (1) Script assertion failed [34/259] /home/akiss/devel/jerry/jerryscript/build/bin/debug.linux/jerry /home/akiss/devel/jerry/jerryscript/tests/jerry/date-getters.js: FAIL (1) Script assertion failed [36/259] /home/akiss/devel/jerry/jerryscript/build/bin/debug.linux/jerry /home/akiss/devel/jerry/jerryscript/tests/jerry/date-setters.js: FAIL (1) Script assertion failed [37/259] /home/akiss/devel/jerry/jerryscript/build/bin/debug.linux/jerry /home/akiss/devel/jerry/jerryscript/tests/jerry/date-tostring.js: FAIL (1) Script assertion failed ``` To reproduce the above failures, the installation of some packages (cross-gcc and qemu) may be needed: ``` sudo apt-get install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static ``` The failures are blocking #898
Date-related test failures on arm/linux
https://api.github.com/repos/jerryscript-project/jerryscript/issues/923/comments
0
2016-02-29T11:09:51Z
2016-11-25T06:26:44Z
https://github.com/jerryscript-project/jerryscript/issues/923
137,222,576
923
[ "jerryscript-project", "jerryscript" ]
Let's start a discussion about external magic string support, because there are some related functions, but they aren't used currently (e.g.`ecma_is_ex_string_magic`, `ecma_is_ex_string_magic_longpath`). Now we can just register external magic strings, but they aren't accesssible through the API. Is there anybody who uses, or plans to use this feature?
Should we keep external magic string support?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/922/comments
2
2016-02-25T14:12:09Z
2016-07-28T09:53:51Z
https://github.com/jerryscript-project/jerryscript/issues/922
136,397,305
922
[ "jerryscript-project", "jerryscript" ]
Hi, I am trying to build the HEAD of the GIT (aa0b6215fad7ff2f5c1f88055eed622f3386b6ee) with: ``` $ mkdir build3 $ cd build3 $ cmake -DUSE_COMPILER_DEFAULT_LIBC="YES" .. $ make ``` While with jerrylibc it compiles fine, with the GLIBC of my system (debian jessie amd64), it fails: ``` zoobab@esivisu /home/zoobab/soft/jerryscript-master/build3 [374]$ make -j1 [ 0%] Building C object jerry-core/CMakeFiles/debug.jerry-core.dir/ecma/builtin-objects/ecma-builtin-helpers-date.c.o /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c: In function ‘ecma_date_local_tza’: /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:450:19: error: storage size of ‘tz’ isn’t known struct timezone tz; ^ /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:452:3: error: implicit declaration of function ‘gettimeofday’ [-Werror=implicit-function-declaration] if (gettimeofday (NULL, &tz) != 0) ^ /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:450:19: error: unused variable ‘tz’ [-Werror=unused-variable] struct timezone tz; ^ /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c: In function ‘ecma_date_daylight_saving_ta’: /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:476:19: error: storage size of ‘tz’ isn’t known struct timezone tz; ^ /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:476:19: error: unused variable ‘tz’ [-Werror=unused-variable] /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c: In function ‘ecma_date_local_tza’: /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:458:1: error: control reaches end of non-void function [-Werror=return-type] } /* ecma_date_local_tza */ ^ /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c: In function ‘ecma_date_daylight_saving_ta’: /home/zoobab/soft/jerryscript-master/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:484:1: error: control reaches end of non-void function [-Werror=return-type] } /* ecma_date_daylight_saving_ta */ ^ cc1: some warnings being treated as errors jerry-core/CMakeFiles/debug.jerry-core.dir/build.make:698: recipe for target 'jerry-core/CMakeFiles/debug.jerry-core.dir/ecma/builtin-objects/ecma-builtin-helpers-date.c.o' failed make[2]: *** [jerry-core/CMakeFiles/debug.jerry-core.dir/ecma/builtin-objects/ecma-builtin-helpers-date.c.o] Error 1 CMakeFiles/Makefile2:1827: recipe for target 'jerry-core/CMakeFiles/debug.jerry-core.dir/all' failed make[1]: *** [jerry-core/CMakeFiles/debug.jerry-core.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *** [all] Error 2 ``` Could you also add that "USE_COMPILER_DEFAULT_LIBC="YES"" to Travis-ci as well?
Build error with USE_COMPILER_DEFAULT_LIBC="YES"
https://api.github.com/repos/jerryscript-project/jerryscript/issues/911/comments
4
2016-02-22T11:23:03Z
2016-02-23T13:24:31Z
https://github.com/jerryscript-project/jerryscript/issues/911
135,389,176
911
[ "jerryscript-project", "jerryscript" ]
Related discussion: https://github.com/Samsung/jerryscript/pull/873#issuecomment-185697225 Use the block style instead of define EXTERN_C marco. It's much better practice to have the #ifdef __cplusplus at the very beginning of the headers. Prefer to have the order ``` C++ /** * Copyright ... */ #ifndef HEADERNAME_H #define HEADERNAME_H #include ... #ifdef _cplusplus extern "C" { #endif /* !__cplusplus */ all header content (including typedes and all, not only function declarations) #ifdef _cplusplus } #endif /* !__cplusplus */ #endif // HEADERNAME_H ```
Remove the EXTERN_C marco
https://api.github.com/repos/jerryscript-project/jerryscript/issues/900/comments
0
2016-02-18T13:41:29Z
2016-02-22T09:42:10Z
https://github.com/jerryscript-project/jerryscript/issues/900
134,583,845
900
[ "jerryscript-project", "jerryscript" ]
We must check the current error messages. - [x] Add missing messages - [ ] Use magic string for the same errors - [x] Provide position information (line:column) - [x] Add build option to use errors without messages (this can save memory)
Maintain and improve error messages
https://api.github.com/repos/jerryscript-project/jerryscript/issues/897/comments
1
2016-02-17T15:07:41Z
2017-01-31T13:27:48Z
https://github.com/jerryscript-project/jerryscript/issues/897
134,304,763
897
[ "jerryscript-project", "jerryscript" ]
Hi, I am missing a "make install" in cmake or autotools to install the final binaries on the system (I am on a linux 64 bits ubuntu machine). I presume jerryscript binaries are those: ``` release.linux release.linux-cp release.linux-cp_minimal release.linux-cp_minimal-mem_stats release.linux-mem_stats release.linux-mem_stress_test ``` However, to be installed a linux system, those are weird binary names. What about renaming them to: ``` jerryscript jerryscript-cp jerryscript-cp_minimal jerryscript-cp_minimal-mem_stats jerryscript-mem_stats jerryscript-mem_stress_test ``` Furthermore, there are no simple way for a newbie to understand how this JS VM works, I tried on the command line: ``` root@7448a5be284f:/mnt/jerryscript/build2# cat ../example.js { jerry_init (JERRY_FLAG_ENABLE_LOG); char script [] = "print ('Hello, World!');"; jerry_parse (script, strlen (script)); jerry_run (); jerry_cleanup (); } root@7448a5be284f:/mnt/jerryscript/build2# ./release.linux ../example.js root@7448a5be284f:/mnt/jerryscript/build2# ``` Having API documentation is good, but it looks like C code, while people expect JS code (a la nodejs).
Missing "make install" on linux-x64 target
https://api.github.com/repos/jerryscript-project/jerryscript/issues/883/comments
2
2016-02-15T10:17:28Z
2016-07-28T09:53:38Z
https://github.com/jerryscript-project/jerryscript/issues/883
133,674,442
883
[ "jerryscript-project", "jerryscript" ]
Hi, I'm poring iotjs to mips big-endian machine, but jerry_exec_snapshot is failed when execute js snapshot, I dig a little the code, fix endian problem in jerry_snapshot_header_t structure, but there still OUT_OF_MEMORY exception, so I want to know if the jerryscipt can dump snapshot into big-endian mode, and how to?
js snapshot execute failed on big endian machine
https://api.github.com/repos/jerryscript-project/jerryscript/issues/881/comments
8
2016-02-14T05:54:08Z
2017-01-31T13:28:51Z
https://github.com/jerryscript-project/jerryscript/issues/881
133,508,723
881
[ "jerryscript-project", "jerryscript" ]
When executing `tests/jerry-test-suite/13/13-011.js` with a debug compact profile build of jerry on linux, the engine crashes with status code 120 and error message as follows: ``` ICE: Assertion '!is_equal' failed at ../../../jerry-core/ecma/operations/ecma-lex-env.cpp(ecma_op_set_mutable_binding):219. Error: ERR_FAILED_INTERNAL_ASSERTION ``` The release compact profile build does not report any error on the same input.
[linux, compact profile] ICE: Assertion '!is_equal' failed at jerry-core/ecma/operations/ecma-lex-env.cpp(ecma_op_set_mutable_binding):219
https://api.github.com/repos/jerryscript-project/jerryscript/issues/879/comments
3
2016-02-12T17:40:04Z
2016-11-25T06:26:43Z
https://github.com/jerryscript-project/jerryscript/issues/879
133,300,980
879
[ "jerryscript-project", "jerryscript" ]
I am trying this version bc826540297c90ccc39b70f10ed3392d4aefb7e6, and the "make" of cmake does not stop on error: ` zoobab@chuchu /home/zoobab/soft/jerryscript/build2 [162]$ make -j5 [ 0%] Linking C static library libdebug.jerry-libc.linux.lib.a [ 0%] Building C object third-party/fdlibm/CMakeFiles/debug-cp.jerry-fdlibm.third_party.lib.dir/k_tan.c.o [ 0%] Building C object third-party/fdlibm/CMakeFiles/debug.jerry-fdlibm.third_party.lib.dir/k_tan.c.o gcc: error: qc: No such file or directory gcc: error: libdebug.jerry-libc.linux.lib.a: No such file or directory jerry-libc/CMakeFiles/debug.jerry-libc.linux.lib.dir/build.make:190: recipe for target 'jerry-libc/libdebug.jerry-libc.linux.lib.a' failed make[2]: *** [jerry-libc/libdebug.jerry-libc.linux.lib.a] Error 1 CMakeFiles/Makefile2:2350: recipe for target 'jerry-libc/CMakeFiles/debug.jerry-libc.linux.lib.dir/all' failed make[1]: *** [jerry-libc/CMakeFiles/debug.jerry-libc.linux.lib.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 0%] Building C object third-party/fdlibm/CMakeFiles/debug-cp.jerry-fdlibm.third_party.lib.dir/e_pow.c.o [ 0%] Building CXX object jerry-core/CMakeFiles/debug.jerry-core.dir/vm/vm.cpp.o [ 0%] Building CXX object jerry-core/CMakeFiles/debug-cp.jerry-core.dir/mem/mem-heap.cpp.o ` Is there an option in CMakeLists.txt to make it stop?
Cmake does not stop on error "gcc: error: qc: No such file or directory"
https://api.github.com/repos/jerryscript-project/jerryscript/issues/878/comments
13
2016-02-12T16:21:48Z
2016-07-28T09:53:08Z
https://github.com/jerryscript-project/jerryscript/issues/878
133,281,772
878
[ "jerryscript-project", "jerryscript" ]
Some Errors from make.log: **OS:** Ubuntu 15.04, x86_64 **Build**: make (build_all_native) **Revision**: 91a0514 ``` jerry-core/parser/js/js-parser.cpp: In function ‘uint8_t* parser_encode_literal(uint8_t*, uint16_t, uint16_t)’: /jerryscript/jerry-core/parser/js/js-parser.cpp:411:16: error: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value [-Werror=conversion] *dst_p++ = (uint8_t) (literal_index >> 8) | CBC_HIGHEST_BIT_MASK; ``` ``` In function ‘void lexer_construct_regexp_object(parser_context_t*, int)’: /jerryscript/jerry-core/parser/js/js-lexer.cpp:1751:19: error: conversion to ‘uint16_t {aka short unsigned int}’ from ‘int’ may alter its value [-Werror=conversion] current_flags |= (int16_t) flag; ```
Build [error: conversion to ‘uint8_t {aka unsigned char}’ from ‘int’ may alter its value]
https://api.github.com/repos/jerryscript-project/jerryscript/issues/853/comments
4
2016-02-08T23:00:06Z
2016-02-12T10:42:33Z
https://github.com/jerryscript-project/jerryscript/issues/853
132,281,753
853
[ "jerryscript-project", "jerryscript" ]
In our development docs we state that Ubuntu is the supported dev platform, and there are already packages that must be installed via the distro's package manager, i.e., with apt-get. Still, vera++ and cppcheck tools are downloaded and installed with tools/prerequisites.sh into a local subdir, although they are present in Ubuntu's package repositories. Is there any reason not to list them simply in the dev docs as dependencies and remove their setup logic from prerequisites.sh? (Happy to propose a PR if we reach consensus.)
Reduce prerequisite dependencies?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/844/comments
1
2016-02-06T21:40:35Z
2016-02-11T09:55:41Z
https://github.com/jerryscript-project/jerryscript/issues/844
131,902,589
844
[ "jerryscript-project", "jerryscript" ]
Hi, I would like to nominate Zsolt Borbely to becoma a committer. His non-trivial patches are: #78 Implemented Array.prototype.slice(). #86 Implement Array.prototype.splice(). #99 Implement Object.prototype.propertyIsEnumerable(). #138 Implement String.prototype.slice() #163 Implement Function.prototype.apply() #196 Fix the indexing of Array builtin functions. #321 Implement Function.prototype.bind function #386 Implement String.prototype.localeCompare function #530 Implement String.prototype.split function #729 Add option to enable all-in-one build mode Any seconds?
Nominating Zsolt Borbely (bzsolt) for Committer status
https://api.github.com/repos/jerryscript-project/jerryscript/issues/842/comments
4
2016-02-05T10:05:06Z
2016-02-20T20:44:16Z
https://github.com/jerryscript-project/jerryscript/issues/842
131,602,908
842
[ "jerryscript-project", "jerryscript" ]
Hi, I want to build JerryScript for Contiki OS (C runtime) and Intel Galileo board. Can you please point me where to start from, which makefiles, compile/linker flags, etc. to change? Would it be easier to change in the iot.js build system? Thanks.
Build Jerryscript for Contiki OS/Galileo board
https://api.github.com/repos/jerryscript-project/jerryscript/issues/827/comments
14
2016-01-28T19:47:13Z
2017-02-24T12:24:49Z
https://github.com/jerryscript-project/jerryscript/issues/827
129,559,369
827
[ "jerryscript-project", "jerryscript" ]
Thankfully, I would like to announce our project logo with @davidsz 's help. Before announce it, I would like to gather opinions of community members on copyright. We have two options to choice. 1) Szeged University --> @davidsz create this logo and he belongs to Szeged. 2) JerryScript Community --> The community members have decided this so it's reasonable, too. Please share to me your opinions.
Copyright of logo
https://api.github.com/repos/jerryscript-project/jerryscript/issues/821/comments
5
2016-01-25T01:04:00Z
2016-02-01T09:56:05Z
https://github.com/jerryscript-project/jerryscript/issues/821
128,439,530
821
[ "jerryscript-project", "jerryscript" ]
1.'jerry_api_value_t' has no member named 'string_p' val.string_p = str_val_p; 2. undefined reference to `jerry_api_get_global_object'
This example "Step 4. Interaction with JavaScript environment" has some error.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/817/comments
2
2016-01-23T02:22:33Z
2016-11-25T06:26:42Z
https://github.com/jerryscript-project/jerryscript/issues/817
128,286,458
817
[ "jerryscript-project", "jerryscript" ]
Step 4. Interaction with JavaScript environment"
https://api.github.com/repos/jerryscript-project/jerryscript/issues/816/comments
0
2016-01-23T02:21:19Z
2016-01-27T13:17:23Z
https://github.com/jerryscript-project/jerryscript/issues/816
128,286,412
816
[ "jerryscript-project", "jerryscript" ]
Hello. We need to add integrity checks to snapshot loader to ensure that an incorrectly composed snapshot wouldn't lead to memory corruption or other issues during the load procedure.
Integrity checks in snapshot load routines
https://api.github.com/repos/jerryscript-project/jerryscript/issues/802/comments
9
2016-01-13T11:14:54Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/802
126,395,988
802
[ "jerryscript-project", "jerryscript" ]
Hello. Revision: 50d124bfc32e399c2013b4e3e79265d6b98d073c Test: sunspider-1.0.2/date-format-tofte.js Byte-code for the following loop is generated incorrectly: ``` js while (ia[ij]) { if (ia[ij] == "\\") { // this is our way of allowing users to escape stuff ia.splice(ij,1); } else { if (arrayExists(switches,ia[ij])) { ia[ij] = eval(ia[ij] + "()"); } } ij++; } ``` Minimized example: ``` js var a = {}, b = 0; while (a[b]) { assert (false); } ``` Cause of the issue is incorrect generation of byte-code for loop conditions. The following byte-code is generated so that `a` value is checked as condition instead of `a[b]` value. ``` 0: reg_var_decl 1 0 0 // 1 tmp regs, 0 local variable regs, 0 argument variable regs 1: obj_decl 131 0 0 // tmp131 = {}; 2: assignment 0 6 131 // a = tmp131 : TYPEOF(tmp131); 3: assignment 1 1 0 // b = 0: SMALLINT; 4: jmp_down 0 4 // goto 8; 5: call_n 131 2 1 // 6: assignment 131 0 3 // tmp131 = false: SIMPLE; 7: meta 2 131 255 // tmp131 = assert (tmp131); 8: is_true_jmp_up 0 0 3 // if (a) goto 5; 9: ret // ret; ``` Regression test: ``` js var a = {}, b = 0; while (a[b]) { assert (false); } for ( ; a[b]; ) { assert (false); } var flag = false; do { assert (!flag); flag = true; } while (a[b]); ```
date-format-tofte benchmark is processed incorrectly
https://api.github.com/repos/jerryscript-project/jerryscript/issues/798/comments
2
2016-01-11T10:17:15Z
2016-01-13T10:43:57Z
https://github.com/jerryscript-project/jerryscript/issues/798
125,913,007
798
[ "jerryscript-project", "jerryscript" ]
By [#661](https://github.com/Samsung/jerryscript/issues/661), I know some details about Jerry-snapshot. But I still don't know how to use the snapshot mode. The flowing is my way. My `test.js` is: ``` javaScript var a = 1; var b = 2; var c; c = a + b; print(c); ``` I run `./debug.linux --dump-snapshot-for-global test_snapshot test.js`. Then, run `./debug.linux --exec-snapshot test_snapshot`. There is a trouble: ``` ICE: Assertion 'snapshot_offset < snapshot_size' failed at /home/ubun/Desktop/jerryscript/jerry-core/parser/js/bc/bytecode-data.cpp(bc_load_bytecode_data):759. Error: ERR_FAILED_INTERNAL_ASSERTION ``` When I modified the code `'snapshot_offset < snapshot_size'`of file `/jerry-core/parser/js/bc/bytecode-data.cpp`: `759 JERRY_ASSERT (snapshot_offset <= snapshot_size);` It can work. This is a bug, right? The snapshot `test_snapshot` is: ``` 0200 0000 0000 0000 2000 0000 0100 0000 e96c 7ae0 0000 0000 0400 0000 0101 0000 0061 0101 0000 0062 0101 0000 0063 02ce 0000 0000 0000 0000 5800 0000 1c00 0000 1800 0000 0000 0000 0300 0000 0000 0000 3801 0000 1200 0101 1201 0102 2902 0001 0083 0301 3902 02ff 06ff ffff 0400 0000 0a00 0000 1000 0000 0400 0000 0400 0000 0400 0000 0a00 0000 1000 0000 1600 0000 ``` Howerver, when I show the byte-code of the file `./debug.linux --show-opcodes test.js`. The result is: ``` // var a = 1; // var a = 1; // // // // // // var a = 1; 0: reg_var_decl 253 253 253 // 253 tmp regs, 253 local variable regs, 253 argument variable regs 1: assignment 0 1 1 // a = 1: SMALLINT; // 2: assignment 1 1 2 // b = 2: SMALLINT; // // 3: addition 2 0 1 // c = a + b; // 4: call_n 131 3 253 // 5: meta 2 2 255 // 4: call_n 131 3 1 // // REWRITE // 0: reg_var_decl 1 0 0 // 1 tmp regs, 0 local variable regs, 0 argument variable regs // REWRITE 6: ret // ret; LITERALS: 0x96e744 [ 8] a : STRING 0x96e74c [ 8] b : STRING 0x96e754 [ 8] c : STRING 0x96e75c [ 4] print : MAGIC STRING [id=206] 0x96e760 [ 32] : EMPTY RECORD 0: reg_var_decl 1 0 0 // 1 tmp regs, 0 local variable regs, 0 argument variable regs 1: assignment 0 1 1 // a = 1: SMALLINT; 2: assignment 1 1 2 // b = 2: SMALLINT; 3: addition 2 0 1 // c = a + b; 4: call_n 131 3 1 // 5: meta 2 2 255 // tmp131 = print (c); 6: ret // ret; 3 ``` So my second question is what is the relationship of bytecode and snapshot? My bytecode file can run directly with jerryscript? Thanks a lot.
Some questions about snapshot
https://api.github.com/repos/jerryscript-project/jerryscript/issues/797/comments
5
2016-01-05T13:06:30Z
2016-01-14T11:05:37Z
https://github.com/jerryscript-project/jerryscript/issues/797
124,963,216
797
[ "jerryscript-project", "jerryscript" ]
Hi, what your recommended way to build jerry and run test for RPI2? 1, directly git clone codes on RPI2, then make, then run-perf-test or 2, cross-build the jerry or other ways? I often see the RPI2 memory/performance date posted under some issues or PRs
How to build jerrystandalone and run test in RPI2
https://api.github.com/repos/jerryscript-project/jerryscript/issues/796/comments
10
2016-01-05T05:34:44Z
2016-01-20T00:23:56Z
https://github.com/jerryscript-project/jerryscript/issues/796
124,899,509
796
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript Array.prototype.push(Math.sin); Object.freeze(Array.prototype); String.prototype.match(String.prototype); ``` ###### Backtrace: ``` ICE: Assertion 'mem_free_chunks_number == 0' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):192. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=10775, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x0000000000437190 in jerry_assert_fail (assertion=0x4d601d "mem_free_chunks_number == 0", file=0x4d5fd0 "jerryscript/jerry-core/mem/mem-poolman.cpp", function=0x4b12f0 <_ZZ18mem_pools_finalizevE8__func__.lto_priv.1142> "mem_pools_finalize", line=192) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:99 #5 0x00000000004a72b2 in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:192 #6 0x00000000004a711a in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:52 #7 0x00000000004aada9 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1439 #8 0x00000000004a96b9 in main (argc=3, argv=0x7fffffffd368) at jerryscript/main-linux.cpp:465 ```
Assertion 'mem_free_chunks_number == 0' failed in mem_pools_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/787/comments
2
2015-12-14T15:59:12Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/787
122,071,738
787
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript try { RegExp.prototype.toString() } catch (err) { } try { Date.prototype.toTimeString() } catch (err) { } try { Boolean.prototype.toString() } catch (err) { } try { String.prototype.match(isNaN) } catch (err) { } try { Math.round(Math.atan) } catch (err) { } try { Date.prototype.getUTCDay() } catch (err) { } try { toLocaleString() } catch (err) { } try { Array.prototype.join(String.prototype.split) } catch (err) { } try { Date.prototype.getSeconds() } catch (err) { } try { isNaN.apply(Date.prototype.toISOString, String.prototype.split) } catch (err) { } try { Math.cos(Object) } catch (err) { } try { Math.floor(Date.prototype.getUTCSeconds) } catch (err) { } try { isNaN.apply(assert, JSON.stringify) } catch (err) { } try { Number.prototype.toLocaleString() } catch (err) { } try { Date.prototype.getTimezoneOffset() } catch (err) { } try { Date.prototype.setMinutes(Object.getOwnPropertyDescriptor, Object.getOwnPropertyNames) } catch (err) { } try { Math.log(String.prototype.search) } catch (err) { } try { ReferenceError(Object.defineProperty) } catch (err) { } try { Array.prototype.filter(Number.prototype.toLocaleString) } catch (err) { } try { Array.prototype.forEach(Date.prototype.getDay) } catch (err) { } try { Object.defineProperty(SyntaxError.prototype, Date.prototype.setUTCMinutes, Math.max) } catch (err) { } try { Date.prototype.setMilliseconds(String.prototype.localeCompare) } catch (err) { } try { Math.asin(Date.prototype.getDay) } catch (err) { } try { Array.prototype.some(Date.prototype.getDay) } catch (err) { } try { String.prototype.charCodeAt(toString) } catch (err) { } try { isPrototypeOf(Math.tan) } catch (err) { } try { Object.isFrozen(print) } catch (err) { } try { RegExp.prototype.compile(RegExp.prototype) } catch (err) { } ``` ###### Backtrace: ``` ICE: Assertion 'string_desc_p->refs > 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_copy_or_ref_ecma_string):724. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=7356, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x0000000000437190 in jerry_assert_fail (assertion=0x4c9691 "string_desc_p->refs > 0", file=0x4c9390 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp", function=0x4b54f0 <_ZZ28ecma_copy_or_ref_ecma_stringP13ecma_string_tE8__func__.lto_priv.712> "ecma_copy_or_ref_ecma_string", line=724) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:99 #5 0x000000000045ad7a in ecma_copy_or_ref_ecma_string (string_desc_p=0x8e80a0 <mem_heap+3424>) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:724 #6 0x0000000000454064 in ecma_copy_value (value=1714, do_ref_if_object=false) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:386 #7 0x000000000045ee9c in ecma_named_data_property_assign_value (obj_p=0x8e8048 <mem_heap+3336>, prop_p=0x8e80a8 <mem_heap+3432>, value=1714) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:1004 #8 0x00000000004578b5 in re_initialize_props (re_obj_p=0x8e8048 <mem_heap+3336>, source_p=0x8e80a0 <mem_heap+3424>, flags=0 '\000') at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:149 #9 0x000000000041c6b1 in ecma_builtin_regexp_prototype_compile (this_arg=1671, pattern_arg=1671, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:143 #10 0x000000000041c2d1 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=1671, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #11 0x000000000049c691 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=1671, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #12 0x000000000049bd7d in ecma_builtin_dispatch_call (obj_p=0x8e8bb8 <mem_heap+6264>, this_arg_value=1671, arg_collection_p=0x8e8bd0 <mem_heap+6288>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:555 #13 0x000000000044a4bd in ecma_op_function_call (func_obj_p=0x8e8bb8 <mem_heap+6264>, this_arg_value=1671, arg_collection_p=0x8e8bd0 <mem_heap+6288>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:1049 #14 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes.cpp:808 #15 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x7fffffffccd0) at jerryscript/jerry-core/vm/vm.cpp:545 #16 0x00000000004a030f in opfunc_try_block (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:41 #17 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #18 0x00000000004a81da in vm_run_from_pos (header_p=0x8e78c0 <mem_heap+1408>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #19 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #20 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #21 0x00000000004a96b1 in main (argc=3, argv=0x7fffffffd3a8) at jerryscript/main-linux.cpp:459 ```
Assertion 'string_desc_p->refs > 0' failed in ecma_copy_or_ref_ecma_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/786/comments
1
2015-12-14T15:41:29Z
2016-02-08T10:00:09Z
https://github.com/jerryscript-project/jerryscript/issues/786
122,068,081
786
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript try { RegExp.prototype.toString() } catch (err) { } try { isNaN.apply(unescape, JSON.stringify) } catch (err) { } try { Array.prototype.forEach(eval) } catch (err) { } try { RegExp.prototype.compile(RegExp.prototype) } catch (err) { } ``` ###### Backtrace: ``` ICE: Unreachable control path at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_copy_ecma_string):705 was executed. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=6466, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x00000000004371fa in jerry_unreachable (comment=0x0, file=0x4c9390 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp", function=0x4b54d0 <_ZZL21ecma_copy_ecma_stringP13ecma_string_tE8__func__.lto_priv.713> "ecma_copy_ecma_string", line=705) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:126 #5 0x000000000045accf in ecma_copy_ecma_string (string_desc_p=0x8e79e0 <mem_heap+1696>) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:705 #6 0x000000000045ad95 in ecma_copy_or_ref_ecma_string (string_desc_p=0x8e79e0 <mem_heap+1696>) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:728 #7 0x0000000000454064 in ecma_copy_value (value=850, do_ref_if_object=false) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:386 #8 0x000000000045ee9c in ecma_named_data_property_assign_value (obj_p=0x8e7988 <mem_heap+1608>, prop_p=0x8e79e8 <mem_heap+1704>, value=850) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:1004 #9 0x00000000004578b5 in re_initialize_props (re_obj_p=0x8e7988 <mem_heap+1608>, source_p=0x8e79e0 <mem_heap+1696>, flags=0 '\000') at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:149 #10 0x000000000041c6b1 in ecma_builtin_regexp_prototype_compile (this_arg=807, pattern_arg=807, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:143 #11 0x000000000041c2d1 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=807, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #12 0x000000000049c691 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=807, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #13 0x000000000049bd7d in ecma_builtin_dispatch_call (obj_p=0x8e7bc8 <mem_heap+2184>, this_arg_value=807, arg_collection_p=0x8e7bf0 <mem_heap+2224>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:555 #14 0x000000000044a4bd in ecma_op_function_call (func_obj_p=0x8e7bc8 <mem_heap+2184>, this_arg_value=807, arg_collection_p=0x8e7bf0 <mem_heap+2224>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:1049 #15 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes.cpp:808 #16 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x7fffffffccd0) at jerryscript/jerry-core/vm/vm.cpp:545 #17 0x00000000004a030f in opfunc_try_block (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:41 #18 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #19 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7800 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #20 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #21 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #22 0x00000000004a96b1 in main (argc=3, argv=0x7fffffffd3a8) at jerryscript/main-linux.cpp:459 ```
Unreachable control path in ecma_copy_ecma_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/785/comments
1
2015-12-14T15:36:39Z
2016-02-08T09:59:00Z
https://github.com/jerryscript-project/jerryscript/issues/785
122,067,115
785
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript RegExp.prototype.toString(); RegExp.prototype.compile(RegExp.prototype); ``` ###### Backtrace: ``` ICE: Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed at jerryscript/jerry-core/mem/mem-heap.cpp(mem_heap_compress_pointer):811. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=6182, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x0000000000437190 in jerry_assert_fail (assertion=0x4d5ddd "int_ptr % MEM_ALIGNMENT == 0", file=0x4d5848 "jerryscript/jerry-core/mem/mem-heap.cpp", function=0x4b1210 <_ZZ25mem_heap_compress_pointerPKvE8__func__.lto_priv.1149> "mem_heap_compress_pointer", line=811) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:99 #5 0x00000000004a6d7c in mem_heap_compress_pointer (pointer_p=0x8e79f9 <mem_heap+1721>) at jerryscript/jerry-core/mem/mem-heap.cpp:811 #6 0x00000000004a7188 in mem_compress_pointer (pointer_p=0x8e79f9 <mem_heap+1721>) at jerryscript/jerry-core/mem/mem-allocator.cpp:91 #7 0x000000000045d8b1 in ecma_set_property_list (object_p=0x8e7908 <mem_heap+1480>, property_list_p=0x8e79f9 <mem_heap+1721>) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:381 #8 0x000000000045dff8 in ecma_create_named_data_property (obj_p=0x8e7908 <mem_heap+1480>, name_p=0x8e7960 <mem_heap+1568>, is_writable=true, is_enumerable=false, is_configurable=false) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:541 #9 0x0000000000457b41 in re_initialize_props (re_obj_p=0x8e7908 <mem_heap+1480>, source_p=0x8e7960 <mem_heap+1568>, flags=0 '\000') at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:209 #10 0x000000000041c6b1 in ecma_builtin_regexp_prototype_compile (this_arg=743, pattern_arg=743, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:143 #11 0x000000000041c2d1 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=743, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #12 0x000000000049c691 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=743, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #13 0x000000000049bd7d in ecma_builtin_dispatch_call (obj_p=0x8e79c0 <mem_heap+1664>, this_arg_value=743, arg_collection_p=0x8e79d8 <mem_heap+1688>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:555 #14 0x000000000044a4bd in ecma_op_function_call (func_obj_p=0x8e79c0 <mem_heap+1664>, this_arg_value=743, arg_collection_p=0x8e79d8 <mem_heap+1688>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:1049 #15 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes.cpp:808 #16 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #17 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7800 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #18 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #19 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #20 0x00000000004a96b1 in main (argc=3, argv=0x7fffffffd3a8) at jerryscript/main-linux.cpp:459 ```
Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed in mem_heap_compress_pointer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/784/comments
1
2015-12-14T15:32:09Z
2016-02-08T09:58:00Z
https://github.com/jerryscript-project/jerryscript/issues/784
122,066,153
784
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript RegExp.prototype.compile(RegExp.prototype); ``` ###### Backtrace: ``` ICE: Assertion 'property_p != NULL && property_p->type == ECMA_PROPERTY_NAMEDDATA' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_named_data_property):695. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=28055, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x0000000000437190 in jerry_assert_fail (assertion=0x4ca338 "property_p != NULL && property_p->type == ECMA_PROPERTY_NAMEDDATA", file=0x4c9e98 "jerryscript/jerry-core/ecma/base/ecma-helpers.cpp", function=0x4b5af0 <_ZZ28ecma_get_named_data_propertyP13ecma_object_tP13ecma_string_tE8__func__.lto_priv.671> "ecma_get_named_data_property", line=695) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:99 #5 0x000000000045e635 in ecma_get_named_data_property (obj_p=0x8e78c8 <mem_heap+1416>, name_p=0x8e7928 <mem_heap+1512>) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:695 #6 0x000000000041c457 in ecma_builtin_regexp_prototype_compile (this_arg=711, pattern_arg=711, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:91 #7 0x000000000041c2d1 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=711, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #8 0x000000000049c691 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=711, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #9 0x000000000049bd7d in ecma_builtin_dispatch_call (obj_p=0x8e78f8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x8e7910 <mem_heap+1488>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:555 #10 0x000000000044a4bd in ecma_op_function_call (func_obj_p=0x8e78f8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x8e7910 <mem_heap+1488>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:1049 #11 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd50) at jerryscript/jerry-core/vm/opcodes.cpp:808 #12 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd50, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #13 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7800 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #14 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #15 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #16 0x00000000004a96b1 in main (argc=3, argv=0x7fffffffd378) at jerryscript/main-linux.cpp:459 ```
Assertion 'property_p != NULL && property_p->type == ECMA_PROPERTY_NAMEDDATA' in ecma_get_named_data_property
https://api.github.com/repos/jerryscript-project/jerryscript/issues/783/comments
1
2015-12-14T14:36:37Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/783
122,054,726
783
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript String.prototype.search(RegExp.prototype); ``` ###### Backtrace: ``` Program received signal SIGSEGV, Segmentation fault. 0x00000000004425b7 in re_get_value (bc_p=0x7fffffffc920) at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:202 202 uint32_t value = *((uint32_t*) *bc_p); (gdb) bt #0 0x00000000004425b7 in re_get_value (bc_p=0x7fffffffc920) at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:202 #1 0x000000000044e147 in ecma_regexp_exec_helper (regexp_value=783, input_string=718, ignore_global=true) at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:1243 #2 0x000000000048b477 in ecma_builtin_string_prototype_object_search (this_arg=711, regexp_arg=783) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp:1396 #3 0x0000000000487616 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=135, this_arg_value=711, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:74 #4 0x000000000049c559 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=135, this_arg_value=711, arguments_list=0x9266c0 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55 #5 0x000000000049bd7d in ecma_builtin_dispatch_call (obj_p=0x8e7900 <mem_heap+1472>, this_arg_value=711, arg_collection_p=0x8e7918 <mem_heap+1496>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:555 #6 0x000000000044a4bd in ecma_op_function_call (func_obj_p=0x8e7900 <mem_heap+1472>, this_arg_value=711, arg_collection_p=0x8e7918 <mem_heap+1496>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:1049 #7 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd80) at jerryscript/jerry-core/vm/opcodes.cpp:808 #8 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd80, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #9 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7800 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #10 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #11 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #12 0x00000000004a96b1 in main (argc=2, argv=0x7fffffffd3a8) at jerryscript/main-linux.cpp:459 ```
Segmentation fault in re_get_value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/782/comments
0
2015-12-14T11:21:10Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/782
122,023,470
782
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2c3c952 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.10, x86_64 ``` ###### Test case: ``` javascript try { Function(Array.isArray) } catch (err) { } try { Function(TypeError.prototype) } catch (err) { } ``` ###### Backtrace: ``` (function(){function(){/* ecmascript */}}) ^ ERROR: Ln 1, Col 21: Expected 'Identifier' token ICE: Assertion '!ecma_is_value_empty (reg_value)' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(get_variable_value):85. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004afcc5 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=11651, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000437141 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:67 #4 0x0000000000437190 in jerry_assert_fail (assertion=0x4d4240 "!ecma_is_value_empty (reg_value)", file=0x4d4198 "jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp", function=0x4b1780 <_ZZ18get_variable_valueP14vm_frame_ctx_thbE8__func__.lto_priv.1111> "get_variable_value", line=85) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:99 #5 0x000000000049ffcc in get_variable_value (frame_ctx_p=0x7fffffffc800, var_idx=128 '\200', do_eval_or_arguments_check=false) at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:85 #6 0x000000000043544a in opfunc_retval (instr=..., frame_ctx_p=0x7fffffffc800) at jerryscript/jerry-core/vm/opcodes.cpp:1174 #7 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffc800, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #8 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7b00 <mem_heap+1984>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=true, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #9 0x00000000004a7df9 in vm_run_eval (bytecode_data_p=0x8e7b00 <mem_heap+1984>, is_direct=false) at jerryscript/jerry-core/vm/vm.cpp:484 #10 0x0000000000448a58 in ecma_op_eval_chars_buffer (code_p=0x926680 <mem_heap+258880> "(function(){TypeError})/* ecmascript */}})", code_buffer_size=23, is_direct=false, is_called_from_strict_mode_code=false) at jerryscript/jerry-core/ecma/operations/ecma-eval.cpp:113 #11 0x00000000004488f7 in ecma_op_eval (code_p=0x8e7ad0 <mem_heap+1936>, is_direct=false, is_called_from_strict_mode_code=false) at jerryscript/jerry-core/ecma/operations/ecma-eval.cpp:63 #12 0x000000000047d420 in ecma_builtin_function_dispatch_construct (arguments_list_p=0x9266c0 <mem_heap+258944>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function.cpp:203 #13 0x000000000047ce2d in ecma_builtin_function_dispatch_call (arguments_list_p=0x9266c0 <mem_heap+258944>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function.cpp:56 #14 0x000000000049bed9 in ecma_builtin_dispatch_call (obj_p=0x8e78d8 <mem_heap+1432>, this_arg_value=4, arg_collection_p=0x8e79e8 <mem_heap+1704>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:116 #15 0x000000000044a107 in ecma_op_function_call (func_obj_p=0x8e78d8 <mem_heap+1432>, this_arg_value=4, arg_collection_p=0x8e79e8 <mem_heap+1704>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:922 #16 0x00000000004346d1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcd60) at jerryscript/jerry-core/vm/opcodes.cpp:808 #17 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd60, run_scope_p=0x7fffffffccb0) at jerryscript/jerry-core/vm/vm.cpp:545 #18 0x00000000004a030f in opfunc_try_block (instr=..., frame_ctx_p=0x7fffffffcd60) at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:41 #19 0x00000000004a7f45 in vm_loop (frame_ctx_p=0x7fffffffcd60, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #20 0x00000000004a81da in vm_run_from_pos (header_p=0x8e7800 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e7760 <mem_heap+1056>, is_strict=false, is_eval_code=false, arg_collection_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:643 #21 0x00000000004a7c3e in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #22 0x00000000004aaed9 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1533 #23 0x00000000004a96b1 in main (argc=3, argv=0x7fffffffd388) at jerryscript/main-linux.cpp:459 ```
Assertion '!ecma_is_value_empty (reg_value)' failed in get_variable_value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/781/comments
3
2015-12-14T11:01:53Z
2016-02-08T10:02:32Z
https://github.com/jerryscript-project/jerryscript/issues/781
122,020,421
781
[ "jerryscript-project", "jerryscript" ]
Working on OSX, builtin libc is pretty mixin up with the one from system. I could contribute this part though but have some questions first; - preferred libc target should be the one built-in right ? IMHO Yes. - for the sake of testing / stability etc. why not separate jerry_libc project ? - main_linux, main_darwin etc. could benefit lots of improvements and they could be combined into a single file. Agree / disagree ?
libc builtin vs system mixup
https://api.github.com/repos/jerryscript-project/jerryscript/issues/780/comments
3
2015-12-10T19:02:52Z
2016-02-25T07:36:31Z
https://github.com/jerryscript-project/jerryscript/issues/780
121,554,699
780
[ "jerryscript-project", "jerryscript" ]
Hi. I am looking into the jerryscirpt thesedays. I found a broken page today. The page is the HOWTO of the jerryscript. http://samsung.github.io/jerryscript/how-to/ The section, "How to Setup Recommended Prerequisites", has a broken link. "Currently, ... Additionaly, it’ll be useful to read >>> Prerequisites<<< wiki page, also." "Prerequisites" is a link which has no page. Thank you~
a broken page in the project home.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/779/comments
1
2015-12-10T06:29:05Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/779
121,415,256
779
[ "jerryscript-project", "jerryscript" ]
``` var arr=[];for(var i=0;i<1e5;i++)arr[i] = i%40 ``` Script above takes almost 5 seconds to run on Azure small VM. Did not check the implementation yet but assuming an optimization here is possible.
Array performance + Crash
https://api.github.com/repos/jerryscript-project/jerryscript/issues/778/comments
3
2015-12-10T05:23:46Z
2016-02-25T07:22:51Z
https://github.com/jerryscript-project/jerryscript/issues/778
121,404,455
778
[ "jerryscript-project", "jerryscript" ]
Now the BLOCK_SIZE in `bytecode-data.h` is defined `64u`. While the idx range for literal is 0-127. So I think the logic behind the decision is that **one opcode has at most 2 literal values**. However, in practice, I found one opcodes has atmost **ONE** literal values. Am I right? I change the BLOCK_SIZE to 128, and all test case passed.
Why is BLOCK_SIZE 64? Can it be 128?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/776/comments
4
2015-12-10T02:09:19Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/776
121,385,505
776
[ "jerryscript-project", "jerryscript" ]
`LTO=OFF make unittests` produces the following errors: ``` jerryscript/jerry-core/jerry.cpp:1409: undefined reference to `jerry_port_errormsg' jerryscript/jerry-core/jerry.cpp:1398: undefined reference to `jerry_port_errormsg' jerry-core/libunittests.jerry-core.a(lit-strings.cpp.o): In function `lit_put_ecma_char(unsigned short)': jerryscript/jerry-core/lit/lit-strings.cpp:1013: undefined reference to `jerry_port_putchar' jerryscript/jerry-core/lit/lit-strings.cpp:1008: undefined reference to `jerry_port_putchar' jerry-core/libunittests.jerry-core.a(parser.cpp.o): In function `parse_property_name': jerryscript/jerry-core/parser/js/parser.cpp:351: undefined reference to `jerry_port_putchar' jerry-core/libunittests.jerry-core.a(parser.cpp.o): In function `current_token_must_be': jerryscript/jerry-core/parser/js/parser.cpp:132: undefined reference to `jerry_port_putchar' jerry-core/libunittests.jerry-core.a(parser.cpp.o): In function `jsp_find_next_token_before_the_locus': jerryscript/jerry-core/parser/js/parser.cpp:272: undefined reference to `jerry_port_putchar' ```
Unittests build fails when LTO is disabled after #756
https://api.github.com/repos/jerryscript-project/jerryscript/issues/774/comments
3
2015-12-09T16:34:56Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/774
121,286,594
774
[ "jerryscript-project", "jerryscript" ]
The scopes_tree_count_literals_in_blocks in `scopes-tree.cpp` is called by `serializer_merge_scopes_into_bytecode`. It is used to count slots needed for a scope's hash table, and **should** divide bytecode into blocks and count unique literal indexes used in each block, as the code comment says. However, in its implementation, the global_oc will never increase and next_uid will become 0 when enter a subscope, so **it becomes counting the unique literal used in one instruction, instead of one block.**. So its result will be larger, and leads to memory waste in lit-id-hash-table. **I fixed it** (https://github.com/jiangzidong/jerryscript/tree/litcount), but the run-perf-result is not so good | Benchmark | RSS<br>(+ is better) | Perf<br>(+ is better) | | --- | --- | --- | | 3d-cube.js | 132-> 132 (0.000) | 0.344->0.3496 (-1.628) | | access-binary-trees.js | 84-> 72 (14.286) | 0.164->0.1688 (-2.927) | | access-fannkuch.js | 48-> 52 (-8.333) | 0.912->0.9192 (-0.789) | | bitops-3bit-bits-in-byte.js | 40-> 36 (10.000) | 0.276->0.2784 (-0.870) | | bitops-bits-in-byte.js | 40-> 40 (0.000) | 0.3616->0.3632 (-0.442) | | bitops-bitwise-and.js | 40-> 40 (0.000) | 0.344-> 0.348 (-1.163) | | controlflow-recursive.js | 244-> 240 (1.639) | 0.152-> 0.156 (-2.632) | | crypto-aes.js | 152-> 152 (0.000) | 0.604->0.6088 (-0.795) | | crypto-md5.js | 204-> 208 (-1.961) | 3.74->3.8976 (-4.214) | | crypto-sha1.js | 148-> 148 (0.000) | 1.6408-> 1.684 (-2.633) | | date-format-tofte.js | 112-> 112 (0.000) | 0.384-> 0.36 (6.250) | | date-format-xparb.js | 96-> 92 (4.167) | 0.18-> 0.184 (-2.222) | | math-cordic.js | 48-> 48 (0.000) | 0.3856->0.3856 (0.000) | | math-spectral-norm.js | 44-> 44 (0.000) | 0.2-> 0.2 (0.000) | | string-base64.js | 200-> 200 (0.000) | 28.4536->30.448 (-7.009) | | string-fasta.js | 60-> 60 (0.000) | 0.624->0.6432 (-3.077) | | Geometric mean: | RSS reduction: 1.3603% | Speed up: -1.474% | I also measure the heap peak counts: | Benchmark | heap peak counts old | heap peak counts new | \+ is better | | --- | --- | --- | --- | | date-format-tofte.js | 636 | 636 | 0.000000 | | crypto-aes.js | 1164 | 1174 | -0.859107 | | string-base64.js | 2577 | 2575 | 0.077610 | | string-fasta.js | 223 | 223 | 0.000000 | | math-spectral-norm.js | 130 | 130 | 0.000000 | | math-cordic.js | 130 | 129 | 0.769231 | | date-format-xparb.js | 562 | 556 | 1.067616 | | access-binary-trees.js | 727 | 727 | 0.000000 | | bitops-bits-in-byte.js | 67 | 67 | 0.000000 | | crypto-md5.js | 2293 | 2291 | 0.087222 | | 3d-cube.js | 646 | 644 | 0.309598 | | bitops-3bit-bits-in-byte.js | 73 | 73 | 0.000000 | | bitops-bitwise-and.js | 50 | 49 | 2.000000 | | controlflow-recursive.js | 723 | 722 | 0.138313 | | access-fannkuch.js | 99 | 99 | 0.000000 | | crypto-sha1.js | 1461 | 1459 | 0.136893 | | Geometric mean | | | 0.23% | I think the reason maybe: - memory: the hash_table for each blocks is larger than before. it need to store all literals used in code block, rather than one instruction. This will counteract the decrease of the lid-id-hash-table - performance: during serializer_merge_scopes_into_bytecode, more items in hash_table leads to more look_up actions. But I still believe it is a bug in scopes_tree_count_literals_in_blocks. Should I create a PR about that?
"scopes_tree_count_literals_in_blocks", a bug or on purpose?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/772/comments
2
2015-12-09T06:38:57Z
2015-12-23T12:31:26Z
https://github.com/jerryscript-project/jerryscript/issues/772
121,172,890
772
[ "jerryscript-project", "jerryscript" ]
> I did a little exploration in jerryscript and IoT.js and noticed that IoT.js uses jerry_api_value_t structure defined in JerryScript API by accessing its members directly to do type checking and value retrieval activities. It is done through fuction-like macros defined in iotjs_binding.cpp: JVAL_IS_NULL, JVAL_IS_STRING, JVAL_TO_NUMBER, etc. > What is your opinion about this solution? > Maybe, it would be worthwhile to refine the JerryScript API by providing type checker and value retrieval functions to struct jerry_api_value_t in order to avoid the direct access of its internal structure in IoT.js. This can result clearer and more maintainable code that facilitates the future developments. by @ktorpi
Idea for API improvement
https://api.github.com/repos/jerryscript-project/jerryscript/issues/770/comments
3
2015-12-08T13:23:13Z
2016-11-25T06:26:41Z
https://github.com/jerryscript-project/jerryscript/issues/770
121,005,292
770
[ "jerryscript-project", "jerryscript" ]
Hi, When I set integer property of an object and then get that property later, the property is not the same as I had set. Testing code below ``` void test() { jerry_api_value_t val; val.type = JERRY_API_DATA_TYPE_UINT32; val.v_uint32 = 0x20048550; jerry_api_object_t* obj = jerry_api_create_object(); jerry_api_set_object_field_value (obj, (jerry_api_char_t*)"_this", &val); jerry_api_value_t val2; jerry_api_get_object_field_value (obj, (jerry_api_char_t*)"_this", &val2); jerry_api_release_object(obj); //the type is float32, so I cast the value from float32 to int32, // the output is ####4 0x20048540 here printf("####%d 0x%x\n", val2.type, (int)val2.v_float32); } ```
jerry_api_set_object_field_value/jerry_api_get_object_field_value has problem when setting and getting v_uint32 property of an object
https://api.github.com/repos/jerryscript-project/jerryscript/issues/769/comments
1
2015-12-08T13:01:11Z
2016-02-10T11:28:43Z
https://github.com/jerryscript-project/jerryscript/issues/769
121,001,503
769
[ "jerryscript-project", "jerryscript" ]
I'm looking for JavaScript impl for my wearable projects using ARM Cortex-M4 MCU. JerryScript and Duktape are final candidates and I especially interested in JerryScript because it looks consume very low memory (My MCU has 128KB RAM). I found a benchmark about this: http://samsung.github.io/jerryscript/benchmark/benchmark.html Could you please let me know what optimization settings were applied to Duktape? Did you applied default memory setting, otherwise what kinds of DUK_OPT_\* were applied?
Performance comparison between JerryScript vs Duktape
https://api.github.com/repos/jerryscript-project/jerryscript/issues/768/comments
12
2015-12-07T17:01:58Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/768
120,820,702
768
[ "jerryscript-project", "jerryscript" ]
Build fails with enabled Valgrind support for {debug,release}.mcu_stm32f\* targets. Seemingly unused params and variables triggered these errors: ``` jerryscript/third-party/valgrind/valgrind.h:3714:29: error: unused parameter 'format' [-Werror=unused-parameter] VALGRIND_PRINTF(const char *format, ...) ``` ``` jerryscript/jerry-core/mem/mem-heap.cpp:337:62: error: statement has no effect [-Werror=unused-value] VALGRIND_NOACCESS_SPACE (mem_heap.area, MEM_HEAP_AREA_SIZE); ``` ``` jerryscript/jerry-core/mem/mem-poolman.cpp:312:13: error: unused variable 'vbits' [-Werror=unused-variable] uint8_t vbits[MEM_POOL_CHUNK_SIZE]; ```
Build fails with enabled Valgrind support
https://api.github.com/repos/jerryscript-project/jerryscript/issues/762/comments
1
2015-12-03T12:26:33Z
2016-03-07T07:26:22Z
https://github.com/jerryscript-project/jerryscript/issues/762
120,159,967
762
[ "jerryscript-project", "jerryscript" ]
Can't load debugging symbols in gdb session, when building JerryScript with `LTO=ON` option. ``` Reading symbols from build/bin/debug.darwin/jerry... warning: `/tmp/lto.o': can't open to read symbols: No such file or directory. (no debugging symbols found)...done. (gdb) _ ```
Debugger is not working properly with LTO build in Mac OS X
https://api.github.com/repos/jerryscript-project/jerryscript/issues/760/comments
2
2015-12-03T06:55:26Z
2016-02-05T15:12:29Z
https://github.com/jerryscript-project/jerryscript/issues/760
120,106,970
760
[ "jerryscript-project", "jerryscript" ]
Utf8 string indexing changed in Change internal encoding of strings to CESU-8 #616, which causes wrong results when \u0080 or higher character codes are used.
CESU-8 indexing problem in String index_of helper
https://api.github.com/repos/jerryscript-project/jerryscript/issues/757/comments
0
2015-12-01T16:23:52Z
2015-12-02T09:43:42Z
https://github.com/jerryscript-project/jerryscript/issues/757
119,753,563
757
[ "jerryscript-project", "jerryscript" ]
We've got diverse logo candidates. (We have 8 candidates) Now, it's time to choose. :) Please vote for JerryScript logo as follows; - Give comment with the number of candidate. - You can pick two logo candidates up. - This voting will be closed at 7:00 UTC on 12/4(Friday) (1) ![image](https://cloud.githubusercontent.com/assets/5035570/11464860/1dfe7b90-9777-11e5-8d0c-d347ac3724fe.png) ![image](https://cloud.githubusercontent.com/assets/5035570/11464867/2d825eec-9777-11e5-949f-b040371045c5.png) ![image](https://cloud.githubusercontent.com/assets/5035570/11464870/32ef1d5c-9777-11e5-8c59-4917f59ce8e8.png) . This has some iterations. . This has one issue on Jerry. I haven't get the confirmation on use from Warner Bros. yet.(still on waiting.... ;( ) (2) ![image](https://cloud.githubusercontent.com/assets/5035570/11464895/68ab03ca-9777-11e5-8c04-3e4141039ae4.png) (3) ![image](https://cloud.githubusercontent.com/assets/5035570/11464900/6d4e73bc-9777-11e5-9e83-b055a4209552.png) (4) ![image](https://cloud.githubusercontent.com/assets/5035570/11464903/7336bdb6-9777-11e5-8a95-af6e12c7b45d.png) (5) ![image](https://cloud.githubusercontent.com/assets/5035570/11464906/7bb77bf6-9777-11e5-8175-c1b2893a3666.png) (6) ![image](https://cloud.githubusercontent.com/assets/5035570/11464919/8c722d10-9777-11e5-84cc-d39f78ab1d35.png) (7) ![image](https://cloud.githubusercontent.com/assets/5035570/11464926/9bfeffe2-9777-11e5-8923-8aa554e1509f.png) (8) ![image](https://cloud.githubusercontent.com/assets/5035570/11464932/a8dcc762-9777-11e5-9b29-0fb006a1ed68.png) ![image](https://cloud.githubusercontent.com/assets/5035570/11464934/ad029eac-9777-11e5-95cc-1e4e32c3ab01.png) . This has some iterations
Please vote for logo
https://api.github.com/repos/jerryscript-project/jerryscript/issues/755/comments
111
2015-11-30T06:21:41Z
2016-01-20T23:50:52Z
https://github.com/jerryscript-project/jerryscript/issues/755
119,427,320
755
[ "jerryscript-project", "jerryscript" ]
Hi, I read the API reference but can not figure out how to get a function object using the API, for example, there is piece of js code ``` function testFunction() { //..... } ``` I want to know how to get the 'testFunction' from C code using API directly. Many thanks.
How to get a function object using API
https://api.github.com/repos/jerryscript-project/jerryscript/issues/754/comments
2
2015-11-29T12:32:52Z
2015-12-23T12:34:50Z
https://github.com/jerryscript-project/jerryscript/issues/754
119,358,192
754
[ "jerryscript-project", "jerryscript" ]
As for PR #733, I had some problem with `fprintf()` and `putchar` when working to port to ESP8266. As @egavrin added a comment about this I also think it would be better to provide an API neutral so to handle these kinds of problems. Please add some idea here or PR link would be also great. One way would be to provide something like `jerry_port_error()`, `jerry_port_putchar()`. `jerry_port` is for platform APIs porting jerry but name can be anything.
console output (printf, fprintf, putchar) issue
https://api.github.com/repos/jerryscript-project/jerryscript/issues/752/comments
0
2015-11-27T00:42:51Z
2015-12-08T06:14:53Z
https://github.com/jerryscript-project/jerryscript/issues/752
119,114,434
752
[ "jerryscript-project", "jerryscript" ]
###### Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 ###### System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` ###### Test case: ``` js ''.replace(/$/g,"a"); ``` ###### Output: ``` ../jerry-bugs/run-test.sh: line 8: 11269 Segmentation fault ./build/bin/debug.linux/jerry $file ```
Segmentation fault on String.Replace
https://api.github.com/repos/jerryscript-project/jerryscript/issues/747/comments
1
2015-11-24T17:00:34Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/747
118,656,592
747
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'lit_is_utf8_string_valid (utf8_buf_p, buf_size)' failed at /home/eg/dev/jr/jerry-core/lit/lit-strings.cpp(lit_utf8_iterator_create):257. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js 'ʼ ``` ``` bash > cat ./aa.js 'ʼ⏎ ``` ``` bash > hexdump -C ./aa.js 00000000 27 ca bc |'..| 00000003 ``` Reason: [noeol] No new line at the EOF.
ICE: Assertion 'lit_is_utf8_string_valid (utf8_buf_p, buf_size)' failed at (lit_utf8_iterator_create):257
https://api.github.com/repos/jerryscript-project/jerryscript/issues/746/comments
1
2015-11-24T14:54:53Z
2016-02-08T09:52:20Z
https://github.com/jerryscript-project/jerryscript/issues/746
118,625,892
746
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion '!ecma_number_is_nan (res)' failed at /home/eg/dev/jr/jerry-core/parser/js/lexer.cpp(lexer_parse_number):1003. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js 7e9. ```
ICE: Assertion '!ecma_number_is_nan (res)' failed at (lexer_parse_number):1003
https://api.github.com/repos/jerryscript-project/jerryscript/issues/745/comments
1
2015-11-24T14:21:15Z
2016-02-08T09:50:06Z
https://github.com/jerryscript-project/jerryscript/issues/745
118,618,723
745
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'end <= ecma_string_get_length (appended_string_p)' failed at /home/eg/dev/jr/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp(ecma_builtin_string_prototype_object_replace_append_substr):776. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js '஻BBCB@abXde^'.replace(/|/g,"$'஻BBBB@abXde^ce((/aq"); ``` ``` js '஻BB8B@abXde^'.replace(/a/g,"$஻Bce((/a%"); ```
ICE: Assertion 'end <= ecma_string_get_length (appended_string_p)' failed at (ecma_builtin_string_prototype_object_replace_append_substr):776
https://api.github.com/repos/jerryscript-project/jerryscript/issues/744/comments
4
2015-11-24T14:19:03Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/744
118,618,307
744
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'table_p->buckets[block_id] != NULL' failed at /home/eg/dev/jr/jerry-core/parser/js/collections/lit-id-hash-table.cpp(lit_id_hash_table_lookup):121. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js // Copyrnse. function Error(Error) { } ```
ICE: Assertion 'table_p->buckets[block_id] != NULL' failed at (lit_id_hash_table_lookup):121
https://api.github.com/repos/jerryscript-project/jerryscript/issues/743/comments
1
2015-11-24T14:16:34Z
2016-02-08T09:47:34Z
https://github.com/jerryscript-project/jerryscript/issues/743
118,617,717
743
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'buff_index <= buff_size' failed at /home/eg/dev/jr/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp(ecma_builtin_number_prototype_object_to_string):309. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js // Cj var big = 2147483646; big++; assert(big == 2147483647); big += 1; assert(big == 2147483648); // s big++; assert(big == 2147483649); // s assert ((1152921504606846600).toString([1,2,3,4].slice(1,2)) === "11506847000") rt (1.79e+308 === Infinity); ```
ICE: Assertion 'buff_index <= buff_size' failed at (ecma_builtin_number_prototype_object_to_string):309
https://api.github.com/repos/jerryscript-project/jerryscript/issues/742/comments
7
2015-11-24T14:13:03Z
2017-03-20T07:30:26Z
https://github.com/jerryscript-project/jerryscript/issues/742
118,617,032
742
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion '!ecma_number_is_nan (num)' failed at /home/eg/dev/jr/jerry-core/ecma/base/ecma-helpers-number.cpp(ecma_number_is_infinity):348. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js // C JSON.stringify (b=+''); ``` ``` js // C JSON.stringify (b=-'0001'); ``` ``` js // U JSON.stringify (b=+''); ```
ICE: Assertion '!ecma_number_is_nan (num)' failed at ecma-helpers-number.cpp(ecma_number_is_infinity):348
https://api.github.com/repos/jerryscript-project/jerryscript/issues/741/comments
1
2015-11-24T14:05:36Z
2016-02-08T09:42:32Z
https://github.com/jerryscript-project/jerryscript/issues/741
118,615,579
741
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'copied > 0' failed at /home/eg/dev/jr/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_is_string_magic_longpath):1543. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Testcase: ``` js VVVXyieZptiontV֡VVVVVVRVVVXyield; ```
ICE: Assertion 'copied > 0' failed at /ecma-helpers-string.cpp(ecma_is_string_magic_longpath):1543
https://api.github.com/repos/jerryscript-project/jerryscript/issues/740/comments
2
2015-11-24T14:03:57Z
2015-11-24T14:14:15Z
https://github.com/jerryscript-project/jerryscript/issues/740
118,615,253
740
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'lit_literal_exists (lit)' failed at /home/eg/dev/jr/jerry-core/lit/lit-literal.cpp(lit_get_literal_by_cp):554. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js // C var res = RegExp.prototyj_l; obj_l = obj; for (var k = 0; k < 1500; k++) { obj_l.prop = {}; obj_l = obj_l.prop; } function f (f, i) { if (--i > 0) { f ({a:o, b:o}, i); } } for (var i = 0; i < 100; i++) { ({} + f ({}, 12)); } ```
ICE: Assertion 'lit_literal_exists (lit)' failed at lit-literal.cpp(lit_get_literal_by_cp):554.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/739/comments
1
2015-11-24T14:01:32Z
2016-02-08T09:41:35Z
https://github.com/jerryscript-project/jerryscript/issues/739
118,614,732
739
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'lit_cp.packed_value != MEM_CP_NULL' failed at /home/eg/dev/jr/jerry-core/lit/lit-literal.cpp(lit_get_literal_by_cp):552. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js function g() {};for (B in Boolean) print(f); ```
ICE: Assertion 'lit_cp.packed_value != MEM_CP_NULL' failed at lit-literal.cpp(lit_get_literal_by_cp):552.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/738/comments
1
2015-11-24T13:26:02Z
2016-02-08T09:38:47Z
https://github.com/jerryscript-project/jerryscript/issues/738
118,608,067
738
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` ICE: Assertion 'lit_cp.packed_value != MEM_CP_NULL' failed at /home/eg/dev/jr/jerry-core/vm/opcodes.cpp(opfunc_func_expr_n):602. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js new function f(f) { return {className: 'xxx'}; }; x = 1; function g(active) { for (i = 1; i <= 1000; i++) { if (i == active) { x = i; if (f("" + i) != null) { } } else { if (f("" + i) != null) } } } g(0) ``` ``` js new function a(a) {;for (f in [1,2,3]) print(f); }; 1; function g(active) { for (i = 1; i <= 1000; i++) { if (i == active) { xI if (f != null) { } } else { if (f("" + i) != null) } } } g(0) ``` ``` js new function f(f) {;for (f in [1,2,3]) pRint(f); }; 1; function g(active) { for (i = 1; i <= 1000; i++) { if (i == active) { x if (f != null) { } } else { if (f("" + i) != null) } } } g(0) ```
ICE: Assertion 'lit_cp.packed_value != MEM_CP_NULL' opcodes.cpp(opfunc_func_expr_n):602
https://api.github.com/repos/jerryscript-project/jerryscript/issues/737/comments
2
2015-11-24T13:22:23Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/737
118,607,441
737
[ "jerryscript-project", "jerryscript" ]
Version: 17a5dd27bbbadc036d83be0448f9edfa90800147 System: ``` Linux eg 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ``` Output: ``` [object Object] ICE: Assertion 'ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION' failed at /home/eg/dev/jr/jerry-core/ecma/operations/ecma-function-object.cpp(ecma_op_function_has_instance):842. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Test case: ``` js // C try { print({toStSing:!function() { throw new TypeError("foo"); }}, []);t (false); } catch (e) { assert*(e instanceof assert ); asstrt (e.a%e === "foo"); } ```
ICE: Assertion 'ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION'
https://api.github.com/repos/jerryscript-project/jerryscript/issues/736/comments
1
2015-11-24T13:19:15Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/736
118,606,798
736
[ "jerryscript-project", "jerryscript" ]
There is branch for stm32f4 in makefile, but do we have wiki to describe the steps to build/install jerry on stm32f4/nuttx like https://github.com/Samsung/iotjs/wiki/Build-for-Nuttx-(new)
how to build jerry standalone for stm32f4/nuttx
https://api.github.com/repos/jerryscript-project/jerryscript/issues/735/comments
9
2015-11-24T08:09:09Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/735
118,554,585
735
[ "jerryscript-project", "jerryscript" ]
I found that with no timeout, Jerry passes a few more cases than with timeout. Currently Timeout is 5s, but some cases take way longer than 5s but it passes. I think we should increase timeout value or get rid of timeout. Here are some of the tests that take long but pass. - ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T1 - ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T1
Timeout value in run-test-suite-test262.sh
https://api.github.com/repos/jerryscript-project/jerryscript/issues/728/comments
2
2015-11-20T03:28:19Z
2016-07-28T09:52:00Z
https://github.com/jerryscript-project/jerryscript/issues/728
117,958,290
728
[ "jerryscript-project", "jerryscript" ]
See also: #356 ``` // TODO: // 1. introduce empty 'varg' opcode arguments // 2. support them in array_decl opcode handler, // i.e. change the opcode handler to perform calls // to ECMA, according to ECMA-262 v5, 11.1.4 ```
Improve implementation of unset array values
https://api.github.com/repos/jerryscript-project/jerryscript/issues/727/comments
1
2015-11-19T12:16:07Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/727
117,802,326
727
[ "jerryscript-project", "jerryscript" ]
``` js f1(function(a1){}); ```
Print ReferenceErrors at runtime
https://api.github.com/repos/jerryscript-project/jerryscript/issues/726/comments
0
2015-11-19T12:08:15Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/726
117,800,482
726
[ "jerryscript-project", "jerryscript" ]
``` js switch(foo){} {} ``` Evaluation of this code should produce ReferenceError not SyntaxError: ``` switch(foo){} {} ^ ERROR: Ln 1, Col 16: Unexpected token ```
Incorrect SyntaxError instead of ReferenceError
https://api.github.com/repos/jerryscript-project/jerryscript/issues/725/comments
1
2015-11-19T12:00:02Z
2016-02-08T13:58:23Z
https://github.com/jerryscript-project/jerryscript/issues/725
117,799,065
725
[ "jerryscript-project", "jerryscript" ]
``` js function f_0() { try { Function("for(w in\\"); } catch (e) {} } f_0(); f_0(); ```
Do not print catched syntax errors
https://api.github.com/repos/jerryscript-project/jerryscript/issues/724/comments
0
2015-11-19T11:57:31Z
2016-11-25T06:26:40Z
https://github.com/jerryscript-project/jerryscript/issues/724
117,798,690
724
[ "jerryscript-project", "jerryscript" ]
I am working on encoding stuff for IoT.js. I have a question on jerry encoding. Here is my question : which encoding is used for `lit_utf8_byte_t *` ? cesu8, utf8 or both ?
Q. current internal encoding for lit_utf8_byte_t * ?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/722/comments
5
2015-11-19T04:41:36Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/722
117,739,839
722
[ "jerryscript-project", "jerryscript" ]
Lately, I've been trying to build Jerry on a platform which is not supported by jerry-libc (aarch64-linux), thus I had to fall back to the default glibc available there. Debug build worked fine, however, release build failed. Then it turned out that the error is also reproducible on an x86-64 box as well: ``` /usr/bin/x86_64-linux-gnu-g++ -ffixed-rbp -ffixed-rbp -fno-builtin -flto -fno-fat-lto-objects -fno-stack-protector -g -gdwarf-4 -Wall -Wextra -pedantic -Wformat-nonliteral -Winit-self -Wno-stack-protector -Wconversion -Wsign-conversion -Wformat-security -Wmissing-declarations -Wno-attributes -Wfatal-errors -Werror -Wlogical-op -std=c++11 -fno-exceptions -fno-rtti -fno-implicit-templates -fno-implicit-inline-templates -Os -Wl,-z,noexecstack -flto -static CMakeFiles/release.linux.dir/main-linux.cpp.o -o release.linux jerry-core/librelease.jerry-core.a third-party/fdlibm/librelease.jerry-fdlibm.third_party.lib.a /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_eh.a In function ‘__fread_alias’, inlined from ‘read_snapshot’ at /home/akiss/devel/jerry/jerryscript/main-linux.cpp:153:69, inlined from ‘main’ at /home/akiss/devel/jerry/jerryscript/main-linux.cpp:390:70: /usr/include/x86_64-linux-gnu/bits/stdio2.h:290:66: error: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [-Werror] return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream); ^ compilation terminated due to -Wfatal-errors. lto1: all warnings being treated as errors lto-wrapper: /usr/bin/x86_64-linux-gnu-g++ returned 1 exit status /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[4]: *** [release.linux] Error 1 ``` It seems that a long-open gcc bug causes spurious warnings when LTO is enabled: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61886 And the -Werror flag turns these eventually into errors, and thus the build process fails. Unfortunately, there is no way to selectively disable the warning with pragmas or -Wno-error=xxx flags.
make release.linux USE_COMPILER_DEFAULT_LIBC=YES fails
https://api.github.com/repos/jerryscript-project/jerryscript/issues/718/comments
7
2015-11-12T12:04:54Z
2015-11-18T07:53:11Z
https://github.com/jerryscript-project/jerryscript/issues/718
116,536,871
718
[ "jerryscript-project", "jerryscript" ]
rss-measure.sh use `grep -A 1 -- "r[w-]-p "` to exclude the `r-xp` part's rss, which is the executable part of jerry. And it's the main part which consumes memory. (about 280k) So the result of rss-measue is different with other memory tool, such as smem. Why does rss-measue.sh do that? ``` jzd@jzd32:~$ cat /proc/11258/smaps 08048000-0808f000 r-xp 00000000 08:11 61344731 /home/jzd/jerryscript/j.l // this part is excluded. Size: 284 kB Rss: 284 kB // this part is excluded. Pss: 284 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 284 kB Private_Dirty: 0 kB Referenced: 284 kB Anonymous: 0 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd ex mr mw me dw 0808f000-08091000 rw-p 00046000 08:11 61344731 /home/jzd/jerryscript/j.l Size: 8 kB Rss: 4 kB Pss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Referenced: 4 kB Anonymous: 4 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd wr mr mw me dw ac 08091000-082d2000 rw-p 00000000 00:00 0 Size: 2308 kB Rss: 20 kB Pss: 20 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 20 kB Referenced: 20 kB Anonymous: 20 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd wr mr mw me ac b7785000-b7786000 r-xp 00000000 00:00 0 [vdso] Size: 4 kB Rss: 0 kB Pss: 0 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 0 kB Anonymous: 0 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd ex mr mw me de b7786000-b7788000 r--p 00000000 00:00 0 [vvar] Size: 8 kB Rss: 0 kB Pss: 0 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 0 kB Anonymous: 0 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB VmFlags: rd pf io de dd bfb92000-bfbb3000 rw-p 00000000 00:00 0 [stack] Size: 136 kB Rss: 12 kB Pss: 12 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 12 kB Referenced: 12 kB Anonymous: 12 kB AnonHugePages: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB ```
why does rss-measure.sh exclude the executable code's rss.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/717/comments
5
2015-11-12T03:24:49Z
2015-11-16T10:57:13Z
https://github.com/jerryscript-project/jerryscript/issues/717
116,471,693
717
[ "jerryscript-project", "jerryscript" ]
Some tests in Jerryscript's internal test suite that are currently not included into precommit testing contain code that provides non-boolean values to `assert` function. Because current implementation of `assert` accepts only explicit boolean true values, the tests that pass non-boolean values, are currently failing during full run of internal test suite as described in #711. Maybe, the tests should be updated like in https://github.com/Samsung/jerryscript/pull/498/files#diff-c7d78eb307700cc443dc3324384a4033 and included into precommit testing list.
Change arguments of `assert` to explicit boolean values in internal test suite
https://api.github.com/repos/jerryscript-project/jerryscript/issues/716/comments
1
2015-11-11T12:06:03Z
2016-02-08T09:29:54Z
https://github.com/jerryscript-project/jerryscript/issues/716
116,321,711
716
[ "jerryscript-project", "jerryscript" ]
This issue prevents compilation with -O2 on gcc-4.9+ ``` bash ./jerry-core/parser/js/parser.cpp: In function ‘lit_cpointer_t token_data_as_lit_cp()’: ./jerry-core/parser/js/parser.cpp:90:24: error: conversion to ‘lit_cpointer_t {aka unsigned int}’ from ‘token_uid_t {aka long long unsigned int}’ may alter its value [-Werror=conversion] GET_TOKEN_VALUE (cp) = tok.uid; ^ compilation terminated due to -Wfatal-errors. ```
Issues with Wsigned-conversions
https://api.github.com/repos/jerryscript-project/jerryscript/issues/714/comments
0
2015-11-11T08:11:17Z
2015-11-11T12:38:36Z
https://github.com/jerryscript-project/jerryscript/issues/714
116,286,651
714
[ "jerryscript-project", "jerryscript" ]
`sh ./tools/runners/run-test-suite-jerry.sh ./build/bin/debug.linux/jerry` There are 15 failed test for test above. But, some tests(15.5.2.1-001.js,15.5.4.7.00x.js ) seems to work well in my own test : make separate test.js file.
jerry-test-suite produces strange result
https://api.github.com/repos/jerryscript-project/jerryscript/issues/711/comments
22
2015-11-10T00:04:31Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/711
115,995,973
711
[ "jerryscript-project", "jerryscript" ]
I've used some other JS interpreter, which includes its own debugging protocol, and can be integrated into the IDEs. For example, Eclipse can debug both the Node.js and the JS in the Web with the ChromeDevTools Plugin that impliments the [V8 debugger protocol](https://chromium.googlesource.com/v8/v8/+/master/docs/debugger_protocol.md). I think that embedded systems also need such a protocol with its associated debugging tools , to help us debug and develop JS projects.
JS Debugging with Eclipse
https://api.github.com/repos/jerryscript-project/jerryscript/issues/710/comments
12
2015-11-08T03:25:53Z
2017-01-31T13:28:12Z
https://github.com/jerryscript-project/jerryscript/issues/710
115,707,175
710
[ "jerryscript-project", "jerryscript" ]
the vm_stack_push_value and vm_stack_pop_value deal with the dynamic variables in stack. Those vars will be stored in the inline array or allocated heap (top_chunk_p). Those stack variables also are "root" live object in gc. But no one call vm_stack_push_value in jerry. what's the purpose of the stack value? ``` /** * ECMA stack frame */ typedef struct vm_stack_frame_t { struct vm_stack_frame_t *prev_frame_p; /**< previous frame */ vm_stack_chunk_header_t *top_chunk_p; /**< the top-most chunk of the frame */ ecma_value_t *dynamically_allocated_value_slots_p; /**< pointer to dynamically allocated value slots * in the top-most chunk */ uint32_t current_slot_index; /**< index of first free slot in the top chunk */ ecma_value_t inlined_values[VM_STACK_FRAME_INLINED_VALUES_NUMBER]; /**< place for values inlined into stack frame * (instead of being placed on heap) */ ecma_value_t *regs_p; /**< register variables */ int32_t regs_number; /**< number of register variables */ } vm_stack_frame_t; ```
what's the purpose of vm_stack_push_value() in vm-stack.cpp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/707/comments
2
2015-11-06T04:53:14Z
2015-12-01T09:40:49Z
https://github.com/jerryscript-project/jerryscript/issues/707
115,433,347
707
[ "jerryscript-project", "jerryscript" ]
run `make precommit` in ubuntu 32bit host machine. got error while building for stm32f3 with LTO enabled ``` make[5]: Entering directory `/.../harmony/jerryscript/build/obj-VALGRIND-OFF-VALGRIND_FREYA-OFF-LTO-ON/stm32f3' ... /tmp/ccZjwwvg.ltrans0.ltrans.o: In function `main': /../harmony/jerryscript/main-mcu.cpp:35: undefined reference to `jerry_run_simple' collect2: error: ld returned 1 exit status make[5]: *** [release.mcu_stm32f3-cp] Error 1 make[5]: Leaving directory `/.../harmony/jerryscript/build/obj-VALGRIND-OFF-VALGRIND_FREYA-OFF-LTO-ON/stm32f3' make[4]: *** [CMakeFiles/release.mcu_stm32f3-cp.dir/all] Error 2 ```
make precommit fail in ubunut 32bit while building stm32f3
https://api.github.com/repos/jerryscript-project/jerryscript/issues/705/comments
1
2015-11-06T00:29:39Z
2015-11-24T04:07:13Z
https://github.com/jerryscript-project/jerryscript/issues/705
115,407,683
705
[ "jerryscript-project", "jerryscript" ]
Most of Javascript Engines support REPL and I also think REPL is useful in many ways. If binary size or something matters then we can give a build option for it. Is there some other issues?
REPL support for Jerry?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/704/comments
0
2015-11-05T02:35:05Z
2016-02-09T15:20:25Z
https://github.com/jerryscript-project/jerryscript/issues/704
115,196,143
704
[ "jerryscript-project", "jerryscript" ]
Our project does not have the official logo yet. Thus, I would like to suggest to open an issue for logo creation. Please post ideas into this thread. If you have any logo images to suggest, feel free post them. You do not need to be a designer. If you can explain your idea, community can make it real image. Every suggested ideas will be our logo candidates. Logo iterations also welcome. I would like to open this issue for three weeks and gathering enough candidates. This issue will be closed at 11/25. I will open a new issue for voting with candidates 11/26. And I guess we will meet the first day of December with our new logo. :)
Logo creation
https://api.github.com/repos/jerryscript-project/jerryscript/issues/702/comments
18
2015-11-04T05:10:41Z
2015-11-26T04:12:37Z
https://github.com/jerryscript-project/jerryscript/issues/702
114,970,527
702
[ "jerryscript-project", "jerryscript" ]
``` for (/;/.x in b) ; ^ ERROR: Ln 1, Col 12: Expected ';' token ``` This is a perfectly valid statement. The problem is that a slash can be a start of a regex pattern (primary expression), or a binary divide operator. Without deep analysis it is virtually impossible to tell the role of the slash (primary expression or binary operator). The worst thing is that the characters after the slash are part of a regex if the slash marks the start of a regex. I run the same problem in the compact byte code parser, and I don't see any trivial fix for this.
Nasty (very difficult to fix) parser scanner bug
https://api.github.com/repos/jerryscript-project/jerryscript/issues/699/comments
3
2015-11-02T07:36:52Z
2016-02-10T07:02:21Z
https://github.com/jerryscript-project/jerryscript/issues/699
114,542,185
699
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 906558b Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0 = 0; while (v_0 < v_1 || null, .573637) v_0; with(false) { with (null) {} 0x9d894a; switch(null) { case 'GwEhGOCvgL' : case 14219566547.27607 : case 026500714644 : case false : case 00300726061 : case 0Xf1d60CCbc : case 077222 : case true : case 'OZZwmvW' : default: } } ``` Backtrace: ``` ICE: Assertion 'iter_pos.offset <= iter_p->buf_size' failed at jerryscript/jerry-core/lit/lit-strings.cpp(lit_utf8_iterator_seek):297. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004ab2d4 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004ab2d4 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=4119, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000435fb6 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000436005 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4d0690 "iter_pos.offset <= iter_p->buf_size", file=0x4d05f8 "jerryscript/jerry-core/lit/lit-strings.cpp", function=0x4ab830 <_ZZ22lit_utf8_iterator_seekP19lit_utf8_iterator_t23lit_utf8_iterator_pos_tE8__func__.lto_priv.1174> "lit_utf8_iterator_seek", line=297) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x00000000004a6a39 in lit_utf8_iterator_seek(lit_utf8_iterator_t*, lit_utf8_iterator_pos_t) (iter_p=0x922ab0 <_ZL8src_iter.lto_priv.128>, iter_pos=...) at jerryscript/jerry-core/lit/lit-strings.cpp:297 #6 0x0000000000409ad4 in lexer_seek (locus=...) at jerryscript/jerry-core/parser/js/lexer.cpp:1585 #7 0x000000000043cde0 in parse_switch_statement () at jerryscript/jerry-core/parser/js/parser.cpp:2480 #8 0x000000000043dad9 in parse_statement(jsp_label_t*) [clone .lto_priv.548] (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2881 #9 0x000000000043c7b1 in parse_statement_list () at jerryscript/jerry-core/parser/js/parser.cpp:2257 #10 0x000000000043d3c5 in parse_statement(jsp_label_t*) [clone .lto_priv.548] (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2750 #11 0x000000000043caa6 in parse_with_statement () at jerryscript/jerry-core/parser/js/parser.cpp:2386 #12 0x000000000043dac1 in parse_statement(jsp_label_t*) [clone .lto_priv.548] (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2876 #13 0x000000000043dd2a in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2948 #14 0x000000000043de81 in parse_source_element_list(bool, bool) [clone .lto_priv.549] (is_global=true, is_try_replace_local_vars_with_regs=false) at jerryscript/jerry-core/parser/js/parser.cpp:3023 #15 0x000000000043e323 in parser_parse_program ( source_p=0x6e0f00 <_ZL6buffer.lto_priv.1214> "var v_0 = 0;\nwhile (v_0 < v_1 || null, .573637)\n v_0;\n\nwith(false)\n{\n with (null) {}\n 0x9d894a;\n switch(null)\n { \n case 'GwEhGOCvgL' : \n case 14219566547.27607 : \n "..., source_size=394, in_dyn_constructed_function=false, in_eval=false, is_strict=false, out_bytecode_data_p=0x7fffffffcf48, out_contains_functions_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:3199 #16 0x000000000043e517 in parser_parse_script ( source=0x6e0f00 <_ZL6buffer.lto_priv.1214> "var v_0 = 0;\nwhile (v_0 < v_1 || null, .573637)\n v_0;\n\nwith(false)\n{\n with (null) {}\n 0x9d894a;\n switch(null)\n { \n case 'GwEhGOCvgL' : \n case 14219566547.27607 : \n "..., source_size=394, out_bytecode_data_p=0x7fffffffcf48) at jerryscript/jerry-core/parser/js/parser.cpp:3286 #17 0x00000000004aa72d in jerry_parse ( source_p=0x6e0f00 <_ZL6buffer.lto_priv.1214> "var v_0 = 0;\nwhile (v_0 < v_1 || null, .573637)\n v_0;\n\nwith(false)\n{\n with (null) {}\n 0x9d894a;\n switch(null)\n { \n case 'GwEhGOCvgL' : \n case 14219566547.27607 : \n "..., source_size=394) at jerryscript/jerry-core/jerry.cpp:1430 #18 0x00000000004a9149 in main (argc=3, argv=0x7fffffffd438) at jerryscript/main-linux.cpp:451 ```
Assertion 'iter_pos.offset <= iter_p->buf_size' failed in lit_utf8_iterator_seek
https://api.github.com/repos/jerryscript-project/jerryscript/issues/693/comments
1
2015-10-29T17:47:02Z
2015-11-02T13:59:35Z
https://github.com/jerryscript-project/jerryscript/issues/693
114,107,179
693
[ "jerryscript-project", "jerryscript" ]
Hello. The following test262 tests related to 15.1.3 chapter are failing on current master (906558b8e94aa9118971188af9880eb47ff9b791): - ch15/15.1/15.1.3/15.1.3.1/S15.1.3.1_A2.5_T1 - ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A2.5_T1
15.1.3 (URI Handling) chapter test262 failures
https://api.github.com/repos/jerryscript-project/jerryscript/issues/692/comments
1
2015-10-29T15:34:02Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/692
114,076,487
692
[ "jerryscript-project", "jerryscript" ]
Hello. The following test262 tests related to `Date` built-in are failing on current master (906558b8e94aa9118971188af9880eb47ff9b791): - ch15/15.9/15.9.3/S15.9.3.1_A5_T1 - ch15/15.9/15.9.3/S15.9.3.1_A5_T2 - ch15/15.9/15.9.3/S15.9.3.1_A5_T3 - ch15/15.9/15.9.3/S15.9.3.1_A5_T4 - ch15/15.9/15.9.3/S15.9.3.1_A5_T5 - ch15/15.9/15.9.3/S15.9.3.1_A5_T6
Date built-in (test262 failures)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/691/comments
3
2015-10-29T14:27:28Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/691
114,061,304
691
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 1e2dfc73f577bdea0f46ef9d96ecc295cab7188b Build: debug.linux ``` ###### OS: ``` Ubuntu 14.04, x86_64 ``` ###### Test case: ``` javascript 'use strict'; function f (g) { new g ({prop_name: "value"}); } ``` ###### Backtrace: ``` jsp_early_error_check_for_syntax_errors_in_formal_param_list (is_strict=true, loc=...) at jsp-early-error.cpp:243 parse_function_declaration () at parser.cpp:699 parse_source_element () at parser.cpp:2930 parse_source_element_list (is_global=true, is_try_replace_local_vars_with_regs=false) at parser.cpp:3009 parser_parse_program (source_p=0x763e80 <_ZL6buffer.2522> "'use strict';\n\nfunction f (g) {\n new g ({prop_name: \"value\"});\n}\n", source_size=66, in_dyn_constructed_function=false, in_eval=false, is_strict=false, out_bytecode_data_p=0x7fffffffd948, out_contains_functions_p=0x0) at parser.cpp:3185 parser_parse_script (source=0x763e80 <_ZL6buffer.2522> "'use strict';\n\nfunction f (g) {\n new g ({prop_name: \"value\"});\n}\n", source_size=66, out_bytecode_data_p=0x7fffffffd948) at parser.cpp:3272 jerry_parse (source_p=0x763e80 <_ZL6buffer.2522> "'use strict';\n\nfunction f (g) {\n new g ({prop_name: \"value\"});\n}\n", source_size=66) at jerry.cpp:1430 main (argc=2, argv=0x7fffffffde38) at main-linux.cpp:451 ```
Assertion 'STACK_ELEMENT (props, i).type == VARG' failed at 'jsp_early_error_check_for_syntax_errors_in_formal_param_list'
https://api.github.com/repos/jerryscript-project/jerryscript/issues/689/comments
1
2015-10-29T13:07:30Z
2015-10-30T15:47:33Z
https://github.com/jerryscript-project/jerryscript/issues/689
114,045,649
689
[ "jerryscript-project", "jerryscript" ]
I am working on the strict mode parsing and Jerry seems accepting the following at the moment: ``` function f(eval) { "use strict" } ``` The spec says this is not allowed: http://www.ecma-international.org/ecma-262/5.1/#sec-13.1 However, Firefox also seems to reject the following, and I am not sure this is correct: ``` function eval() { "use strict" } ``` Since eval is created in the non-strict world, and I haven't found anything that prevents this (so far), I think we should accept this. What do you think?
argument and eval in strict mode
https://api.github.com/repos/jerryscript-project/jerryscript/issues/686/comments
3
2015-10-23T12:17:48Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/686
113,008,522
686
[ "jerryscript-project", "jerryscript" ]
`jerry_cleanup()` always make assert error after some object native handle were updated. ``` c++ #include "jerry.h" const char *jscode = "foobar = {};"; jerry_init(JERRY_FLAG_EMPTY); jerry_parse (reinterpret_cast<const jerry_api_char_t*>(jscode), strlen (jscode)); jerry_run(); jerry_api_object_t *g = jerry_api_get_global(); jerry_api_value_t foobar; jerry_api_get_object_field_value(g, reinterpret_cast<const jerry_api_char_t*>("foobar"), &foobar); jerry_api_set_object_native_handle(foobar.v_object, static_cast<uintptr_t>(0xabcdef), nullptr); jerry_api_set_object_native_handle(foobar.v_object, static_cast<uintptr_t>(0x123456789), nullptr); jerry_api_release_object(g); jerry_api_release_value(&foobar); jerry_cleanup(); ``` this code always failed. ``` ICE: Assertion 'mem_free_chunks_number == 0' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):183. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Is this bug? or intended design? comment on function note shows that can be updated. ``` If native handle was already set for the object, its value is updated. ```
mem_free_chunks_number is not zero on clean up after "jerry_api_set_object_native_handle" is called twice
https://api.github.com/repos/jerryscript-project/jerryscript/issues/683/comments
3
2015-10-22T12:57:48Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/683
112,797,012
683
[ "jerryscript-project", "jerryscript" ]
``` c++ typedef bool (*jerry_external_handler_t) (const jerry_api_object_t *function_obj_p, const jerry_api_value_t *this_p, jerry_api_value_t *ret_val_p, const jerry_api_value_t args_p[], const jerry_api_length_t args_count); ``` This is current callback type for external function. I wonder why this_p is pointer of value. I think "this" is only useful when function is constructor. And also following code is part of current unit test for constructor. ``` c++ static bool handler_construct (const jerry_api_object_t *function_obj_p, const jerry_api_value_t *this_p, jerry_api_value_t *ret_val_p, const jerry_api_value_t args_p[], const jerry_api_length_t args_cnt) { printf ("ok construct %p %p %p %d %p\n", function_obj_p, this_p, args_p, args_cnt, ret_val_p); JERRY_ASSERT (this_p != NULL); JERRY_ASSERT (this_p->type == JERRY_API_DATA_TYPE_OBJECT); JERRY_ASSERT (args_cnt == 1); JERRY_ASSERT (args_p[0].type == JERRY_API_DATA_TYPE_BOOLEAN); JERRY_ASSERT (args_p[0].v_bool == true); jerry_api_set_object_field_value (this_p->v_object, (jerry_api_char_t *) "value_field", &args_p[0]); jerry_api_set_object_native_handle (this_p->v_object, (uintptr_t) 0x0012345678abcdefull, handler_construct_freecb); return true; } /* handler_construct */ ``` `JERRY_ASSERT (this_p->type == JERRY_API_DATA_TYPE_OBJECT);` It show "this_p" must be object.
why don't use object pointer at argument for "this" on external function callback?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/682/comments
2
2015-10-22T12:37:07Z
2015-11-04T13:28:47Z
https://github.com/jerryscript-project/jerryscript/issues/682
112,793,720
682
[ "jerryscript-project", "jerryscript" ]
For profiling and tracing memory usage during running a program. It would be useful to have API for getting heap memory stats. Interesting numbers are total heap size, allocated bytes, and peak bytes. ``` typedef struct jerry_api_heap_status_t { size_t heap_size; size_t allocated_bytes; size_t peak_allocated_bytes; } jerry_api_heap_stats_t; void jerry_api_heap_stats (jerry_api_heap_stats_t*); ```
Jerry API for retrieving heap stats.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/681/comments
4
2015-10-22T07:02:42Z
2017-01-31T13:37:40Z
https://github.com/jerryscript-project/jerryscript/issues/681
112,743,074
681
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: Checked revision: 08c618e8 Build: debug.linux ###### Test case: ``` f1(function(a1){}); ``` run with --show-opcodes
ICE: Assertion 'lit_ids != NULL' failed in var_to_str
https://api.github.com/repos/jerryscript-project/jerryscript/issues/680/comments
3
2015-10-22T05:19:22Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/680
112,733,282
680