Commit Graph

291 Commits

Author SHA1 Message Date
openharmony_ci
7d20ac7b67
!861 Add Aot Testing Framework
Merge pull request !861 from wanyanglan/master
2022-03-28 12:55:49 +00:00
wanyanglan
a47e2e554e Add Aot Testing Framework
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I9f7bf5fa2e70854901f7931c96df3fbea7311ca7
2022-03-28 19:20:36 +08:00
openharmony_ci
0ff49eb60a
!889 Add the bug of use case test object
Merge pull request !889 from 王犇/master
2022-03-28 09:49:47 +00:00
hjzhangcm
1de87f4cf5 add test case for BuiltinsPluralRules
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-28 14:43:57 +08:00
openharmony_ci
0436a8804a
!886 add test case
Merge pull request !886 from zhaozhibo/master
2022-03-28 03:59:20 +00:00
wengchangcheng
e64122e200 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
486bcefeb8 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
wangben
2904783d27 Add the bug of use case test object
Signed-off-by: wangben <wangben15@huawei.com>
2022-03-25 14:21:36 +08:00
openharmony_ci
c51e03cd96
!869 add a unit-test for BuiltinsStringIterator
Merge pull request !869 from hjzhangcm/master
2022-03-25 01:10:23 +00:00
openharmony_ci
ace85da215
!879 add Wextra and Werror in gn args
Merge pull request !879 from changcheng/add_gn_arg
2022-03-24 15:36:55 +00:00
wengchangcheng
99934b9037 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
wanyanglan
fce3c63e82 Fix ark_dev Error: libhmicu18n.z.so Not Found
ark_dev reports error that libhmicu18n.z.so cannot be found, path
to adapt ark_dev.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Ie6c64ea65c6dc1c5791343610571889e1db00065
2022-03-24 19:28:32 +08:00
hjzhangcm
b37dab64a3 add Test Case for BuiltinsStringIterator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-24 14:15:54 +08:00
ding
c500fb2b18 Fix IC LoadMiss
Fix IC LoadMiss, when the op is not found, should not generate cache.

The bug occurs application can not get correct property from globalThis, add targetd test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I8935fc903a26e65138608301033bfdc0c4f80e46
2022-03-24 11:09:34 +08:00
openharmony_ci
ba5e6c24c9
!834 add a unit-test for BuiltinsCollator
Merge pull request !834 from hjzhangcm/master
2022-03-22 13:30:15 +00:00
openharmony_ci
f7c67825ae
!837 remove redundant test in ohos xml
Merge pull request !837 from xiongluo/remove_redundant_test
2022-03-22 13:25:29 +00:00
hjzhangcm
f46361befb add test case for class BuiltinsCollator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-22 15:02:45 +08:00
openharmony_ci
60f850978d
!835 Clean Code For CodeHub Issues
Merge pull request !835 from wanyanglan/master
2022-03-22 04:42:20 +00:00
wanyanglan
bb6022bffc Clean Code For CodeHub Issues
Modified file permissions, word spelling errors, and
programming specifications suggesting EXPECT_EQ instead
of EXPECT_TRUE

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I00eb9be48d481ce2bdaa4a621246ff6c405abecf
2022-03-22 11:34:13 +08:00
xiongluo
b7249dd854 remove redundant test in ohos xml
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-03-21 17:02:54 -10:00
openharmony_ci
b2b58552c0
!816 add a unit-test for ProfileTypeInfo
Merge pull request !816 from hjzhangcm/master
2022-03-22 02:07:44 +00:00
openharmony_ci
5b6d180992
!817 Add tests in ohos xml
Merge pull request !817 from xiongluo/add_tests_in_ohos
2022-03-21 11:43:59 +00:00
hjzhangcm
578f6ebdd3 add test case for class ProfileTypeInfo
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-21 14:54:05 +08:00
xiongluo
5964b76b6e add tests in ohos xml
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-03-20 20:18:44 -10:00
openharmony_ci
3817067072
!812 Fix xor/and/or bytecode handlers bug
Merge pull request !812 from 孙哲/master
2022-03-21 04:30:14 +00:00
sunzhe23
e05044b20e Fix some binary option handlers bug for c-interpreter and asm-interpreter
Description:
1 Fix and/or/xor CastToUint32 bug
2 Fix asm interpreter shr overflow bug

