Commit Graph

16 Commits

Author SHA1 Message Date
fangting
3f9522cee7 Fix timeout limit
timeout_limit add

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAATHK?from=project-issue
Signed-off-by: fangting <fangting12@huawei.com>
2024-07-08 19:38:17 +08:00
Mikhail Kaskov
db1eb53581 Added DateNow builtin
+ Added tests

Change-Id: I2b6b94b523c5f7e0e8d8487f75d4e0cc97893ed1
Signed-off-by: Mikhail Kaskov <kaskov.mikhail@huawei.com>
2024-04-20 12:30:39 +08:00
wengchangcheng
120236490e Modify Error Handle Progress of ark_js_vm
1. Return -1 when has uncaught error
2. handle exception in jsnapi interface
3. test faile when throw uncaught exception

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I4813165c6aa84129940e77b95e08bd9330e07029
2024-02-18 15:12:25 +08:00
liuzhijie
c48127bca8 Global IndexMap
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HA58?from=project-issue
Signed-off-by: liuzhijie <jay.lau2020.work@outlook.com>

Change-Id: Ie3c1682f86b43e6ae8e759ad89ed57343f89db8c
2023-11-24 14:12:39 +08:00
xiongluo
d04a78f195 support multi context
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: If708bb8d514503105e965226532dad41c12d73d7
2023-07-03 21:30:19 +08:00
gongyuhang
e5f2910f19 Ark_standalone_build support running test of target-ohos_arm/ohos_arm64 host-linux_x64
Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I7BK54
Test: command for ark_standalone_build
Signed-off-by: gongyuhang <gongyuhang7@huawei.com>
Change-Id: I1861a6d64c0ac80622d379b3706d40960fb3eb8f
2023-06-13 20:36:00 +08:00
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
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
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