59 Commits

Author SHA1 Message Date
wengchangcheng cf1abdca4e Descriptor: decrease compiler time
details use dynamic link of libark_ecma_debugger.so & libjsdebugtest.so
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FYDR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic0f7c21d0e296dbcb28753fe038f10fa4d4c8f37
2022-07-07 20:20:23 +08:00
huangfeijie a5f34993ee fix incorrect column number when exceptions happen
add SAVE_PC() to avoid incorrect offset
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E0HV

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2022-06-27 22:13:21 +08:00
openharmony_ci 29edac057a !1671 fix IntBuildTaggedWithNoGC
Merge pull request !1671 from wpy111/master

Change-Id: I6c362f16a81a1411623dbdc06768f05e4a9f3ad5
2022-06-27 13:23:57 +08:00
hjzhangcm b835cdcb25 Test set disassembly issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CTBJ
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-17 16:11:52 +08:00
wengchangcheng 2838e55071 Descriptor: fix device UT error
details: add resource file for debugger testcases
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CGVW

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iee27e961411cebed0f843f6557dde7f05f4b5248
2022-06-15 17:58:33 +08:00
Mingliang Zeng e419729e6c https://gitee.com/openharmony/ark_js_runtime/issues/I59TAQ
Circuit IR optimizer frameworks:
1. Lattice equations system solver framework
2. Subgraph rewrite framework

Signed-off-by: Mingliang Zeng <zengmingliang1@huawei.com>
Change-Id: I05e97c8b34be46d5689798ec24423228c8e14bee
2022-05-31 10:54:59 +08:00
dingwen dfe294871d Fix run TSTypeTest fail on RK3568 and snapshot bug
Description:1.Add target in ohos_test.xml 2.Fix deserialize empty string
bug
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I57UBX
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: I00b980f53fdfa9ab9cf00b566aaa65dc3744f1b7
2022-05-17 19:24:15 +08:00
wengchangcheng dcac52ac03 Descriptor:fix ut fail and modify debugger test
details:
1. fix icu path error
2. modify debugger unittest
3. modify gn target
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WGN

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c924fd90297a5172ca5aabace36b6e250dc312b
2022-05-05 20:49:16 +08:00
hjzhangcm 6bcdd2cbf9 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
Riachel 6b24845290 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-08 17:07:03 +08:00
hjzhangcm da6d3c8fe7 add test case for BuiltinsRelativeTimeFormat and modify the problem of probabilistic hanging of use cases
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-06 20:11:41 +08:00
openharmony_ci 699c0516c9 !933 add a unit-test for BuiltinsDateTimeFormat
Merge pull request !933 from hjzhangcm/master
2022-04-06 05:58:12 +00:00
hjzhangcm d3daf55d5c add test case for BuiltinsDateTimeFormat
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-06 09:04:33 +08:00
zhaozhibo 4135b4f73a add test case for JsArrayBuffer
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-02 16:58:32 +08:00
hjzhangcm 4f59c0934c add test case for numberhelper
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-01 17:49:51 +08:00
openharmony_ci 2d275310e4 !923 add a unit-test for PropertyBox and PropertiesCache
Merge pull request !923 from hjzhangcm/master
2022-03-31 08:43:29 +00:00
zhaozhibo bf103e9a2c fix unittest error
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-31 11:20:23 +08:00
hjzhangcm dc3f269547 add test case for propertybox and propertiescache
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-30 16:36:08 +08:00
openharmony_ci ab7468039d !882 add a unit-test for BuiltinsPluralRules and fix icu path
Merge pull request !882 from hjzhangcm/master
2022-03-28 14:53:13 +00:00
hjzhangcm e832cb189a add test case for BuiltinsPluralRules
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-28 14:43:57 +08:00
openharmony_ci 023440d587 !886 add test case
Merge pull request !886 from zhaozhibo/master
2022-03-28 03:59:20 +00:00
wengchangcheng 4f169b31a5 add -Werror -Wextra gn flag for 'compiler'
1. ignore llvm warning
2. fix warning of compiler module

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZHER

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I09774e431743a26ea366ed28e3276ff027ae0d31
2022-03-25 15:31:59 +08:00
zhaozhibo 2593aed608 add test case for utf_helper, accessor_data, ecmastring_table
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-03-25 15:12:44 +08:00
hjzhangcm 5d8c35e312 add Test Case for BuiltinsStringIterator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-24 14:15:54 +08:00
openharmony_ci e145bb4f92 !834 add a unit-test for BuiltinsCollator
Merge pull request !834 from hjzhangcm/master
2022-03-22 13:30:15 +00:00
hjzhangcm d32062f0b6 add test case for class BuiltinsCollator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-22 15:02:45 +08:00
xiongluo bd7b0868d8 remove redundant test in ohos xml
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-03-21 17:02:54 -10:00
openharmony_ci a597ac7f6e !816 add a unit-test for ProfileTypeInfo
Merge pull request !816 from hjzhangcm/master
2022-03-22 02:07:44 +00:00
hjzhangcm 8e374f4bec add test case for class ProfileTypeInfo
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-21 14:54:05 +08:00
xiongluo 2b4f0b3012 add tests in ohos xml
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-03-20 20:18:44 -10:00
openharmony_ci dbfb072f39 !791 add test case for BuiltinsBigInt
Merge pull request !791 from hjzhangcm/master
2022-03-21 03:01:13 +00:00
openharmony_ci 1be9a3727d !710 add jspthookstest
Merge pull request !710 from zz/master
2022-03-17 15:40:21 +00:00
hjzhangcm f26eaf78d5 add test case for clasee BuiltinsBigInt
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-17 17:36:19 +08:00
xupei 84ec2971f2 add testcase of ptreturns
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4XMGR?from=project-issue

