1. 09 1月, 2019 2 次提交
    • D
      Fix JerryScript build with clang-6.0 (#2610) · 3ee77165
      Daniel Balla 提交于
      This patch fixes the following error with Clang-6.0
      
      ```
      jerryscript/jerry-core/api/jerry.c:1527:71: error: implicit conversion loses integer precision:
            'jerry_regexp_flags_t' to 'uint16_t' (aka 'unsigned short') [-Werror,-Wconversion]
        jerry_value_t ret_val = ecma_op_create_regexp_object (ecma_pattern, flags);
      ```
      
      Also change the `jerry_create_regexp` and `jerry_create_regexp_sz` functions' `flags` parameter to `uint16_t` since the values created with `bitwise inclusive OR` are not part of the enum.
      
      JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
      3ee77165
    • R
      Reduce the memory footprint of 'ecma_instantiate_builtin' (#2646) · 99b968de
      Robert Fancsik 提交于
      This patch introduces a new builtin descriptor table to substitute the generated switch-case structure in 'ecma_instantiate_builtin',
      also removes the corresponding helpers functions to simplify the instantiation process.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      99b968de
  2. 08 1月, 2019 4 次提交
  3. 04 1月, 2019 2 次提交
  4. 03 1月, 2019 4 次提交
  5. 02 1月, 2019 2 次提交
  6. 19 12月, 2018 1 次提交
  7. 17 12月, 2018 2 次提交
    • A
      Ensure fresh Python 2.7 on Trusty and compatible Intervaltree (#2645) · ae91800e
      Akos Kiss 提交于
      Recent failures of the Mbed OS target came from two independent
      issues:
      - some python packages started requiring Python>=2.7.10, and
      - the latest Intervaltree 3.0.0 release was released broken.
      
      This patch ensures a fresh python by 'lying' to the CI that this
      is a Python project (Python images on the CI come with a recent
      interpreter, not with the one shipped as default with the OS), and
      locks Intervaltree to a stable version.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      ae91800e
    • D
      Fix possible failure in backtrace info (#2643) · a1595fa2
      Daniel Balla 提交于
      Make sure to ignore static snapshots when sending backtrace information to the debugger.
      The `JMEM_SET_NON_NULL_POINTER` macro requires the frame context's `bytecode_header_p` pointer to be a heap pointer, but due to the static snapshot it might not be, causing an assertion failure.
      
      JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
      a1595fa2
  8. 15 12月, 2018 1 次提交
    • A
      Fix MbedOS build (#2644) · 5779a5b8
      Akos Kiss 提交于
      Since recently, the newly released mbed-host-tests 1.4.4 gets
      installed during the python requirement installation step. That
      package requires pyocd>=0.14.0, which cannot be satisfied for
      whatever reason. This quick fix pins mbed-host-tests to version
      1.4.2, which does not have unsatisfiable requirements.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      5779a5b8
  9. 14 12月, 2018 1 次提交
    • A
      Rewrite debugger test runner to use portable redirect-and-append notation (#2641) · 8ed5078e
      Akos Kiss 提交于
      The test runner used `&>>` to channel stderr to stdout and append
      all that to a file. However, that's Bash 4 syntax, which is not
      available everywhere, e.g., on MacOS. Bash pre-4 syntax requires
      the classic `>>file 2>&1` notation.
      
      This commit rewrites the test runner to use the portable syntax.
      Moreover, it also rewrites `&>` to `>file 2>&1` for the sake of
      consistency.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      8ed5078e
  10. 12 12月, 2018 5 次提交
    • L
      Fixed connection lost of debugging sessions. (#2636) · 9b24bde4
      László Langó 提交于
      The peek of the socket does not work on other platforms,
      beacause the errno is not set correctly. The code path
      added by #2427 Linux specific, so it has been guarded
      to solve connection lost issues during debugging sessions
      when the client does not send data but still connected.
      
      JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
      9b24bde4
    • R
      Update the storage locations of the status badges (#2639) · 93e71150
      Robert Sipka 提交于
      The name of the database has been changed to jsremote-testrunner from remote-testrunner
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
      93e71150
    • 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
    • R
      Implement ES2015 {Array, %TypedArray%}.prototype.find routine (#2631) · 4f0b075f
      Robert Fancsik 提交于
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      4f0b075f
    • D
      Fix an issue while debugging with static snapshots (#2606) · c6a2fd5d
      Daniel Balla 提交于
      The issue was found when debugging IoT.js with static snapshots turned on, if an error was thrown an assertion failure was caused. The reason is the frame context's bytecode_header_p pointer was not a heap pointer. The jerry_debugger_breakpoint_hit function tries to set a compressed pointer which points to bytecode_header_p with the JMEM_CP_SET_NON_NULL_POINTER macro, which has an assertion that requires the above mentioned bytecode_header_p to be a heap pointer, which is obviously not.
      
      
      Co-authored-by: Robert Fancsik frobert@inf.u-szeged.hu
      JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
      c6a2fd5d
  11. 06 12月, 2018 2 次提交
    • R
      Improve the vm_loop suspending for exec operations (#2589) · 101f62ce
      Robert Fancsik 提交于
      Exec operations{call, construct, super_call} related bytecode sequences no longer executed twice.
      The execution continues with the next opcode or a specific bytecode sequence if an error occurs during the operation.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      101f62ce
    • R
      Separate VM_OC_PROP_GET to a single operation in vm_loop (#2607) · 79b2df12
      Robert Fancsik 提交于
      VM_OC_PROP_GET is the general vm instruction for getting an object's property.
      This opcode can be mutated into several other opcodes depending on the context (pre- post increment, ident reference).
      Since these mutated opcodes perform additional checks and VM_OC_PROP_GET is a highly frequent instruction and it is worth to introduce a special case for it.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      79b2df12
  12. 02 12月, 2018 2 次提交
    • R
      Use Thumb instructions on TizenRT. (#2629) · 3f9dd0f1
      Roland Takacs 提交于
      In order to decrease the binary size of JerryScript, enabled the Thumb
      instruction set that is supported on ARM Cortex-R series processors.
      
      JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.uszeged@partner.samsung.com
      3f9dd0f1
    • Z
      Fix floating number parsing. (#2628) · bc1b13dc
      Zoltan Herczeg 提交于
      This patches fixes floating point number parsing when the number starts with dot.
      
      Fixes #2614.
      
      JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
      bc1b13dc
  13. 30 11月, 2018 2 次提交
  14. 29 11月, 2018 2 次提交
    • R
      Optimize property call opcodes (#2609) · 24817b27
      Robert Fancsik 提交于
      In with contexts the object base value must be resolved before executing a call operation.
      Since this happens rarely the base resolving code paths has been seperated to an other VM opcode
      so these extra checks do not burden the general property call steps.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      24817b27
    • R
      Reduce ecma_{ref, deref}_object calls while using ecma_builtin_get (#2616) · e11c499b
      Robert Fancsik 提交于
      The following stucture was highly frequented in the code base:
      
       - Get a builtin object // This operation increases the reference count of the object
       - Use it for create a new object
       - Deref the builtin object
      
      After a builtin has been instantiated there is always at least one reference to "keep it alive",
      so increase/decrease the reference count for getting the value only is unnecessary.
      
      JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
      e11c499b
  15. 28 11月, 2018 3 次提交
    • T
      Seperate tests from test-api.c - Property (#2596) · 8410570d
      Tóth Béla 提交于
      Seperate the property based test from the `test-api.c` file.
      
      JerryScript-DCO-1.0-Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
      8410570d
    • R
      Use logical operators for bool converions. (#2620) · 5151f916
      Roland Takacs 提交于
      The explicit boolean type conversion (introduced by #2575) desn't work
      with TizenRT if custom boolean representation is used. Of course,
      TizenRT gives an opportunity to use the C99 standard boolean (that works
      well if that is set).
      
      I've replaced all the explicit boolean type conversions with double
      negations that helps to work JerryScript well with custom boolean types.
      
      JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.uszeged@partner.samsung.com
      5151f916
    • A
      Make CONFIG_ECMA_LCACHE_DISABLE and CONFIG_ECMA_PROPERTY_HASHMAP_DISABLE build-tested (#2615) · 17178ec1
      Akos Kiss 提交于
      Because these feature guards don't have their counterpart options in cmake, they
      seem to be less tested. This commit makes them build-tested at least.
      
      JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
      17178ec1
  16. 22 11月, 2018 5 次提交