1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 30 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. 09 3月, 2019 1 次提交
  6. 17 9月, 2018 1 次提交
  7. 10 9月, 2018 1 次提交
  8. 04 9月, 2018 1 次提交
  9. 31 8月, 2018 1 次提交
    • 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
  10. 25 5月, 2018 1 次提交
    • A
      Cleanup code around JERRY_UNREACHABLEs (#2342) · 47794512
      Akos Kiss 提交于
      `JERRY_UNREACHABLE`s often signal code structure that could be
      improved: they can usually either be rewritten to `JERRY_ASSERT`s
      or eliminated by restructuring loops, `if`s or `#if`s. Roughly,
      the only valid occurences are in default cases of `switch`es. And
      even they can often be merged into non-default cases.
      
      Moreover, it is dangerous to write meaningful code after
      `JERRY_UNREACHABLE` because it pretends as if there was a way to
      recover from an impossible situation.
      
      This patch rewrites/eliminates `JERRY_UNREACHABLE`s where possible
      and removes misleading code from after them.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      47794512
  11. 14 5月, 2018 1 次提交
    • A
      Add jerryscript-compiler.h public header to cover compiler incompatibilities (#2313) · 65ae949d
      Akos Kiss 提交于
      In general, public headers should not have compiler-specific
      constructs but both the core and the port headers have attributes,
      which are non-standard. It's better to factor out such constructs
      to a common place (a new header) and hide them behind macros, which
      can then be defined on a per-compiler basis.
      
      This patch moves the existing definitions of function attributes and
      likely/unlikely builtins to the new header. At the same time, it
      unifies the names of these attribute defines and where they are
      used. Moreover, it touches on jerry-main and removes the uses of
      `__attribute__((unused))` entirely and replaces them with the
      elsewhere used `(void) ...` pattern.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      65ae949d
  12. 27 3月, 2018 1 次提交
  13. 05 3月, 2018 1 次提交
  14. 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
  15. 20 5月, 2017 1 次提交
    • Z
      Support external context, heap and lcache (#1778) · 5e28bfc2
      Zidong Jiang 提交于
      JerryScript should support external context, heap and lcache,
      so that it can have multiple instances and runtime configurable heap
      size.
      
      Related issue: 1746
      
      JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
      5e28bfc2
  16. 13 2月, 2017 1 次提交
  17. 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
  18. 25 11月, 2016 1 次提交
    • Z
      Reduce memory consumption of property names. · 6d67b8df
      Zoltan Herczeg 提交于
      Property names were always required a string reference which consumed
      a large amount of memory for arrays. This patch reduces this consumption
      by directly storing the value part of certain strings.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      6d67b8df
  19. 19 9月, 2016 1 次提交
    • Z
      Major property rework: introducing virtual properties. · dcaec22c
      Zoltan Herczeg 提交于
      Properties are changed to a type and value pair instead of a pointer to an internal
      representation. Functions such as ecma_op_object_get_[own_]property do not
      return with property pointers anymore.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      dcaec22c
  20. 09 9月, 2016 1 次提交
    • Z
      Remove several ecma_op_object_get_[own_]property calls. · da02a37a
      Zoltan Herczeg 提交于
      The ecma_op_object_get_[own_]property calls should be phased out from
      the project eventually and virtual properties should be introduced instead.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      da02a37a
  21. 23 8月, 2016 1 次提交
  22. 21 7月, 2016 1 次提交
  23. 06 7月, 2016 1 次提交
    • Z
      Simplify string management. · 97be8bfb
      Zoltan Herczeg 提交于
      Allocate a single memory block for strings, rather than a separate string header
      and string characters block. In the past strings were split into 8 byte chunks,
      and large amount of legacy code is designed for that representation. However the
      current allocator allows block allocation so we don't need those complicated
      algorithms anymore. This patch is a cleanup rather than an optimization.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      97be8bfb
  24. 03 6月, 2016 1 次提交
  25. 02 6月, 2016 1 次提交
    • Z
      Optimize LCache operation. · 5c852ab6
      Zoltan Herczeg 提交于
      The cache stores only real properties now, because storing NULLs has
      little benefit according to tests. Since only real properties are
      stored now, there is no need to create real references to objects
      and property names, which reduces the keeping of dead objects after
      garbage collection.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      5c852ab6
  26. 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
  27. 19 4月, 2016 1 次提交
  28. 14 4月, 2016 1 次提交
    • Z
      Refactor object property chain to use property pairs. The patch · c7dcce4f
      Zoltan Herczeg 提交于
      itself seems a step back, but the primary aim is opening future
      optimization opportunities. The list of changes follows:
      
       - Property is changed to be an abstract type, which has type, flags,
         and a value. It does not have a name anymore and property pointers
         cannot be compressed.
       - Full (32 bit) ecma values can be property values. This allows
         using non-compressed pointers for ecma values in the future.
       - The property chain is not restricted to the same item anymore,
         it can contain hash maps, arrays in the future.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      c7dcce4f
  29. 24 3月, 2016 1 次提交
  30. 22 3月, 2016 1 次提交
    • L
      Performance optimizations · 2027caed
      László Langó 提交于
       * inline some hot function
       * add 'ecma_copy_value_if_not_object' similer to 'ecma_value_free_if_not_object'
       * remove unnecessary helpers
       * improve 'do_number_bitwise_logic'
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      2027caed
  31. 03 3月, 2016 1 次提交
  32. 01 3月, 2016 1 次提交
  33. 25 2月, 2016 1 次提交
    • R
      Build fix for ALL_IN_ONE. · af715d4a
      Robert Sipka 提交于
      Add another argument for the JERRY_STATIC_ASSERT with the description of the assert statement.
      The release.linux build fails with enabled ALL_IN_ONE option.
      There is no redefinition of typedef in C99.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
      af715d4a
  34. 15 2月, 2016 1 次提交
    • R
      Remove g++ support from the [C]Make files. · 977bfa5d
      Robert Sipka 提交于
      Move all '.cpp' files to '.c'.
      Rename comments from 'cpp' to 'c'.
      
      JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
      977bfa5d
  35. 05 2月, 2016 1 次提交
  36. 30 6月, 2015 2 次提交
  37. 27 6月, 2015 1 次提交
  38. 30 4月, 2015 1 次提交
  39. 02 4月, 2015 1 次提交