SaeHie Park
603fa56acf
Add vm_finalize() to clean program pointer for embed systems
...
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-06-09 07:50:43 +09:00
Akos Kiss
9d423d9901
Make exit behaviour of jerry_fatal flag-dependent
...
* Added new flag `JERRY_FLAG_ABORT_ON_FAIL`.
* Added new internal api function `jerry_is_abort_on_fail` to
check the status of the flag.
* Changed `jerry_fatal` bail-out function to call `abort` when the
flag is set and exit code is non-zero (i.e., not only for
assertion failures).
* Added `--abort-on-fail` command line option to linux and nuttx
apps to set the flag.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-06-03 17:09:51 +02:00
Ruben Ayrapetyan
3a9bf24001
Update of several 'vm' component interfaces naming.
...
init_int -> vm_init;
run_int -> vm_run_global;
run_int_loop -> vm_loop;
run_int_from_pos -> vm_run_from_pos;
read_opcode -> vm_get_opcode.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-05-28 19:12:54 +03:00
Andrey Shitov
d6c9c5911e
Add logging support for linux.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-05-20 15:28:36 +03:00
Ilyong Cho
0c058747f1
Implemented jerry_api_create_error()
...
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
2015-05-20 19:59:46 +09:00
Andrey Shitov
9763a93df3
Add new coding style rules and fix appeared issues.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
2015-05-14 14:44:57 +03:00
SaeHie Park
da86a52fe9
Fix object free callback.
...
- remove jerry_set_object_free_callback()
- change jerry_api_set_object_native_handle() with object_free_callback
- related issue: https://github.com/Samsung/jerryscript/issues/17
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-05-10 17:55:26 +09:00
Ruben Ayrapetyan
1f5a4f2690
Adding missing API availability assertion.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-05-05 17:37:31 +03:00
SaeHie Park
5ec3e2f59a
Native callback in embedding jerry when object is to be freed.
...
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-05-04 19:59:58 +09:00
SaeHie Park
17036c854e
new jerry_assert_api_available for APIs that need to disable re-enter jerry_api
...
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
2015-04-30 22:28:21 +03:00
Ruben Ayrapetyan
9b256b9bc9
Renaming --mem-stats-at-exit option to --mem-stats; adding --mem-stats-separate option for dumping memory statistics and resetting memory usage peak values after parse.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-04-30 18:54:51 +03:00
Ruben Ayrapetyan
d8adf0de2c
Splitting --mem-stats option to --mem-stats-at-exit and --mem-stats-per-opcode.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-04-30 18:54:50 +03:00
Ruben Ayrapetyan
cde7805356
Interface jerry_api_eval for performing eval operation.
2015-04-18 21:48:57 +03:00
Ruben Ayrapetyan
175f8912b2
Passing ecma_value_t by value instead of by reference.
2015-04-18 21:46:13 +03:00
Ruben Ayrapetyan
18079fb4d3
Implementing API for invocation of a function object as a constructor.
2015-04-10 09:55:04 +03:00
Ruben Ayrapetyan
36424c0fd2
Removing contexts arguments from Jerry API; introducing jerry_push_ctx and jerry_pop_ctx interfaces; putting context-related API part under #ifdef CONFIG_JERRY_ENABLE_CONTEXTS (supposed to be implemented later, when becomes necessary).
2015-04-08 15:37:23 +03:00
Andrey Shitov
7c67606b00
Parser refactoring. Remove deserializer notion.
2015-04-07 13:05:19 +03:00
Ruben Ayrapetyan
469ef4e622
Implementing API for associating native handle (uintptr_t) values with JS objects.
2015-04-07 13:01:01 +03:00
Ruben Ayrapetyan
c350a2bade
Fixing jerry_api_set_object_field_value and jerry_api_call_function descriptions.
2015-04-06 16:27:47 +03:00
Ilyong Cho
72d8c38d77
Reimplementation of jerry_api_is_funciton and jerry_api_is_constructor
2015-04-06 11:41:22 +03:00
Ruben Ayrapetyan
83730cd6bb
Implementing dispatcher for calling native handlers associated with external function objects; implementing interface for unified storage of native pointers in ecma objects.
2015-04-03 23:38:52 +03:00
Ilyong Cho
23ade8f4ff
wip: Implementing external function api
2015-04-03 18:11:21 +09:00
Ruben Ayrapetyan
a32b149a1a
Fixing handling of 'undefined' value in jerry_api_convert_ecma_value_to_api_value.
2015-04-02 15:52:25 +03:00
Ruben Ayrapetyan
eb3686a49d
Adding jerry_api_is_constructor interface that check if specified object is a function object that implement [[Construct]] method; changing jerry_api_is_function to recognize bound and built-in functions; optimizing jerry_api_call_function.
2015-04-01 12:39:29 +03:00
Ilyong Cho
3c2009d331
Adding Jerry api for calling function with specific this binding.
2015-04-01 11:06:20 +09:00
Ruben Ayrapetyan
ef2265ee41
Jerry API implementation.
2015-03-31 13:56:59 +03:00
Ruben Ayrapetyan
33cfaa73b3
Implementation of unimplemented Jerry API parts; adding Jerry API unit test based on test prepared by Ilyong.
2015-03-30 20:54:55 +03:00
Ruben Ayrapetyan
eb7dce272a
Update of --mem-stats flag fix: leaving MEM_STATS definition only in jerry-core.
2015-03-30 20:00:55 +03:00
Ilyong Cho
cf5e158510
Implement some Jerry API / jerry_api_call_function() and jerry_api_get_object_field_value()
2015-03-30 16:04:49 +09:00
Ruben Ayrapetyan
9746b2fd76
Jerry API for calling functions C -> Jerry, creating objects, reading / writing object's properties (currently, only interface declaration, without implementation).
2015-03-27 18:05:27 +03:00
Ruben Ayrapetyan
6b0b669c14
Support passing of string and object arguments to plugins' bound functions.
2015-03-25 18:35:37 +03:00
Ruben Ayrapetyan
79695bf3cd
Extension description syntax; extension instantiation, field values and calls with arguments (except strings); example of a simple extension.
...
String arguments support is supposed to be added in a subsequent commit.
2015-02-25 16:51:21 +03:00
Ruben Ayrapetyan
3d9635300b
Moving ecma initialization/finalization from run_int to jerry_init/jerry_cleanup.
2015-02-24 15:12:47 +03:00
Ruben Ayrapetyan
f42faabe89
Fixing style according to rules defined in vera++ scripts.
2015-02-17 19:47:00 +03:00
Ruben Ayrapetyan
88353e93cf
Renaming core -> jerry-core.
2015-02-17 19:08:55 +03:00