Commit Graph
100 Commits
Author SHA1 Message Date
Ruben Ayrapetyan 5bb76486b0 Fixing exit code of tools/push.sh 2014-08-14 17:38:31 +04:00
Ruben Ayrapetyan 5ebc744511 Logging performance and memory benchmarks to git notes during precommit testing. 2014-08-14 17:28:41 +04:00
Ruben Ayrapetyan e25b1d0249 Performance measurement script tools/perf.sh 2014-08-14 16:52:45 +04:00
Ruben Ayrapetyan 6553daa22b Limiting data and stack size by setrlimit. 2014-08-14 16:08:06 +04:00
Ruben Ayrapetyan 63133c247f Initializing [[FormalParameters]] internal property of Function object in ecma_op_create_function_object. 2014-08-13 21:47:56 +04:00
Ruben Ayrapetyan daf1cfc9e6 Introducing helpers for construction and freeing of ecma-strings' collections. 2014-08-13 21:36:36 +04:00
Ruben Ayrapetyan eb7441198c Commenting out performance and memory benchmarking in tools/push.sh 2014-08-13 20:59:39 +04:00
Ruben Ayrapetyan 507b91973a Renaming ecma_array_first_chunk_t -> ecma_collection_header_t; ecma_array_non_first_chunk_t -> ecma_collection_chunk_t. 2014-08-13 20:58:17 +04:00
Ruben Ayrapetyan 25ae71353d Removing print of opcode in optimizer_reorder_scope. 2014-08-13 20:28:12 +04:00
Ruben Ayrapetyan 613c43cc14 Fixing internal properties handling in ecma_gc_mark. 2014-08-13 20:18:41 +04:00
Ruben Ayrapetyan 4bacc6c957 Adding literal variable to tests/jerry/variables.js. 2014-08-13 19:30:37 +04:00
Ruben Ayrapetyan c831912ae5 Replacing ecma_array_first_chunk_t with ecma_string_t for ecma-strings. 2014-08-13 19:21:25 +04:00
Ruben Ayrapetyan b66981d19f Introducing ecma_string_t type that will be used for ecma-strings instead of ecma_array_first_chunk_t. 2014-08-13 17:01:05 +04:00
Ruben Ayrapetyan 567d54f7e5 Move ecma-string helpers from ecma-helpers.c to ecma-helpers-string.c 2014-08-13 17:01:05 +04:00
Ruben Ayrapetyan bd280df9bf Making vera++ to stop compilation on style errors. 2014-08-13 16:50:44 +04:00
Ruben Ayrapetyan a672807990 Style fix in stm32f4/jerry-libc.c. 2014-08-13 16:50:17 +04:00
Ruben Ayrapetyan c3cc674fef Definition of function object's 'length' property in ecma_op_create_function_object. 2014-08-13 15:17:12 +04:00
Ruben Ayrapetyan 4fe85cdd1a Full implementation of [[DefineOwnProperty]] for array objects. 2014-08-13 14:55:40 +04:00
Ruben Ayrapetyan 3ae7a284dc Partially implementing [[DefineOwnProperty]] for Array objects. 2014-08-12 21:45:11 +04:00
Ruben Ayrapetyan eee1daec91 Introducing ecma_compare_zt_string_to_zt_string interface that is __strcmp for ecma_char_t* zero-terminated strings. 2014-08-12 18:51:49 +04:00
Ruben Ayrapetyan 389d88bbb8 Adding tools/some_style_fixes.sh script that makes some style fixes in code. 2014-08-12 18:18:50 +04:00
Ruben Ayrapetyan a886053e54 Extracting ecma_op_object* routines to ecma_op_general_object_*. Redefining ecma_op_object* interface to be usable for all object types (not only for general objects). 2014-08-12 18:11:56 +04:00
Ruben Ayrapetyan bc34fa3be6 Renaming src/libecmaoperations/ecma-objects-properties.[ch] -> src/libecmaoperations/ecma-objects.[ch]. 2014-08-12 17:09:46 +04:00
Ruben Ayrapetyan 8bde4ecbf2 Implementing ecma_compare_ecma_string_to_ecma_string helper. 2014-08-12 16:56:35 +04:00
Ruben Ayrapetyan b987bcc920 Compaction of heap block's header from 32 bytes to 8 bytes. ./benchmarks/jerry/loop_arithmetics_1kk.js: 2.77 -> 2.82. 2014-08-12 16:23:44 +04:00
Ruben Ayrapetyan b4a29f754a Style fixes in libruntime. 2014-08-12 14:16:05 +04:00
Ruben Ayrapetyan aa43e06366 Style fixes in liballocator, libecmaobjects, libecmaoperations: putting else on separate line after closing brace of 'if' block. 2014-08-12 13:53:34 +04:00
Ruben Ayrapetyan 701f03309a Replacing -O2 with -O3. ./benchmarks/jerry/loop_arithmetics_1kk.js: 2.97 -> 2.79. 2014-08-12 12:28:37 +04:00
Ruben Ayrapetyan b260f2458e Fixing debug.stm32f4 build. 2014-08-12 12:01:47 +04:00
Ruben Ayrapetyan 839ad7e4b4 Fixing cppcheck warning about comma in return statement (libecmaobjects/ecma-helpers-value.c). 2014-08-11 22:17:35 +04:00
Ruben Ayrapetyan 1b84ca8412 Style fix: indentation in src/libecmaoperations/ecma-objects-properties.c. 2014-08-11 22:10:55 +04:00
Ruben Ayrapetyan 48cff24f08 Styles fixes in libecmaobjects, libecmaoperations: indentation and braces rules. 2014-08-11 22:05:59 +04:00
Ruben Ayrapetyan 38c6c2357d Styles fixes in liballocator: indentation and braces rules. 2014-08-11 21:10:06 +04:00
Ruben Ayrapetyan 59940fb648 Style fixes in liballocator, libecmaobjects, libecmaoperations: now lines are not longer than 120 characters. 2014-08-11 19:51:40 +04:00
Ruben Ayrapetyan 0b592470d5 Style fixes in libecmaoperations: space between function name and opening parenthesis, no space after opening parenthesis/before closing parenthesis. By mistake, the changes weren't commited with 8081e5cdb38ad0f9789a89c92362fc73a716d85c. 2014-08-11 19:34:49 +04:00
Ruben Ayrapetyan b02eefd4ae Style fixes in liballocator, libecmaobjects, libecmaoperations: space between function name and opening parenthesis, no space after opening parenthesis/before closing parenthesis. 2014-08-11 19:28:14 +04:00
Ruben Ayrapetyan e53be2b441 Renaming ecma_get_pointer, ecma_set_pointer, ecma_set_pointer_non_null macroses to uppercase names. 2014-08-11 19:13:59 +04:00
Ruben Ayrapetyan 6564cbee76 Indentation checking rule for vera++. 2014-08-11 18:37:43 +04:00
Ruben Ayrapetyan 8ce1ef3c8b Removing trailing whitespace in liballocator, libecmaobjects and libecmaoperations. 2014-08-11 15:59:19 +04:00
Ruben Ayrapetyan 8e87c8d3ed Temporarily disabling error mode of vera++ style checker. 2014-08-11 14:55:02 +04:00
Ruben Ayrapetyan 4fb0080701 Adding test nested_function.js. 2014-08-08 23:20:34 +04:00
Ruben Ayrapetyan 7b04e9eaeb Compacting pool header to 8 bytes. Replaced typed pool chunks with fixed-size untyped ones. loop_arithmetics_1kk.js benchmark: 2.98517 -> 2.9443. 2014-08-08 23:11:06 +04:00
Ruben Ayrapetyan cd0246bedc Changing size of ecma-array's chunk to fixed 8 bytes. 2014-08-08 18:23:02 +04:00
Ruben Ayrapetyan 1ab3eaa389 Optimizing ecma_get_pointer/ecma_set_pointer, introducing ecma_set_non_null_pointer. loop_arithmetics_1kk.js benchmark: 3.450 -> 3.025. 2014-08-08 15:22:05 +04:00
Ruben Ayrapetyan 0194e63331 Removing pool bitmaps; optimizing search for free pool chunks. loop_arithmetics_1kk.js benchmark: 4.134s -> 3.479s. 2014-08-08 14:26:28 +04:00
Ruben Ayrapetyan b6d9ed42ec Adding test_stability.sh to pre-commit testing. 2014-08-08 14:19:38 +04:00
Ruben Ayrapetyan c688f27f62 Adding memmove (for compiler usage). 2014-08-08 12:42:57 +04:00
Ruben Ayrapetyan f76795db8c Replacing -Os wth -O2. 2014-08-08 12:42:19 +04:00
Ruben Ayrapetyan 5788ce1199 Fixing OPTION_OPTIMIZE setup in Makefile. 2014-08-08 12:41:56 +04:00
Ruben Ayrapetyan 7ad6c25bb2 Fix invocation of GC for non-zero generations. 2014-08-07 21:10:36 +04:00
Ruben Ayrapetyan d7e28e3a28 Fixing memory leak in mem_pools_alloc. 2014-08-07 21:08:31 +04:00
Ruben Ayrapetyan 2887332573 Fixing valgrind annotations in mem_heap_alloc_block for path added in ae189c6107f943f5273f9b2fce14ad17a396636c. 2014-08-07 21:08:07 +04:00
Ruben Ayrapetyan cc4d55803c Fix func_decl_0: correctly set interpreter's opcode counter. 2014-08-07 19:35:11 +04:00
Ruben Ayrapetyan 99c15ef802 Implementing object model, memory allocators finalization routines. Adding assertion that all memory was freed before exit. 2014-08-07 19:24:32 +04:00
Ruben Ayrapetyan 5e1c4b533f Fix ecma_copy_ecma_string_chars_to_buffer. 2014-08-07 18:36:05 +04:00
Ruben Ayrapetyan 6d7c2120ef Fix ecma_gc_mark routine: checking properties, located immediately in an object descriptor. 2014-08-07 18:28:46 +04:00
Ruben Ayrapetyan 93c7b813cf Fixing heap's block allocation routine. Adding related checks to mem_check_heap. 2014-08-07 18:26:26 +04:00
Ruben Ayrapetyan e3cd8ee942 Generational mark and sweep GC. 2014-08-07 14:54:32 +04:00
Ruben Ayrapetyan 4ff5042abc Enabling full testing mode during pre-commit. 2014-08-06 15:54:37 +04:00
Ruben Ayrapetyan 084ca2325c Implementing __printf. Setting libc_raw as default libc. Removing LIBC_STD mode. 2014-08-06 15:00:33 +04:00
Ruben Ayrapetyan 440a3c64a2 Handling git push non-zero exit code in tools/push.sh. 2014-08-06 14:51:37 +04:00
Ruben Ayrapetyan 6c01782e91 Hiding *.check targets. Enablings pre-commit parse-only tests from ./benchmarks/jerry except cse.js and chess.js. Making tests named beginning from N to be skipped in jerry_test.sh. Renaming cse.js and chess.js to N.cse.js, N.chess.js. 2014-08-06 13:49:51 +04:00
Ruben Ayrapetyan 137ace24db Handling return value of run_int by setting exit code. 2014-08-06 13:06:55 +04:00
Ruben Ayrapetyan 411791ea32 Fix: remove unnecessary ecma_ref_object. 2014-08-05 17:59:20 +04:00
Ruben Ayrapetyan cd0c7ab9a0 Fixing make push output. 2014-08-05 16:02:07 +04:00
Ruben Ayrapetyan 4a3195cbba Adding *.swp to .gitignore. 2014-08-05 15:58:14 +04:00
Ruben Ayrapetyan e4ce585823 Implementing 'nop' opcode handler. 2014-08-05 15:53:17 +04:00
Ruben Ayrapetyan adfa6d3576 Adding -s (silent) flag to make command line in tools/push.sh. 2014-08-05 15:37:16 +04:00
Ruben Ayrapetyan 9f56d42ceb Adding push target. Handling empty commit list by early exit. Successful push message coloring. 2014-08-05 15:24:37 +04:00
Ruben Ayrapetyan 447d0295eb Adding tools/push.sh that runs precommit testing for every commit prepared for pushing, pushes the whole commit pack upon successful pass of all test runs. 2014-08-05 14:17:25 +04:00
Ruben Ayrapetyan eb233804d7 Removing git status checking from 'make precommit'. 2014-08-05 13:55:59 +04:00
Ruben Ayrapetyan 78a782b791 Fixing text of message in precommit script. 2014-08-05 12:50:58 +04:00
Ruben Ayrapetyan 0f8798aa1f Removing '.SILENT' special target. 2014-08-05 12:49:46 +04:00
Ruben Ayrapetyan c5930c8775 Adding new line after 'OK to push' message. 2014-08-04 22:14:26 +04:00
Ruben Ayrapetyan 8c2e5b1f7a Fixing command that excludes 'out' directory from list outputted by git status for checking if Git status of directory is clean. 2014-08-04 22:10:42 +04:00
Ruben Ayrapetyan 304098a984 Introducing make target for precommit testing: 'make precommit' that also supports parallel run: 'make -j precommit'. Introducing set of modifiers for linux target: libc_raw, musl, sanitize, valgrind. For example: 'make debug.linux-libc_raw-sanitize' or 'make release.linux-valgrind'. Removing corresponding flags. 2014-08-04 22:02:48 +04:00
Ruben Ayrapetyan 1834887a93 Fixing conflicting types for serializer_rewrite_opcode function. 2014-08-04 18:58:16 +04:00
Ruben Ayrapetyan feba25f055 Supporting ASAN with LIBC_RAW. 2014-08-04 18:43:46 +04:00
Ruben Ayrapetyan ac35a4ebf2 Fixing cppcheck warnings in mem-heap.c (appeared when valgrind=1) and in jerry-libc.c (appeared libc_raw=1). 2014-08-04 18:42:40 +04:00
Ruben Ayrapetyan 09136e3e38 Moving cppcheck run from check targets to corresponding build targets; setting cppcheck's error exit code to 1. 2014-08-04 16:59:45 +04:00
Ruben Ayrapetyan a16c1a0597 Reducing scope of 'data' variable in deserialize_num_by_id. 2014-08-04 16:57:28 +04:00
Ruben Ayrapetyan 0025827eac Fixes: JERRY_NVALGRIND effect was inverted; also a block was marked as inaccessible too early. 2014-08-01 18:30:24 +04:00
Ruben Ayrapetyan fa87696275 Revert "Fixes: JERRY_NVALGRIND effect was inverted; also a block was marked as inaccessible too early."
This reverts commit 53c0da4307b1407f506ff71b0e014eefe00da985.
2014-08-01 18:29:55 +04:00
Ruben Ayrapetyan a6feea1068 Fixes: JERRY_NVALGRIND effect was inverted; also a block was marked as inaccessible too early. 2014-08-01 18:28:18 +04:00
Ruben Ayrapetyan e1c57dc231 Adding valgrind's memcheck support in mem-heap. Adding valgrind's headers valgrind.h and memcheck.h to third-party/valgrind directory. 2014-08-01 18:22:34 +04:00
Ruben Ayrapetyan 61dd7a5dd9 nostdlib under libc_raw=1 option. 2014-08-01 15:49:27 +04:00
Ruben Ayrapetyan f4a4c91a98 Fixing read_sources: buffer and buffer_size were filled incorrectly. 2014-08-01 14:37:23 +04:00
Ruben Ayrapetyan 8260cc0214 Implementing case 3.b in PutValue operation. 2014-08-01 12:48:03 +04:00
Ruben Ayrapetyan 779fe64161 Introducing ERR_SYSCALL that should be used on failures during syscalls execution. 2014-07-31 22:31:47 +04:00
Ruben Ayrapetyan 5c72a30228 Adding ./src/libruntime/target/linux/asm_{x86,x64}.h for architecture specific assembler blocks. 2014-07-31 22:26:01 +04:00
Ruben Ayrapetyan 020325d199 __HOST -> __TARGET_HOST_X64 2014-07-31 22:23:05 +04:00
Ruben Ayrapetyan f177633622 Decreasing array chunk size to 8 bytes. 2014-07-31 17:53:43 +04:00
Ruben Ayrapetyan 4d7f14d059 Fixing ecma_compare_zt_string_to_ecma_string routine. 2014-07-31 17:52:10 +04:00
Ruben Ayrapetyan 9fd708eabe Revert "Fixing ecma_compare_zt_string_to_ecma_string routine."
This reverts commit c6e955aa2b231076b3ec70c55b38084afb4d01d2.
2014-07-31 17:51:40 +04:00
Ruben Ayrapetyan d327bf5682 Fixing ecma_compare_zt_string_to_ecma_string routine. 2014-07-31 17:49:16 +04:00
Ruben Ayrapetyan 2c85a55c85 Introducing Global Environment constructor; using Global Environment as starting lexical environment. 2014-07-31 17:21:47 +04:00
Ruben Ayrapetyan bfad8e897d Implementing ECMA-262 v5 10.2.1.2 operations (object environment record's CreateMutableBinding, SetMutableBinding, etc.). 2014-07-31 17:13:20 +04:00
Ruben Ayrapetyan f8ef3deaf3 Full implementation of general objects' [[DefineOwnProperty]]. 2014-07-31 17:07:21 +04:00
Ruben Ayrapetyan a084273286 Minor style fixes. 2014-07-31 17:05:51 +04:00
Ruben Ayrapetyan 9610680e3c Fix ecma_create_object_lex_env: increasing binding object's reference counter. 2014-07-31 14:56:22 +04:00