1. 11 8月, 2021 1 次提交
  2. 11 3月, 2021 1 次提交
  3. 09 9月, 2020 1 次提交
  4. 04 10月, 2019 1 次提交
    • P
      Improve documentation on native pointer API methods (#3191) · 3e23a3b6
      Péter Gál 提交于
      Added extra notes on the native pointer API usages to clarify
      when the free callback function is invoked. Also added a note
      for the free callback typedef to inform users to not call API methods
      in the callback.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      3e23a3b6
  5. 02 10月, 2019 2 次提交
  6. 20 9月, 2019 2 次提交
    • C
      Disable unsupported doctest tests on Windows (#3135) · 1acbf83d
      Csaba Osztrogonác 提交于
      Disable 02.API-REFERENCE-create-context.c, because
      it is based on pthread, and there is no pthread on Windows.
      
      Disable 11.EXT-REFERENCE-AUTORELEASE.c and test-ext-autorelease.c
      if compiler is MSVC, because MSVC doesn't support cleanup attribute.
      
      JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
      1acbf83d
    • C
      Disable INIT_FINI unittest on Windows (#3132) · dc44b8b9
      Csaba Osztrogonác 提交于
      MSVC doesn't support library constructor/destructor, let's disable
      the related unittest and clarify the documentation and error messages.
      
      JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
      dc44b8b9
  7. 17 9月, 2019 1 次提交
    • C
      Fix jerry_get_context_data() API function (#3127) · c05686b6
      Csaba Osztrogonác 提交于
      If manager_p->bytes_needed == 0, jerry_get_context_data() should return
      NULL pointer. Additionally init_cb, deinit_cb and finalize_cb should be
      called with NULL pointer in this case.
      
      JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
      c05686b6
  8. 05 9月, 2019 1 次提交
    • P
      Add backtrace print when the 'assert' js method fails (#3051) · 57f389dc
      Péter Gál 提交于
      In the jerry-ext there is a native 'assert' handler implemented.
      This change adds extra backtrace information if an 'assert' call fails.
      
      To print out the backtrace the library should be built with `JERRY_LINE_INFO` enabled.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      57f389dc
  9. 09 8月, 2019 1 次提交
  10. 06 8月, 2019 3 次提交
    • D
      Add build option for changing the heap limit (#3005) · 3b7475b0
      Dániel Bátyai 提交于
      This change adds a build option that allows adjusting the garbage
      collection heap usage limit, which can be used to fine-tune how often
      garbage collection should be triggered.
      
      JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
      3b7475b0
    • C
      Don't use VLA's in unit tests and API examples (#3002) · 9c751122
      Csaba Osztrogonác 提交于
      MSVC doesn't support C99 VLA (variable-length array).
      Use fixed size arrays in API examples and use JERRY_VLA macro
      in unit tests to make these tests buildable on Windows too.
      
      JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
      9c751122
    • C
      Fix unused parameter related build issues on Windows (#3003) · 051febfe
      Csaba Osztrogonác 提交于
      MSVC doen't support __attribute__((unused)),
      we should use JERRY_UNUSED macro instead.
      
      Additionally removed the internal jrt.h include from
      tests/unit-core/test-common.h which was layering violation.
      It made JERRY_ASSERT unavailable, we should use TEST_ASSERT.
      
      JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
      051febfe
  11. 01 8月, 2019 1 次提交
  12. 26 7月, 2019 2 次提交
    • P
      Introduce new jerry-ext methods to ease property registration (#2715) · c64ee882
      Péter Gál 提交于
      New methods
      * jerryx_set_properties: Allows multiple property registration for via a single call
      * jerryx_set_property_str: Allows property registration without the need to
          create the property name JS value. The property name can be directly passed
          as a `const char*` value and must be zero terminated.
      * jerryx_get_property_str: Allows getting a property value on a given object.
          The property name can be directly passed as a `const char*` value.
      * jerryx_has_property_str: Allows checking if a property exists on a given object.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      c64ee882
    • I
      Migration Guide (#2419) · 7575fa45
      Istvan Miklos 提交于
      * Migration Guide
      
      Migration guide from JerryScript 1.0 to 2.0.
      
      Co-authored-by: László Langó llango.u-szeged@partner.samsung.com
      Co-authored-by: Peter Gal pgal.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
      
      * Add version information for API methods
      
      For each API method/type the documentation now includes
      the version it was introduced or a change occured.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      7575fa45
  13. 25 7月, 2019 1 次提交
    • P
      Document and improve the single-source generation (#2986) · 50be3a53
      Péter Gál 提交于
      Changes done:
      * Added usage/configuration info for this mode.
      * Created `tools/srcgenerator.py` to allow source/header generation
        without using CMake.
      * Adapted CMake to use the `srcgenerator.py` script.
      * Added jerry-libm single-source build.
      * Improved the `srcmerger.py` script to correctly handle the line numbering.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      50be3a53
  14. 24 7月, 2019 1 次提交
  15. 23 7月, 2019 1 次提交
  16. 22 7月, 2019 1 次提交
  17. 17 7月, 2019 2 次提交
    • D
      Resolve module paths relative to the current module (#2976) · ec11a7b4
      Dániel Bátyai 提交于
      The current module implementation resolves module paths relative to the
      current working directory, but paths should be resolved relative to the
      currently evaluated module/source.
      
      This requires a change in the jerry_port_normalize_path port API
      function, so that it also takes the current module path as an argument.
      On the engine side, we now also create a module object for the main
      script, so that we can properly identify the base path for other
      modules.
      Co-authored-by: NMarko Fabo <mfabo@inf.u-szeged.hu>
      JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
      ec11a7b4
    • D
      Refactor memory management (#2954) · ff22634e
      Dániel Bátyai 提交于
      This PR is a general cleanup for garbage collection and memory
      allocation code paths.
      
      Changes:
        * Removed an unnecesary local variable from 'ecma_gc_mark'.
        * Refactored 'ecma_gc_run' to have an implicit list head during
          iteration, which results in one less condition in the loops,
          and changed the loops to use compressed pointers to reduce the
          overall amount of compression/decompression.
        * Renamed 'jmem_free_unused_memory_severity_t' to 'jmem_pressure_t',
          and added additional values.
        * Removed 'jmem_free_unused_memory_callback', instead
          'ecma_free_unused_memory' is now called directly.
        * Reworked 'ecma_free_unused_memory' to handle all code paths related
          to 'jmem_pressure_t', and moved all relevant code paths into this
          function. This simplifies the code paths in other places.
        * Reworked 'jmem_heap_gc_and_alloc_block' to be more streamlined.
        * Changed mem-stats to not report unused pool chunks as allocated
          memory.
        * Created an allocator internal API for allocating/freeing memory blocks
          that are not reported as used memory in mem-stats.
        * Removed iteration statistics for the jerry allocator from mem-stats,
          as they don't provide any actually useful information.
      Co-authored-by: NMarko Fabo <mfabo@inf.u-szeged.hu>
      JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
      ff22634e
  18. 11 7月, 2019 1 次提交
    • P
      Update and improve API documentation (#2952) · 1374d5f5
      Péter Gál 提交于
      A few parts of the API documentation was not clear enough.
      Added extra details and examples.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      1374d5f5
  19. 10 7月, 2019 1 次提交
  20. 02 7月, 2019 1 次提交
  21. 01 7月, 2019 1 次提交
  22. 27 6月, 2019 1 次提交
  23. 19 6月, 2019 2 次提交
    • P
      Rework usages/naming of configuration macros [part 2] (#2903) · 01ecc7bb
      Péter Gál 提交于
      There are quite a few configuration macros in the project.
      As discussed in the #2520 issue there are a few awkward constructs.
      
      Main changes:
      
      * The following macros are now 0/1 switches:
      ** Renamed CONFIG_ECMA_LCACHE_DISABLE to JERRY_LCACHE.
      ** Renamed CONFIG_ECMA_PROPERTY_HASHMAP_DISABLE to JERRY_PROPERTY_HASHMAP.
      ** Renamed CONFIG_DISABLE_UNICODE_CASE_CONVERSION to JERRY_UNICODE_CASE_CONVERSION.
      ** Renamed ENABLE_REGEXP_STRICT_MODE to JERRY_REGEXP_STRICT_MODE.
      ** Renamed JERRY_DISABLE_JS_PARSER to JERRY_PARSER.
      ** Renamed JERRY_ENABLE_ERROR_MESSAGES to JERRY_ERROR_MESSAGES.
      ** Renamed JERRY_ENABLE_EXTERNAL_CONTEXT to JERRY_EXTERNAL_CONTEXT.
      ** Renamed JERRY_ENABLE_LINE_INFO to JERRY_LINE_INFO.
      ** Renamed JERRY_ENABLE_LOGGING to JERRY_LOGGING.
      ** Renamed JERRY_ENABLE_SNAPSHOT_EXEC to JERRY_SNAPSHOT_EXEC.
      ** Renamed JERRY_ENABLE_SNAPSHOT_SAVE to JERRY_SNAPSHOT_SAVE.
      ** Renamed JERRY_SYSTEM_ALLOCATOR to JERRY_SYSTEM_ALLOCATOR.
      ** Renamed JERRY_VM_EXEC_STOP to JERRY_VM_EXEC_STOP.
      ** Renamed JMEM_GC_BEFORE_EACH_ALLOC to JERRY_MEM_GC_BEFORE_EACH_ALLOC.
      ** Renamed JMEM_STATS to JERRY_MEM_STATS.
      ** Renamed PARSER_DUMP_BYTE_CODE to JERRY_PARSER_DUMP_BYTE_CODE.
      ** Renamed REGEXP_DUMP_BYTE_CODE to JERRY_REGEXP_DUMP_BYTE_CODE.
      * Recursion check changes:
      ** Renamed REGEXP_RECURSION_LIMIT to JERRY_REGEXP_RECURSION_LIMIT.
      ** Renamed VM_RECURSION_LIMIT to JERRY_VM_RECURSION_LIMIT.
      * Attribute macro changes:
      ** Renamed JERRY_CONST_DATA to JERRY_ATTR_CONST_DATA.
      ** Renamed JERRY_HEAP_SECTION_ATTR to JERRY_ATTR_GLOBAL_HEAP.
        Now the macro can specify any attribute for the global heap object.
      * Other macro changes:
      ** Renamed CONFIG_MEM_HEAP_AREA_SIZE to JERRY_GLOBAL_HEAP_SIZE.
         Then new macro now specify the global heap size in kilobytes.
      * Updated documentations to reflect the new macro names.
      
      For more deatils please see jerry-core/config.h.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      01ecc7bb
    • A
      Improve libfuzz integration (#2916) · 8ee8bc27
      Akos Kiss 提交于
      - Allow command line tools to build together with libfuzzer driver.
        Compile everything with `-fsanitize=fuzzer-no-link` to prevent
        linking in libfuzzers's `main` symbol in all executables (causing
        duplicate symbol errors in command line tools), and add
        `-fsanitize=fuzzer` to the libfuzzer driver only.
      
      - Make ASan optional when building with libfuzzer to allow the user
        to choose freely from available sanitizers (e.g., UBSan, MSan,
        HWASan).
      
      - Stabilize libfuzzer by resetting PRNG seed at every invocation.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      8ee8bc27
  24. 07 6月, 2019 1 次提交
  25. 25 4月, 2019 1 次提交
  26. 24 4月, 2019 1 次提交
  27. 18 4月, 2019 2 次提交
    • J
      Add missing jerry_release_value by calling jerry_set_property and... · 9d7a0db0
      jerry-weng 提交于
      Add missing jerry_release_value by calling jerry_set_property and jerry_set_property_by_index (#2821)
      
      JerryScript-DCO-1.0-Signed-off-by: jerry-weng jjweng2007@gmail.com
      9d7a0db0
    • L
      Minor fixes of the documentation (#2834) · 5be93dc7
      László Langó 提交于
       * Fixed wrong file name indexes in the docs folder.
       * Added description of the logging options into the getting started guide
       * Added missing files to the 'update-webpage.sh' script
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      5be93dc7
  28. 17 4月, 2019 1 次提交
    • L
      Updated the API reference (#2828) · bc9efb07
      László Langó 提交于
      Fixed style issues, fixed inaccurate descriptions and added missing information.
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      bc9efb07
  29. 16 4月, 2019 2 次提交
    • R
      Implement DataView builtin (#2804) · 5c72d995
      Robert Fancsik 提交于
      New API functions:
       - jerry_create_dataview
       - jerry_value_is_dataview
       - jerry_get_dataview_buffer
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      5c72d995
    • R
      Allow the JS objects to have more than one native pointer data (#2814) · b3f4aa68
      Robert Fancsik 提交于
      Currently JS objects can only have one native pointer data which could be a limitation in special cases.
      This patch allows to register multiple native infos, which can be accessed/associated with the corresponding `jerry_object_native_info_t`.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      b3f4aa68
  30. 02 4月, 2019 1 次提交
  31. 29 3月, 2019 1 次提交