Issues: I4YPC6

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-03-20 20:03:59 -07:00
openharmony_ci
1f57753ad9
!791 add test case for BuiltinsBigInt
Merge pull request !791 from hjzhangcm/master
2022-03-21 03:01:13 +00:00
openharmony_ci
0fd3c198ef
!710 add jspthookstest
Merge pull request !710 from zz/master
2022-03-17 15:40:21 +00:00
hjzhangcm
2c7c7bc66c add test case for clasee BuiltinsBigInt
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-17 17:36:19 +08:00
xupei
1c43fdf663 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
openharmony_ci
3f69fee177
!770 fuzz testcases submit
Merge pull request !770 from wangjie/master
2022-03-16 15:20:26 +00:00
openharmony_ci
765fa08c10
!773 add test for ecmastring
Merge pull request !773 from xliu/fix_ecmastring_table
2022-03-15 09:54:48 +00:00
xliu
9c69c2dba6 add test for ecmastring table
Description
  Extract test cases according to the usage scenarios of Cocos.
Issue:
  #I4XY2M:add test for ecmastring table

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I5da23c55d50d9a80da84ca406fd8f0118e245e3e
2022-03-15 17:02:12 +08:00
openharmony_ci
7a8636a173
!763 Fix AllocateArrayBuffer by BoundFunction NewTarget
Merge pull request !763 from dingding/fix_allocate_arraybuffer
2022-03-15 07:45:30 +00:00
openharmony_ci
807d21c0ac !766 move run_test262.sh to test directory
Merge pull request !766 from wanyanglan/master
2022-03-15 14:36:13 +08:00
ding
7273566fd1 Fix AllocateArrayBuffer By BoundFunction NewTarget
This is a historical problem:At first, we didn't support the full feature of newTarget in ECMA spec,in order to pass some cases of test262, hack the deleted code in AllocateArrayBuffer. In fact, the object so allocated is not an arrayBuffer.

Now, we support the full feature of newTarget, just delete it and do as ECMA spec.

add allocatearraybuffer unit test case.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I2da7d8ce3dd58a63454ac9ecea4320458323fab9
2022-03-15 11:14:26 +08:00
wanyanglan
f7d450d354 move run_test262.sh to test directory
test262 is a test case for the project, the script to execute
test262 should be placed in the test directory for execution.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I6ed5526816b3a222d17543b617430914ed374339
2022-03-15 09:50:29 +08:00
ding
197e0a317c modify transitions to weak reference
1.modify transitions to weak reference and delete parent field in JSHClass.
2.add targeted test case to intercept the issue.
3.fix weak ref in parallel gc
4.fix TaggedCastToWeakReferentUnChecked() in stub

Change-Id: I118d293a04390fba6c21179a0a8ac7993dae5e96
Signed-off-by: ding <dingding5@huawei.com>
2022-03-14 11:02:43 +08:00
zz
4b3b9c0942 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
e3b3e462a8 add test case for GCRingBuffer
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-03 11:20:01 +08:00
openharmony_ci
6adfba6d50
!644 actor code
Merge pull request !644 from changcheng/actor_bugfix
2022-03-02 12:20:54 +00:00
hjzhangcm
b4b115b0ee add test case for builtinslocale and fix cmetrics warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-03-02 17:14:37 +08:00
wengchangcheng
a43aa61d97 fix actor bug
modify actor for app start

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iad48f3173a963c4290701a708f41832359c88b02
2022-03-02 15:33:19 +08:00
hjzhangcm
38074ca579 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
8f9ae0ec77
!602 add testcase of class PtScript
Merge pull request !602 from xupei/master
2022-02-22 13:19:34 +00:00
lifansheng
9efea35541 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
16427921bb 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
80841710eb 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
xliu
1bce193604 fix TryLdGlobalByName and LookupPropertyInlinedProps
Description
  fix bugs of TryLdGlobalByName and LookupPropertyInlinedProps
  Add test cases for global aeecssor.