Signed-off-by: xupei <xupei31@huawei.com>
Change-Id: Ie3da92278ec5c3d7be35d7cfb4422bd34b227cf5
2022-03-17 10:03:43 +08:00
zz d379f66314 add testcase of jspthooks
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4WZ4Q

Signed-off-by: zz <zhangcaifeng1@huawei.com>
2022-03-11 10:53:04 +08:00
hjzhangcm ad45f41e43 add test case for GCRingBuffer
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-03 11:20:01 +08:00
hjzhangcm 28957ada85 add test case for builtinslocale and fix cmetrics warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-02 17:14:37 +08:00
hjzhangcm 3504587087 add json_parser_test.cpp to test class jsonparser
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-28 14:15:58 +08:00
openharmony_ci 3dc54d64c6 !602 add testcase of class PtScript
Merge pull request !602 from xupei/master
2022-02-22 13:19:34 +00:00
lifansheng b39418de15 issue:#I4P7EY
Reason: To support AOT compilation, add ts type system to provide some
    interfaces and struct to wrap ts type and help type infer

    Description: create the global class TSLoader to expose the external
    interfaces, create the TSType and it's derived class, TSClassType,
    TSClassInstanceType, TSImportType and so on to wrap ts type in runtime.

    Add TDD unitest.

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-02-22 16:50:20 +08:00
xupei 86367bf9d8 add testcase of class PtScript
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4UI55?from=project-issue

Signed-off-by: xupei <xupei31@huawei.com>
2022-02-22 13:16:31 +08:00
hjzhangcm 90bc8f0140 add a test case named json_stringifier_test.cpp to test json_stringifier
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-18 13:52:44 +08:00
hjzhangcm 6b195de14e add BuiltinsBaseTest.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 18:32:03 +08:00
openharmony_ci f6bbbf12e8 !532 add unit-test for arrayhelper
Merge pull request !532 from hjzhangcm/master
2022-02-14 09:10:32 +00:00
hjzhangcm 3de441c36e add array_helper_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 10:11:24 +08:00
openharmony_ci ccb2e1c08d !517 Add tests case for TreeMap and TreeSet
Merge pull request !517 from xliu/container
2022-02-14 01:59:33 +00:00
openharmony_ci f9acf7cb14 !511 add a unit-test for BuiltinsIntl class
Merge pull request !511 from hjzhangcm/master
2022-02-11 01:49:30 +00:00
hjzhangcm cb19266039 add builtins_intl_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-10 16:22:25 +08:00
xliu 4107692b61 Add tests for TreeMap and TreeSet
Description
  To ensure the high performance of container classes, TreeMap and TreeSet is provided in ark.
  1. Add test cases for ContainerTreeMap.
  2. Add test cases for ContainerTreeSet.
  3. Add test cases for JSAPITreeMap.
  4. Add test cases for JSAPITreeSet.
Related issue
  #I4T5I6:add test cases for TreeMap and TreeSet

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ib01adfd9038498a88785bdd878e524e02ab38dc8
2022-02-10 15:40:14 +08:00
xliu 0bb3e25edc Description
To ensure the high performance of container classes, TreeMap and
  TreeSet is provided in ark.
  Add test cases for TaggedTree.
Related issue
  #I4PQ1G:add TreeMap and TreeSet

Change-Id: I5cda72d06a71380711374109a87e971af6a8c5b7
Signed-off-by: xliu <liuxin259@huawei.com>
2022-02-10 11:28:34 +08:00