1. 06 9月, 2018 1 次提交
    • L
      Improve API of literal save and the snapshot (command line) tool (#2507) · 99c9a22b
      László Langó 提交于
      Removed 'jerry_parse_and_save_literals' and introduced
      'jerry_get_literals_from_snapshot' instead which works
      on snapshot buffers rather than source code. Added literal
      saving feature to snapshot merge in the snapshot command
      line tool. Also added missing 'jerry_cleanup()' calls to the
      snapshot tool. Improved the console messages of the snapshot
      tool.
      
      Based on previous work of Tamas Zakor <ztamas@inf.u-szeged.hu>
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      99c9a22b
  2. 04 9月, 2018 2 次提交
    • A
      Promote dynamic memory management from debugger transport to core API (#2503) · 054717fd
      Akos Kiss 提交于
      Under the cover of the debugger transport layer, allocation on the
      engine's heap has been made available to the public. As there are
      actually no restrictions on what the allocated memory can be used
      for, the memory management functions better fit in the core part
      of the API.
      
      Closes #1805
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      054717fd
    • A
      Merge instance into context (#2501) · 30b7a723
      Akos Kiss 提交于
      There was quite some confusion about terminology around instances
      and contexts. All the docs mentioned external contexts but
      functions and types were referring to instances, and the relation
      between these two concepts were not clear. This commit keeps
      (external) context as the only surviving concept.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      30b7a723
  3. 30 8月, 2018 2 次提交
  4. 29 8月, 2018 1 次提交
  5. 08 8月, 2018 1 次提交
  6. 20 7月, 2018 1 次提交
  7. 19 7月, 2018 1 次提交
    • Z
      Remove jerry_get_arg_value function. (#2425) · 88589902
      Zoltan Herczeg 提交于
      Remove automatic conversion of errors. Errors are
      primary values, just like numbers or strings.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      88589902
  8. 13 7月, 2018 1 次提交
  9. 28 6月, 2018 1 次提交
  10. 15 6月, 2018 1 次提交
  11. 12 6月, 2018 1 次提交
    • I
      Fix jerry_get_value_from_error (#2394) · 62dee2dd
      Istvan Miklos 提交于
      Fix the function to take into account the second argument even if it is called with not
      an error value.
      
      JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
      62dee2dd
  12. 11 6月, 2018 1 次提交
  13. 25 5月, 2018 1 次提交
  14. 18 5月, 2018 1 次提交
  15. 03 5月, 2018 2 次提交
  16. 19 4月, 2018 1 次提交
    • Z
      Add line info support. (#2286) · 5e097dc3
      Zoltan Herczeg 提交于
      Add line info data to byte, which allows getting a backtrace info directly
      from the engine. Snapshots are not supported.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      5e097dc3
  17. 17 4月, 2018 1 次提交
    • Z
      Rework jerry_parse function. (#2282) · 96b528a4
      Zoltan Herczeg 提交于
      Remove jerry_parse_named_resource, merge its arguments to jerry_parse
      and change is_strict argument to an option list for possible future extensions.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      96b528a4
  18. 11 4月, 2018 1 次提交
  19. 05 4月, 2018 4 次提交
    • Z
      Rework snapshot generation API. (#2259) · 7b226f53
      Zoltan Herczeg 提交于
      Also remove eval context support. It provides no practical advantage.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      7b226f53
    • M
      Add finalize_cb to jerry_context_data_manager_t (#2269) · 35926f3f
      Martijn Thé 提交于
      This patch adds a new finalize_cb callback to jerry_context_data_manager_t.
      The callback is run as the very last thing in jerry_cleanup, after the VM has been torn down entirely.
      There was already the deinit_cb, which is run while the VM is still in the process of being torn down.
      The reason the deinit_cb is not always sufficient is that there may still be objects alive (because they still being referenced) that have native pointers associated with the context manager that is being deinit'ed.
      As a result, the free_cb's for those objects can get called *after* the associated context manager's deinit_cb is run. This makes cleanup of manager state that is depended on by the live objects impossible to do in the deinit_cb. That type of cleanup can only be done when all values have been torn down completely.
      
      JerryScript-DCO-1.0-Signed-off-by: Martijn The martijn.the@intel.com
      35926f3f
    • Z
      Add json parse and stringify function to jerryscript c api (#2243) · 78bd11e7
      ZsoltRaduska 提交于
      JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska rzsolt@inf.u-szeged.hu
      78bd11e7
    • Z
      Improve jerry_is_feature_enabled with object availability information (#2250) · 0476523f
      ZsoltRaduska 提交于
      JerryScript-DCO-1.0-Signed-off-by: Zsolt Raduska rzsolt@inf.u-szeged.hu
      0476523f
  20. 21 3月, 2018 1 次提交
  21. 20 3月, 2018 1 次提交
    • Z
      Support static snapshots. (#2239) · bb84466f
      Zoltan Herczeg 提交于
      Unlike normal snapshots, no part of a static snapshot is loaded into
      the RAM when executed from ROM. Static snapshots rely heavily on
      external magic strings.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      bb84466f
  22. 01 3月, 2018 1 次提交
  23. 13 2月, 2018 1 次提交
  24. 06 2月, 2018 2 次提交
    • P
      Introduce C API to query the type of an Error object (#2177) · 6f339eb0
      Péter Gál 提交于
      New api function:
      * jerry_get_error_type
      
      Additionally update a few places where this new function
      can be used.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      6f339eb0
    • P
      Add TypedArray C API (#2165) · 8041953a
      Péter Gál 提交于
      New API functions added:
       - jerry_value_is_typedarray
       - jerry_create_typedarray
       - jerry_create_typedarray_for_arraybuffer_sz
       - jerry_create_typedarray_for_arraybuffer
       - jerry_get_typedarray_type
       - jerry_get_typedarray_length
       - jerry_get_typedarray_buffer
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      8041953a
  25. 02 2月, 2018 1 次提交
    • M
      Update documentation for jerry string to buffer function with suggestions to... · 0cc98340
      mofosyne 提交于
      Update documentation for jerry string to buffer function with suggestions to use substring. (#2174) (#2174)
      
      In some use cases, you want to reliably copy jerry strings to buffer, even if it doesn't fit target buffer, but is acceptable to lose some bytes. In those cases, the documentation will now suggest using the substring function as an alternative instead.
      
      JerryScript-DCO-1.0-Signed-off-by: Brian Khuu mofosyne@gmail.com
      0cc98340
  26. 30 1月, 2018 1 次提交
    • Z
      Add support for aborts. (#2176) · 918eb22a
      Zoltan Herczeg 提交于
      Aborts are similar to exceptions except they are not caught by catch
      and finally blocks. Callbacks should honor aborts as well and return
      them without processing them. Aborts are never thrown by JavaScript
      code.
      
      In the future certain events such as out-of-memory condition may
      also throw aborts.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      918eb22a
  27. 25 1月, 2018 1 次提交
    • P
      Add ArrayBuffer with user specified buffer · 4b699e99
      Peter Gal 提交于
      New API functions:
       - jerry_create_arraybuffer_external
       - jerry_get_arraybuffer_pointer
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      4b699e99
  28. 12 1月, 2018 1 次提交
    • P
      Introduce the Array Buffer C API (#2161) · ded0d5a8
      Péter Gál 提交于
      Add C API to work with Array Buffers.
      The following methods are added:
      - jerry_value_is_arraybuffer
      - jerry_create_arraybuffer
      - jerry_arraybuffer_write
      - jerry_arraybuffer_read
      - jerry_get_arraybuffer_byte_length
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      ded0d5a8
  29. 13 12月, 2017 1 次提交
  30. 19 10月, 2017 1 次提交
    • P
      Fix API docs · 4913a420
      Peter Gal 提交于
      The #2043 introduced a bit of error in the API
      docs as there was missing backticks.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      4913a420
  31. 18 10月, 2017 1 次提交
    • P
      Introduce a way to directly save snapshot functions and load them back (#2043) · 6d988afb
      Péter Gál 提交于
      Added two new api functions:
      * jerry_parse_and_save_function_snapshot
      * jerry_load_function_snapshot_at
      
      The jerry_parse_and_save_function_snapshot function allows
      creating snapshots from snapshot arguments and body source.
      
      The jerry_load_function_snapshot_at function enables loading
      back functions from a given snapshot as a JS function object.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      6d988afb
  32. 12 10月, 2017 1 次提交
    • Z
      Support multiple primary functions in a single snapshot. (#1797) · fe266747
      Zoltan Herczeg 提交于
      This patch adds an extension to snapshots which allows storing
      multiple position independent primary functions in a single
      snapshot data. A new application called jerry-snapshot is
      added to the project to manage snapshots. Currently the only
      option is merging snapshots.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      fe266747
  33. 21 9月, 2017 1 次提交
    • Z
      Parse functions directly (#2015) · 8d916a44
      Zoltan Herczeg 提交于
      This patch adds direct function source code parsing, which
      is useful to avoid source code duplications. The patch
      also improves the Function constructor.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      8d916a44