Related issue
  #I4TZT1: fix TryLdGlobalByName and LookupPropertyInlinedProps

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If4b78a136ed2299a1ae1848d8c248f5265996905
2022-02-17 13:00:20 +08:00
hjzhangcm
74852df2f1 add BuiltinsBaseTest.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 18:32:03 +08:00
openharmony_ci
10aecce262
!532 add unit-test for arrayhelper
Merge pull request !532 from hjzhangcm/master
2022-02-14 09:10:32 +00:00
hjzhangcm
bac299444f add array_helper_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-14 10:11:24 +08:00
openharmony_ci
82f36f4a7a
!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
dc0d9156ea
!511 add a unit-test for BuiltinsIntl class
Merge pull request !511 from hjzhangcm/master
2022-02-11 01:49:30 +00:00
hjzhangcm
53bedb2c79 add builtins_intl_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-10 16:22:25 +08:00
xliu
1ec31e6f05 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
384e954045 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
wengchangcheng
2683d90ab5 fix testcase resource
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 14:50:25 +08:00
wengchangcheng
9f4ed44f9b add exception testcase
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 10:40:56 +08:00
hjzhangcm
4d8b6c0e9e add ic_handler_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-01-25 15:03:46 +08:00
hjzhangcm
fa8009cb20 add symbol_table_test.cpp
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-01-20 18:24:07 +08:00
openharmony_ci
837e6d0f96
!284 Optimize GC trigger
Merge pull request !284 from xiongluo/gctrigger
2022-01-15 02:07:10 +00:00
xiongluo
2483cd5a8a Optimize GC trigger
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-01-13 22:30:21 -10:00
wengchangcheng
46307fb5d8 modify debugger events and api test
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2b63f2d9af7eba0b5319e7ed459bb48e665f13d8
2022-01-14 15:24:38 +08:00
xliu
b79af9fa43 Add ark container macro switch and add arraylist in runtime_call_id
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Iabb6c2dd5a2c8529750a83c01e7d6382b38eccc8
2022-01-11 20:02:57 +08:00
xliu
9849598f97 1.add arraylist and ArkPrivate. 2.add special container in stub. 3.fix Switch
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4082326fa075bce0c5c7bf8e6873282086fe5d6e
2022-01-04 19:30:40 +08:00
ding
c4ffd76fd3 template class
Signed-off-by: ding <dingding5@huawei.com>
2021-12-25 09:51:43 +08:00
wengchangcheng
45cfc4c464 modify for get async function name
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-12-24 12:02:05 +08:00
zhangyukun
a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
wengchangcheng
2c7c067c1b ark_js_vm support multi pandafile
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c4fbb6895f63ce0414352e71c8756cb0c5064f6
2021-10-27 15:29:53 +08:00
wengchangcheng
dafdd642a6 copy all testcase resources and fix codestyle
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-21 20:55:46 +08:00
openharmony_ci
1269a9fe5d !176 Add support for -m and relative path.
Merge pull request !176 from 李晨帅/master
2021-10-18 04:15:19 +00:00
lichenshuai
4d8c0e87bf Modified for codeCheck.
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
2021-10-18 10:19:51 +08:00
lichenshuai
7d667e38f0 Add support for relative path and enable moduleAction.
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
2021-10-15 17:20:37 +08:00
surpassgoodchao
752319768b l2 don't find libllvm_stackmap_parser
Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-14 14:57:09 +08:00
lichenshuai
68271c1b3f Add support for -m (module) parameter.
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
2021-10-14 14:46:53 +08:00
Han00000000
064135d18a fix stub_aot_opt running errors and add arm/arm64 target for js
optimizer

Signed-off-by: Han00000000 <jianghan2@huawei.com>
Change-Id: Idb10d3dffbf79a7f615ccb3f8a468cd35caf73a0
2021-10-12 14:43:18 +08:00
wengchangcheng
e0b5422f50 enable run ark unittest and use dynamic link
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6e8e5165b5a4087c6fba45ed4eb11d5c1a5e4000
2021-09-28 10:30:21 +08:00
wengchangcheng
7251d98f50 support build single testcase
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-09-22 16:52:51 +08:00
lifansheng
708b3e6a13 modify globalrecord test
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-13 19:32:18 +08:00
lifansheng
d7ea2f3313 modify IC and host_test
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-13 13:02:38 +08:00
lifansheng
45639c4bba rename expect_output.txt
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 18:19:47 +08:00
lifansheng
fe913b8f2b modify gn
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-11 10:14:20 +08:00
lifansheng
d8e4e7774f modify gn
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-10 17:29:24 +08:00
lifansheng
3ddc13c94b modify globalrecordjs
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-10 16:47:04 +08:00
lifansheng
04e7b5b65c Add GlobalRcord
Signed-off-by: lifansheng <lifansheng1@huawei.com>
2021-09-10 16:34:37 +08:00
Han00000000
68a72d24e0 fix gn
Signed-off-by: Han00000000 <jianghan2@huawei.com>
Change-Id: If57616c5c6b27c12dc71b63dd5e5b677408d9f7c
2021-09-09 11:46:12 +08:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
f58a8b094f fix testcase in debug mode
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Id6e5b34ade0960184b3b32ceabd4fdc383d61ee1
2021-09-06 15:33:17 +08:00
wanyanglan
6960106b6b fix gn format
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iab79e850be3b63cd1898cc83cdd03b9448e6b3cf
2021-09-06 12:23:19 +08:00
wanyanglan
86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00