1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 05 9月, 2019 1 次提交
  4. 19 6月, 2019 1 次提交
    • 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
  5. 12 12月, 2018 1 次提交
    • Z
      Fix named function expression creation. (#2634) · 83ee9cfc
      Zoltan Herczeg 提交于
      Create a local lexical environment with the name of the function. While
      this is not too memory efficient, some corner cases requires its existence.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      83ee9cfc
  6. 18 8月, 2018 1 次提交
  7. 13 8月, 2018 1 次提交
    • 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
  8. 05 3月, 2018 1 次提交
  9. 23 2月, 2018 1 次提交
    • Z
      Implement direct strings. (#2196) · 51e3c445
      Zoltan Herczeg 提交于
      Direct strings are a new type of direct ecma-values (no memory allocation
      is needed for encoding them) in JerryScript. Currently magic strings,
      external magic strings and uint values are encoded as direct strings.
      
      The constant pool of JerryScript byte-code is changed to hold ecma-values
      rather than cpointers to support direct strings.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      51e3c445
  10. 15 5月, 2017 1 次提交
    • Z
      Tracking variables to reduce the memory consumption of scope chain. (#1819) · f5b385ca
      Zoltan Herczeg 提交于
      Currently we keep all local variables in the scope chain as long as
      a nested function is alive. These variables consume memory although
      several of them are never used. This patch focuses on removing those
      unused ones whose can be detected at parsing time.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      f5b385ca
  11. 24 1月, 2017 1 次提交
  12. 16 12月, 2016 1 次提交
    • T
      Add parameter names to function declarations. (#1498) · 65c32f6a
      Tilmann Scheller 提交于
      It's generally considered a bad programming practice to have function declarations without parameter names.
      
      This is another legacy from the early days of the project. Fix in one go to minimize history disruption.
      
      Used a custom clang-tidy check to create the bulk of the change.
      
      JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
      65c32f6a
  13. 08 12月, 2016 1 次提交
    • T
      Streamline copyright notices across the codebase. (#1473) · 0511091e
      Tilmann Scheller 提交于
      Since the project is now hosted at the JS Foundation we can move to unified copyright notices for the project.
      
      Starting with this commit all future contributions to the project should only carry the following copyright notice (except for third-party code which requires copyright information to be preserved):
      
      "Copyright JS Foundation and other contributors, http://js.foundation" (without the quotes)
      
      This avoids cluttering the codebase with contributor-specific copyright notices which have a higher maintenance overhead and tend to get outdated quickly. Also dropping the year from the copyright notices helps to avoid yearly code changes just to update the copyright notices.
      
      Note that each contributor still retains full copyright ownership of his/her contributions and the respective authorship is tracked very accurately via Git.
      
      JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
      0511091e
  14. 12 8月, 2016 1 次提交
    • A
      Follow-up refactoring of logging-related parts · a2d5acb4
      Akos Kiss 提交于
      This patch:
      * Ensures that all calls to `jerry_port_log` in jerry-core happen
        via macros defined in jrt.h. Also, it unifies the names of those
        macros: as `JERRY_ERROR_MSG` and `JERRY_WARNING_MSG` gave a good
        pattern that was well aligned with the naming scheme of the log
        level enum, `JERRY_DLOG` and `JERRY_DDLOG` were rewritten to
        `JERRY_DEBUG_MSG` and `JERRY_TRACE_MSG`.
      * Ensures that all debug logging code parts of jerry-core (i.e.,
        memory statistics, JS byte-code dumps, and RegExp byte-code
        dumps) are guarded by macros: `JMEM_STATS`,
        `PARSER_DUMP_BYTE_CODE`, and `REGEXP_DUMP_BYTE_CODE`, which in
        turn are controled by cmake build system feature flags
        `FEATURE_MEM_STATS`, `FEATURE_PARSER_DUMP`, and
        `FEATURE_REGEXP_DUMP`.
      * Ensures that all debug logging functionalities can be controled
        during run time (provided that they were enabled during build
        time): the engine has `JERRY_INIT_MEM_STATS[_SEPARATE]`,
        `JERRY_INIT_SHOW_OPCODES`, `JERRY_INIT_SHOW_REGEXP_OPCODES` init
        flags, and the default unix/linux command line app has
        corresponding command line switches.`
      * Drops `FEATURE_LOG`, `JERRY_ENABLE_LOG`, and
        `JERRY_INIT_ENABLE_LOG`, as their name was misleadingly general,
        even though they mostly controled the regexp engine only. The
        above-mentioned `*REGEXP*` things mostly act as their
        replacements.
      * Updates build, test, and measurement tool scripts, and
        documentation.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      a2d5acb4
  15. 08 8月, 2016 1 次提交
    • A
      Integrate JS parser module better with JRT · ff217779
      Akos Kiss 提交于
      The fact that the JS parser had been developed as a separate
      component for a while is still visible from some macros that mirror
      things from JRT. This patch removes those duplicates and makes the
      JS parser rely on jrt.h. (The removed macros are: `PARSER_DEBUG`,
      `PARSER_INLINE`, `PARSER_NOINLINE`.)
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      ff217779
  16. 27 6月, 2016 1 次提交
    • Z
      Rework literal storage. · 0a32c977
      Zoltan Herczeg 提交于
      The new literal storage keeps ecma strings rather than having a
      custom string implementation which duplicates the string management
      routines. Conversions between string implementations are eliminated
      which improved the performance by 4%.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      0a32c977
  17. 20 5月, 2016 1 次提交
    • L
      Change 'mem' namspace to 'jmem' · 92bb551d
      László Langó 提交于
      The 'mem_' prefix is too general, so it might clash with
      symbols in other libraries. Renamed the directory, file,
      funtion and type names.
      
      Related issue: #1052
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      92bb551d
  18. 19 4月, 2016 1 次提交
  19. 14 4月, 2016 1 次提交
    • I
      Improvements related to lexer · ecfd478d
      Istvan Kadar 提交于
      Improvements related to lexer:
      
      * duplicated clone elimination
      * magic numbers are replaced with constants
      * functions are moved form util to lit-char-helpers
      
      JerryScript-DCO-1.0-Signed-off-by: István Kádár ikadar@inf.u-szeged.hu
      ecfd478d
  20. 16 3月, 2016 1 次提交
  21. 01 3月, 2016 1 次提交
  22. 17 2月, 2016 1 次提交
    • A
      Eliminating doxygen warnings by fixing the documentation · 0d7ea70b
      Akos Kiss 提交于
      * Fix "end of file while inside a group" doxygen warnings.
      
      * Fix "unknown command" doxygen warnings caused by incorrect
        argument references. Instead of `@foo`, `@a foo` is the proper
        format.
      
      * Fix "unknown command" doxygen warnings caused by incorrect
        parameter direction specifications. Instead of `@in`, `@out`,
        and `@in-out`, `[in]`, `[out]`, and `[in,out]` are the proper
        formats.
      
      * Wrapping special characters in quotes to avoid doxygen
        confusion. Raw pipe, semicolon, dot, backslash, etc. characters
        can drive doxygen into various misinterpretations and warnings.
        E.g.:
        ```
        End of list marker found without any preceding list items
        Found unknown command
        ```
        Putting quotes around such text snipets eliminates the errors.
      
      * Fix the documentation of `ecma_builtin_global_object_print`. Raw
        <> and \ sequences confused doxygen in various ways (it tried to
        interpret them as XML tags and doxygen commands).
      
      * Fix "ignoring title that does not match old title" doxygen
        warnings. At some places, the group titles were out of sync, at
        others, the group names were incorrect.
      
      * Fix "parameters are not documented" doxygen warnings. Fixing
        various typos in the inline parameter documentations (`/*`,
        `/**`, `/** <`, and `/**>` are all considered incorrect, the
        right format is `/**<`).
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      0d7ea70b
  23. 05 2月, 2016 1 次提交
    • Z
      Compact Byte Code parser and executor for Jerry. · 4d2dd22c
      Zoltan Herczeg 提交于
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: Tamas Gergely tgergely.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: István Kádár ikadar@inf.u-szeged.hu
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      4d2dd22c