1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 09 4月, 2019 1 次提交
    • P
      Rework usages/naming of configuration macros [part 1] (#2793) · 40f7b1c2
      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:
      
      * Renamed all CONFIG_DISABLE_<name>_BUILTIN macro to JERRY_BUILTIN_<name> format.
      * The special JERRY_BUILTINS macro specifies the basic config for all es5.1 builtins.
      * Renamed all CONFIG_DISABLE_ES2015_<name> to JERRY_ES2015_<name> format.
      * The special JERRY_ES2015 macro specifies the basic config for all es2015 builtins.
      * Renamed UNICODE_CASE_CONVERSION to JERRY_UNICODE_CASE_CONVERSION.
      * Renamed ENABLE_REGEXP_STRICT_MODE to JERRY_REGEXP_STRICT_MODE.
      * All options (in this change) can have a value of 0 or 1.
      * Renamed ENABLE_REGEXP_STRICT_MODE to JERRY_REGEXP_STRICT_MODE.
        JERRY_REGEXP_STRICT_MODE is set to 0 by default.
      * Reworked CONFIG_ECMA_NUMBER_TYPE macro to JERRY_NUMBER_TYPE_FLOAT64 name and now
        it uses the value 1 for 64 bit floating point numbers and 0 for 32 bit floating point
        number.
        By default the 64-bit floating point number mode is enabled.
      * All new JERRY_ defines can be used wit the `#if ENABLED (JERRY_...)` construct to
        test if the feature is enabled or not.
      * Added/replaced a few config.h includes to correctly propagate the macro values.
      * Added sanity checks for each macro to avoid incorrectly set values.
      * Updated profile documentation.
      * The CMake feature names are not updated at this point.
      
      JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
      40f7b1c2
  4. 21 4月, 2017 1 次提交
    • A
      Generate lit-magic-strings.inc.h (#1690) · 67c641e5
      Akos Kiss 提交于
      Currently, `lit-magic-strings.inc.h` is manually maintained. This
      has several drawbacks:
      
      - keeping the list of magic strings sorted first by length then
        alphabetically is error prone,
      - it is easy to leave unused magic strings in the list by accident
        (e.g., `LIT_MAGIC_STRING_JERRY_UL` is defined as a magic string
        but not used anywhere in the code) and,
      - it is very hard to add `CONFIG_DISABLE_*_BUILTIN` guards to the
        list, even though there are several magic strings, which are used
        in some of the configurations only (e.g, "setPrototypeOf" is used
        in ES2015 only).
      
      To ease the maintenance of magic strings, this commit moves the
      definition of magic strings to a config file
      (`lit-magic-strings.ini`), and adds `tools/gen-magic-strings.py` to
      generate the `.inc.h` file from this config file and from the use
      cases of the strings in the code.
      
      - The magic strings in the config file can appear in any order, the
        generator will ensure that they are correctly sorted.
      - The generator skips those definitions that are not used anywhere
        (and emits a warning to signal that such definitions can be
        removed).
      - The generator applies the same guards to the definitions in the
        `.inc.h` file as found in the code around the use of the strings
        to optimize for size.
      
      The commit also changes some builtin-related `.inc.h` files by
      adding guards that don't affect functionality but improve the
      results of the generator.
      
      To ensure that the invocation of the generator does not get
      forgotten, the commit also adds `tools/check-magic-strings.sh` and
      binds it into the testing infrastructure.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      67c641e5
  5. 23 3月, 2017 1 次提交
    • A
      Factor out common macro un/definitions used for built-in descriptions (#1678) · 4a5df52a
      Akos Kiss 提交于
      The default definitions and undefinitions of macros used for built-in
      descriptions (SIMPLE_VALUE, NUMBER_VALUE, STRING_VALUE, OBJECT_VALUE,
      ROUTINE, ACCESSOR_READ_WRITE, ACCESSOR_READ_ONLY) are heavily cloned
      all over the builtin-objects directory. This commit factors them out
      into two header files, which are then included in the place of the
      clones. This way, maintenance becomes a lot easier: e.g., if a new
      macro gets introduced, default definition and undefinition don't have
      to be added to all description files (of which there are 56 right now,
      and their number will most probably just grow).
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      4a5df52a
  6. 17 1月, 2017 1 次提交
  7. 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
  8. 07 12月, 2016 1 次提交
  9. 29 11月, 2016 1 次提交
  10. 16 6月, 2016 1 次提交
  11. 30 6月, 2015 1 次提交
  12. 17 6月, 2015 1 次提交
    • L
      Init commit for Date object. · d803c3bc
      László Langó 提交于
      JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      d803c3bc
  13. 18 2月, 2015 1 次提交
  14. 14 2月, 2015 1 次提交
  15. 11 2月, 2015 1 次提交
    • R
      Refinement of project structure. · 718bbe26
      Ruben Ayrapetyan 提交于
       - components renaming and moving:
         - liballocator -> mem;
         - libcoreint -> vm;
         - libecmaobjects -> ecma/base;
         - libecmaoperations -> ecma/operations;
         - libecmabuiltins -> ecma/builtins;
         - libjsparser -> parser/js;
         - libintstructs -> parser/collections;
         - liboptimizer -> parser/js;
         - libperipherals -> ../plugins/lib_device_stm;
         - libruntime -> jrt;
       - generated.h now is created as intermediate during build;
       - benchmarks -> tests/benchmarks;
       - docs -> documentation;
       - demo-applications removed (loop_demo.js -> tests/blinky.js).
      718bbe26
  16. 09 2月, 2015 1 次提交
    • R
      Reverting changes related to on-stack GC-root introduction (except of passing... · ba348831
      Ruben Ayrapetyan 提交于
      Reverting changes related to on-stack GC-root introduction (except of passing ecma_value_t by const reference).
      
      This reverts commits:
           31e1405f39d72f8b885e92256b0dc29ecab1a99,
           7cb43840b59c539d9b043990ed658ae15a9defc3,
           1ab57a4493689806035a9853b0030cc6fea65590,
           c24b511ca60587e0db12d46a7e7567c86c3649bc,
           b2caf3e8b31b4b6b16499108ee3aabdcb94f0717,
           44f9c307fb6204bfd2181b19a9d94cabddf04de9.
      ba348831
  17. 04 2月, 2015 1 次提交
  18. 29 10月, 2014 3 次提交