Commit Graph

76 Commits

Author SHA1 Message Date
Ruben Ayrapetyan 8e1156bd9e Support of STM32F3 board. 2014-10-17 21:48:09 +04:00
Ruben Ayrapetyan 18f442b09d Disabling output of file name, function name and line on abnormal engine termination under JERRY_NDEBUG. 2014-10-16 18:47:59 +04:00
Ruben Ayrapetyan 9c3c835a7e Implementing syscall invocation sequence for ARMv7 architecture.
Removing dependencies to third-party libc routine implementations.
Introducing __TARGET_HOST define for host (non-MCU) builds.
2014-10-16 18:39:56 +04:00
Ilmir Usmanov 16556eb830 Fix 'switch' bytecode generation. Remove __strtof. Fix opcodes pretty-printing. 2014-10-16 15:33:54 +04:00
Ruben Ayrapetyan c231893b28 Implementation of Number built-in object and partial implementation of Number.prototype built-in object.
Fixing [[Prototype]] and [[Class]] properties of Array and String built-in objects.
2014-10-16 13:25:47 +04:00
Ilmir Usmanov 562f877328 Remove end-of-file marker and fix lsr's operands. 2014-10-14 22:02:02 +04:00
Ruben Ayrapetyan ab5a66cebe Implementing __aeabi_llsr (ARM Runtime ABI: long long right shift). 2014-10-14 18:09:11 +04:00
Ruben Ayrapetyan d49dfd3956 Implementing __aeabi_llsl (ARM Runtime ABI: long long left shift). 2014-10-14 15:13:16 +04:00
Ruben Ayrapetyan c4ba033970 Renaming ERR_MEMORY -> ERR_OUT_OF_MEMORY. 2014-10-14 14:08:38 +04:00
Ruben Ayrapetyan 211ea32dbf Fixing jrt_set_mem_limits. 2014-10-13 15:53:04 +04:00
Ilmir Usmanov 3819883f80 Add human-readable syntax errors 2014-10-03 19:01:45 +04:00
Ruben Ayrapetyan fd7f153747 Additional assertions in jrt_{get/set}_bit_field_value. 2014-09-23 15:23:50 +04:00
Ruben Ayrapetyan d9e0f2936d Adding jerry_unreachable and jerry_unimplemented routines that print file name and line for corresponding unreachable, unimplemented marks. 2014-09-18 17:08:32 +04:00
Ruben Ayrapetyan 30008f8dc5 Splitting ERR_GENERAL error code in ERR_FAILED_INTERNAL_ASSERTION and ERR_UNIMPLEMENTED_CASE; introducing ERR_FAILED_ASSERTION_IN_SCRIPT error code for handling non-zero script's exit values. 2014-09-18 14:02:34 +04:00
Ruben Ayrapetyan e8991abadb Fixing __printf for format strings with '+' specifier like '%+5d'. 2014-09-16 20:53:02 +04:00
Ruben Ayrapetyan 1d02085dc6 Packing ecma_object_t to 8 bytes. 2014-08-29 17:38:05 +04:00
Ruben Ayrapetyan b529fc2da9 Processing unhandled exception by exiting engine with ERR_UNHANDLED_EXCEPTION; determining if function's code is strict by checking for appearance of 'meta' opcode of OPCODE_META_TYPE_STRICT_CODE type at the beginning of the function's code. 2014-08-28 20:21:47 +04:00
Ruben Ayrapetyan f9ff4e1ba3 Reducing includes of system headers in jerry-libc.c (LIBC_RAW). 2014-08-19 20:51:30 +04:00
Ruben Ayrapetyan 6553daa22b Limiting data and stack size by setrlimit. 2014-08-14 16:08:06 +04:00
Ruben Ayrapetyan a672807990 Style fix in stm32f4/jerry-libc.c. 2014-08-13 16:50:17 +04:00
Ruben Ayrapetyan b4a29f754a Style fixes in libruntime. 2014-08-12 14:16:05 +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
e.gavrin 3d946da4fb Revert "fix formatting in rc/libruntime/target/linux/jerry-libc.c"
This reverts commit 22892ba01bf9fe0fea2f04bfb5767285c0fa270c.

Conflicts:
	Makefile.mk
2014-08-11 13:05:22 +04:00
e.gavrin 4b651ab427 fix formatting in rc/libruntime/target/linux/jerry-libc.c 2014-08-11 11:33:42 +04:00
Ruben Ayrapetyan c688f27f62 Adding memmove (for compiler usage). 2014-08-08 12:42:57 +04:00
Ilmir Usmanov 5690be49dd Move serializer and deserializer to liboptimizer 2014-08-06 20:32:16 +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
Ilmir Usmanov 4a7bb710fa Add 'assert' intrinsic 2014-08-06 14:17:53 +04:00
Ilmir Usmanov 3b624be051 Fix adjusting jumps 2014-08-05 11:51:49 +04:00
Ilmir Usmanov fb86387675 Merge branch 'geppetto' 2014-08-04 22:56:41 +04:00
Ilmir Usmanov 557100059a Add bytecode pretty-printing 2014-08-04 22:56:26 +04:00
Ruben Ayrapetyan 1834887a93 Fixing conflicting types for serializer_rewrite_opcode function. 2014-08-04 18:58:16 +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
Ilmir Usmanov 039efcc3ae Merge branch 'geppetto' 2014-08-04 17:09:22 +04:00
Ilmir Usmanov eee88ffdc2 Add basic support of 'break' and 'continue' statements (without identifiers) 2014-08-04 17:09:02 +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 61dd7a5dd9 nostdlib under libc_raw=1 option. 2014-08-01 15:49:27 +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
Ilmir Usmanov 14f0563d1a Fix couple of bugs show-opcodes: lexer should not dump lines, serializer must not rewrite a single opcode when dumping 2014-07-31 21:09:42 +04:00
Ilmir Usmanov 0d1935e3a8 Merge 2014-07-31 20:11:31 +04:00
Ilmir Usmanov 2809ffb36d Add scope reordering ("use strict" -> func_decl -> var_decl -> other opcodes); Add --show-opcodes console parameter 2014-07-31 19:30:27 +04:00
Ruben Ayrapetyan 56daef38eb Fixing debug.stm32f4: uncommented memcpy and memset aliases, placed them under #ifndef LIBC_MUSL. 2014-07-30 13:57:40 +04:00
e.gavrin 076af9e1d3 add musl support for host systems using musl=1 flag 2014-07-29 23:28:11 +04:00
Ilmir Usmanov e497875c06 Change strings offset size from 8 bits to 16 bits 2014-07-29 17:49:13 +04:00
Ilmir Usmanov bc9d80147a Reduce lexer's memory consumption 2014-07-29 11:55:16 +04:00
Ilmir Usmanov 1b6638f073 Add ERR_MEMORY exit code to show that there was not enough memory; fix debug.stm build 2014-07-28 19:39:11 +04:00
Ruben Ayrapetyan 222e9e680c Adding assertion checks in serializer_dump_opcode and serializer_rewrite_opcode to avoid buffer overrun. 2014-07-25 18:20:54 +04:00
Ilmir Usmanov 40007126fa Fix memory corruptions in lexer, which occured while parsing cse.js; remove lexer.log and parser.log files 2014-07-25 14:16:29 +04:00
Ilmir Usmanov c9c26251a4 Add savings bytecode in memory on target 2014-07-25 12:37:29 +04:00