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 7 次提交
    • 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
    • Z
      Introducing internal properties. (#2485) · 0a40f55e
      Zoltan Herczeg 提交于
      Native handle and pointer are moved to internal properties.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      0a40f55e
    • 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
    • Z
      Implement the core of the map object. (#2447) · d3d42f76
      Zoltan Herczeg 提交于
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      d3d42f76
    • D
      Fix UTF8 string length calculation (#2508) · 65e81f32
      Daniel Balla 提交于
      Fixes #2451
      Fixes #2452
      Fixes #2453
      Co-authored-by: NRobert Fancsik <frobert@inf.u-szeged.hu>
      JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
      65e81f32
    • A
      Fixup JMEM_HEAP_STAT_xxx definitions (#2509) · b934dd83
      Akos Kiss 提交于
      - Get the macro definition indentations right.
      - Define some of the macros only if system allocator is not in use.
      - Ensure that macros with arguments don't cause unused variable
        warnings even if memory statistics is disabled.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      b934dd83
    • D
      Fix run-test-suite (#2505) · 9ea9061a
      Daniella Barsony 提交于
      You could not interrupt the test with Ctrl+C
      
      JerryScript-DCO-1.0-Signed-off-by: Daniella Barsony bella@inf.u-szeged.hu
      9ea9061a
  3. 03 9月, 2018 3 次提交
  4. 31 8月, 2018 3 次提交
    • D
      Fix ecma_builtin_promise_race_or_all function (#2491) · f5757e4c
      Daniel Balla 提交于
      If a new Capability was created no check was issued if it happened to be an error.
      Fixes #2465
      Fixes #2468
      Also fixes the second variant of #2490.
      
      JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
      f5757e4c
    • A
      Reorganize heap context related elements (#2500) · c3b6bfe8
      Akos Kiss 提交于
      - Moved global context's `JMEM_HEAP_SIZE` to jcontext.h as external
        context's heap size is declared there, too.
      - Moved the assert on `jmem_heap_t` vs `JMEM_HEAP_SIZE` to jcontext.c,
        as both entities are declared in the corresponding header.
      - Removed superfluous checks on `JMEM_HEAP_SIZE` as it is not a
        publicly configurable macro (opposed to `CONFIG_MEM_HEAP_AREA_SIZE`).
      - Ensured that all definitions of and references to `jmem_heap_t`,
        `JERRY_HEAP_CONTEXT`, `JERRY_HEAP_SIZE`, and `JERRY_HEAP_AREA_SIZE`
        are guarded by `#ifndef JERRY_SYSTEM_ALLOCATOR`, as they are
        meaningless if the system allocator is used.
      
      The commit also contains some stylistic changes in jcontext.h
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      c3b6bfe8
    • A
      Merge lcache into context (#2498) · 6049c037
      Akos Kiss 提交于
      It is superfluous to maintain multiple globals when the whole
      reason of context is to keep them in a single place. It also
      simplifies initialization and external context creation a bit.
      
      Also removed unused lcache header includes.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      6049c037
  5. 30 8月, 2018 2 次提交
  6. 29 8月, 2018 4 次提交
  7. 28 8月, 2018 1 次提交
  8. 22 8月, 2018 2 次提交
  9. 21 8月, 2018 6 次提交
    • A
      Align the RIOT target with the clang build of RIOT OS (#2477) · 6e94414f
      Akos Kiss 提交于
      This means cross building with clang and using short enums. Also
      bump RIOT OS version to latest 2018.07.
      
      Note: On Travis CI, clang-3.9 is used for testing. That version is
      widely available, from Ubuntu 14.04 to 18.04.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      6e94414f
    • A
      Doctest debugger examples and fix revealed issues (#2475) · f6ccdbdd
      Akos Kiss 提交于
      This will help to keep the debugger documentation up to date.
      (Note: only compilation & linking is possible as execution would
      require a connecting debugger client, which is not supported for
      unit/doctests.)
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      f6ccdbdd
    • A
      Remove jerry-libc (#2332) · 7639e613
      Akos Kiss 提交于
      Rationale:
      - There is no port under targets/ that would use it. All of them
        turn it off when building.
      - That's no surprise, as jerry-libc supports no barebone MCUs but
        posix targets with syscalls only. Actually, that's Linux only,
        because macOS builds have turned off the use of jerry-libc a
        while ago.
      - And there is no point in maintaining a highly restricted set of
        libc functions: as soon as someone wants to use JerryScript in a
        scenario that needs more functions than jerry-main, they have to
        choose a different libc (most problably the compiler's default
        one).
      
      I think that we should not keep supporting an otherwise unused
      library for the purposes of jerry-main on arm/x86/x64-linux  only.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      7639e613
    • M
      Fix LLVM/clang conversion errors (#2473) · 851f4f0b
      Martine Lenders 提交于
      This fixes some conversion errors one gets when compiling with
      LLVM/clang. Most of them are caused when a bit-specific type (i.e.
      `uint16_t`) is implicitly cast to an `enum` of smaller value range.
      
      The fix is just an explicit casting of those types to the desired target
      type.
      
      JerryScript-DCO-1.0-Signed-off-by: Martine Lenders m.lenders@fu-berlin.de
      851f4f0b
    • R
      Add a validation before evaluating the source code (#2480) · 505dace7
      Robert Fancsik 提交于
      This patch checks whether the source code is a valid UTF-8 string before evaluating it in prompt mode.
      Also fixes #2476.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      505dace7
    • M
      Fix syntax error when closing a block after a return statement (#2479) · cffeaba2
      Marc Jessome 提交于
      This adds a right brace to the list of tokens that will end a return
      statement.
      
      JerryScript-DCO-1.0-Signed-off-by: Marc Jessome marc.jessome@fitbit.com
      cffeaba2
  10. 18 8月, 2018 1 次提交
  11. 16 8月, 2018 2 次提交
    • A
      Update debugger documentation (#2471) · 4e58ccf6
      Akos Kiss 提交于
      The documentation has not been updated when the HTML client got
      removed nor when the new transport layer replaced the previous
      debug server initialization process.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      4e58ccf6
    • A
      Distinguish between public and private headers in jerry-core (#2472) · b52fff1f
      Akos Kiss 提交于
      The patch also ensures that all components access only the public
      headers of other components (except for unit tests, which are
      allowed to use private headers, too).
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      b52fff1f
  12. 14 8月, 2018 2 次提交
  13. 13 8月, 2018 4 次提交
    • A
      Fix include directories of jerry-ext (#2464) · 990b5d24
      Akos Kiss 提交于
      The distinction between public and private include directories was
      not maintained and the install paths got confusing.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      990b5d24
    • A
      Add explicit casts to enum-to-integer conversions (#2467) · b31e4307
      Akos Kiss 提交于
      Clang 6 is more picky about implicit conversions and complains
      about loss of presicion and/or change of signedness.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      b31e4307
    • A
      Rename debugger-ws.h to debugger-sha1.h in debugger extension (#2463) · d7cb48d4
      Akos Kiss 提交于
      The renamed header doesn't contain any declarations related to
      debugger-ws.c but contains the declaration of a function from
      debugger-sha1.c.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      d7cb48d4
    • A
      Fix FILE_PATTERNS of Doxyfile and some of the issues it was hiding (#2446) · 79d1a3cc
      Akos Kiss 提交于
      `FILE_PATTERNS` is a space-separated list, in contrary to what is
      suggested by its documentation. The pattern `*.h, *.c` does not
      match header files but files with `.h,` extension only. Rewriting
      the current comma-separated pattern makes Doxygen actually process
      header files. However, it also reveals several hitherto hidden
      issues (mostly missing documentation) in the code. This patch fixes
      some of these documentation problems (and lists the files with
      outstanding issues in a 'backlog').
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      79d1a3cc
  14. 11 8月, 2018 2 次提交