Commit Graph

12 Commits

Author SHA1 Message Date
ding
d37f6d4596 AOT and ASM-Interpreter share builtins stub with call and new
1.Support new Builtins Constructor in Builtins Stub framework.
2.Support invoking Builtins Stub both ASM interpreter and AOT.
3.Add BooleanCosntructor implementation in Builtins Stub.
4.Add new log component: builtins
5.Add corresponding test case which can trace builtins execution path.
6.Add iterate stack map handler when entering by assembler.

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I631G9

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ie3a485a0383464ecc0b42be0a21baf50bb35bc21
2022-11-28 19:15:55 +08:00
wengchangcheng
8af2cd1e8b Descriptor: Fix multi constantpool bug and add testcase
Details:
1. Dont modify constpool in Method
2. Modify wrong cast of int16 to int32
3. Re-generate Constantpool when create Method
4. Add testcases of multi-constantpool

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5W5IP

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>

Change-Id: Ia76d5235eadba3cc117c3f0567044fd988dbfd1f
2022-10-19 15:00:56 +08:00
wengchangcheng
aaf47ba3d0 Descriptor: Add quickfix testcases
Details:
1. Add quickfix testcases
2. delete isPatch flag
3. use the same recore name of base and patch

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5UPMC

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1e03addb8f37240557df899fbee8bc99beb97e92
2022-10-11 10:49:17 +08:00
huoqingyi
8239a5e80f Modify typeinfer tests
Description:
Currently the typeinfer test compares the gatetypes of gates with the expected types
by printing the bytecode name log and gatetype log. In order to pass the tests,
it relies on front end keeping the functions and bytecodes' order unchanged.
This is inappropriate and does not adapt to the increasing optimization of the front end.
Therefore, We need to take a more appropriate solution.
We plan to compare gatetypes of gates in Circuit IR and expected types at compile time.

Issue:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5HSKP

Change-Id: Id62a39ec0fc2327ede4e3ee1e770bc65bfc891d4
Signed-off-by: huoqingyi <huoqingyi@huawei.com>
2022-07-20 20:34:58 +08:00
wanghuan
f685e41be2 fix generate stub.m failed
desc: fix generate stub.m failed

solu:
1. add log if generate timeout
2. extend timeout-limit

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FUG4
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I33a125ba1c8fbf0e76ffe74cb8392ef50c0019de
2022-07-06 18:58:13 +08:00
wanghuan
21cda6f908 stub.m binary file compiled into shared library
desc: stub.m binary file compiled into shared library

solu:
1. ark_stub_compiler executable not depend libark_jsruntime.so and libark_jsoptimizer.so, but depend libark_jsruntime_set and libark_jsoptimizer_set
2. python shell read stub.m binary data, and save to extern array of stub_m.cpp;
3. file_loader.cpp read stub data from array of stub_m.cpp.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E4LW
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I9c95c882b59438370523179dd5949aeca51faa10
2022-06-28 17:25:33 +08:00
huoqingyi
6a99d6002d Add Type Infer Test Case
Description:
1.Add type infer test cases for bitwise_op, callfunctions, ldobjbyvalue and logic_op

Issue:
https://gitee.com/openharmony/ark_js_runtime/issues/I5B78L

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I486f6f91a32e1c7caa2446b12b8e6b33db8d47fe
2022-06-13 09:38:51 +08:00
taohong
01d201d7e8 add type infer test case
add test case for AOT type infer

Signed-off-by: taohong <hongtao11@huawei.com>
Change-Id: Iff28cc77d3f309699000f76d1ed30191176a4d85
2022-06-07 12:15:43 +08:00
ding
f72fd3ae62 Refactor TS Types
1.Re-write union type mechanism, store gt in components.
2.Refactor module tabale, now builtins type table and global infer table set in fixed index of 0 and 1.
3.Integrate some interfaces and logic.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ie709705798b21206f1f272fc5cacafb3781ed940
2022-05-31 20:08:49 +08:00
gongjunsong
89956f2471 fix run ark executable generate stub.m timeout
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I58CHK?from=project-issue

Signed-off-by: gongjunsong <gongjunsong@huawei.com>
Change-Id: Ic695c60869bc3fbae607857dc5fcdcf2088ed9c0
2022-05-23 09:17:24 +08:00
wengchangcheng
e0eebea8da Descriptor: print more testcase info
details: print return code of execute result
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I570TA

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ia8562c5132e99b799e8a358303838d58a90d73f3
2022-05-12 09:33:34 +08:00
ding
e507c08de0 Prebuild com_sub.m and bc_stub.m
Generate com_stub.m and bc_stub.m in build phase.

Add FATAL log if load stub file failed.

Move run_ark_executable.py to js_runtime/script/ directory

Add --time-out option in run_ark_executable.py.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I6136c5f0dc132a086119f9f2cc6eaf934ba0087b
2022-05-10 09:56:40 +08:00