Commit Graph

1547 Commits

Author SHA1 Message Date
openharmony_ci
96c5cbeb01
!1195 Stackless SuperCall
Merge pull request !1195 from dingding/stackless_supercall
2022-05-05 06:56:39 +00:00
openharmony_ci
fc682a86ae
!1180 Add object object fromEntries interface
Merge pull request !1180 from 王犇/master
2022-05-05 06:47:59 +00:00
openharmony_ci
168ab8085a
!1184 Fix String Buffer Overflow
Merge pull request !1184 from 袁尧/master
2022-05-05 06:28:02 +00:00
wangben
a5340f0e76 Add object object fromEntries interface
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-05 14:14:56 +08:00
yaoyuan
4a3c073479 Consider different cases for maxLength greater than, equal to and smaller than length.
For napi only

关联的Issue: #I54T7E

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I94c5e335a43aac937616e5aa3a217cc0b034ade7
Signed-off-by: yaoyuan <yuanyao14@huawei.com>
2022-05-05 11:16:56 +08:00
openharmony_ci
16d377c96a
!1188 refactor class FrameHandler
Merge pull request !1188 from guobingbing/optimize
2022-05-04 07:24:17 +00:00
guobingbing
9bef6eef18 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +08:00
ding
600264d99f Stackless SuperCall
Stackless refactor `supercall`, speed up it in some fast situation by
reducing re-enter interpreter.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I86154b5feeeac41c01699fa0797689e5c7d00e35
2022-05-02 17:03:27 +08:00
openharmony_ci
608cb8ac4c
!1192 AOT Lowering Test
Merge pull request !1192 from Hailiang/aot_lowering
2022-05-01 13:37:36 +00:00
openharmony_ci
969bc4b456
!1193 fix snapshot serialize file not verified
Merge pull request !1193 from zhaozhibo/master
2022-04-30 13:32:53 +00:00
Hailiang Hu
4aaa519826 AOT Lowering Test
1. Test BC of createiterresultobj, getiterator, instanceof,
isin, newlexenv, poplexenv, suspendgenerator, typeof,
throwifsupernotcorrectcall, throwundefindeifhole.
2. Update test framework to support com stub, debug mode and log mode.

Issue: #I55HDG

Change-Id: I68670978916da5a12e2d7b8abb59f636ac7c8250
Signed-off-by: Hailiang Hu <allenpas@huawei.com>
2022-04-30 21:13:14 +08:00
zhaozhibo
f3facc45cd fix snapshot serialize file not verified
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 19:46:17 +08:00
openharmony_ci
fc582ec959
!1155 Refactor the GC related components - Part 4
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
openharmony_ci
ef4ecce103
!1191 Fix ark_dev branch compiler error
Merge pull request !1191 from songzhengchao/bugfix0430
2022-04-30 07:47:36 +00:00
songzhengchao
a519616346 Fix ark_dev branch compiler error
Target ark_aot_test should run on x86-64 machine
beasecase llvm library is x86-64 related.

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55GYE?from=project-issue

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Iea4d9ca7446b734848e581216dd36ed3319de07f
2022-04-30 14:33:24 +08:00
openharmony_ci
8be56f5025
!1186 Extend Fast-new with CallType has NewTarget
Merge pull request !1186 from dingding/extend_fast_new
2022-04-30 05:08:18 +00:00
openharmony_ci
b2e39af2a4
!1183 fix codex warning 【part 4】
Merge pull request !1183 from zhaozhibo/master
2022-04-30 03:38:27 +00:00
zhaozhibo
1479ec3603 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
openharmony_ci
2e0e7c2853
!1171 Modify option source of stub compiler
Merge pull request !1171 from luochuhao/modifyoption
2022-04-30 00:57:37 +00:00
openharmony_ci
6bebe3eb67
!1124 Add TS Aot Test Cases And Bugfix
Merge pull request !1124 from 许杰/aot_testcase
2022-04-30 00:54:11 +00:00
openharmony_ci
33d7df0538
!1185 Change the near OOM limit calculation method
Merge pull request !1185 from xiongluo/change_near_OOM_limit
2022-04-29 09:06:45 +00:00
ding
3b16eddbda Extend Fast-new with CallType has NewTarget
Extend fast-new with callType has NewTarget, to speed up calendar application.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I716c6992cf98e2835b1906c61d872ae3496d6db1
2022-04-29 15:36:02 +08:00
openharmony_ci
4f825548a8
!1182 fix ic_mega
Merge pull request !1182 from wpy111/master
2022-04-29 07:29:58 +00:00
xiongluo
5208f3e33a change the calculation method when mem is near oom
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-28 21:11:09 -10:00
luochuhao
33e7b89cac Modify option source of stub compiler.
Using options in js runtime option list and delete stub compiler option.

Add path check for stub compiler generation phase.

Load stub file before loading of aot file.

Add runtime option for optimization level configuration.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I557Q2
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ifbaa7a2dc4333310c62f1f8e230eefb7a2136ca5
2022-04-29 14:40:18 +08:00
wupengyong
b40628ed12 reason:ic bugfix in asm interpreter
description:use tryfastpath replace slowpath
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55CQB?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If2843d6d971c1af39d7b1f5c78ed7e18b5e9fc7f
2022-04-29 14:16:16 +08:00
xujie
705b68e61f Add TS Aot Test Cases And Bugfix
1. Add test cases for add, inc, dec, typeof, strictequal, strictnotequal,
   delobjprop, stobjbyname instructions.
2. fix GC bug and getunmappedargs trampolinefunction bug.
3. Uniform variable decoration style.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Ibd99496c01f3c2e38258585ff08384c37f786deb
2022-04-29 14:16:04 +08:00
openharmony_ci
21f1790b0f
!1140 bc lowering add case
Merge pull request !1140 from songzhengchao/code0426
2022-04-29 05:20:26 +00:00
openharmony_ci
41b869f4dc
!1167 move interpreter helper stubs from common stub to bc stub
Merge pull request !1167 from wanghuan2022/master
2022-04-29 03:35:18 +00:00
openharmony_ci
55857d6209
!1174 delete object_xray-inl.h, move into object_xray.h and create visitor.h
Merge pull request !1174 from zhaozhibo/master
2022-04-29 02:00:06 +00:00
songzhengchao
3ea4fa9e69 BC Lowering test
bc: LDFUNCTION_PREF、STSUPERBYVALUE_PREF_V8_V8、LDSUPERBYVALUE_PREF_V8_V8、STCONSTTOGLOBALRECORD_PREF_ID32、STGLOBALVAR_PREF_ID32、DIV2DYN_PREF_V8
MOD2DYN_PREF_V8
EQDYN_PREF_V8
NOTEQDYN_PREF_V8
LESSDYN_PREF_V8
LESSEQDYN_PREF_V8
GREATERDYN_PREF_V8
GREATEREQDYN_PREF_V8
MUL2DYN_PREF_V8
SUB2DYN_PREF_V8
add bc lowering test

isssue:https://gitee.com/openharmony/ark_js_runtime/issues/I553HC?from=project-issue

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ibf7a1be6212e12ac81db2c30a0f687d92dee3b6f
2022-04-29 09:25:12 +08:00
openharmony_ci
dc10f6abed
!1179 disable unstable testcase
Merge pull request !1179 from changcheng/fix_ut_error
2022-04-28 23:36:19 +00:00
openharmony_ci
2a411e74f3
!1176 modify performance of debugger
Merge pull request !1176 from changcheng/debugger_performance
2022-04-28 23:36:07 +00:00
wengchangcheng
75ae2ac768 Descriptor: disable unstable testcase
details: disable debugger single step test
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I559CM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5913f96c782211ff93b26cf1259a4d96e93bb801
2022-04-28 23:13:43 +08:00
zhaozhibo
2c7f6ff4fa delete object_xray-inl.h, move into object_xray.h and create visitor.h
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-28 21:25:51 +08:00
openharmony_ci
de76b4eaae
!1175 print more error message when ut fail
Merge pull request !1175 from changcheng/add_ut_err_msg
2022-04-28 13:24:31 +00:00
openharmony_ci
f36c419315
!1168 add heapprofiler domain
Merge pull request !1168 from Riachel/master
2022-04-28 13:19:48 +00:00
openharmony_ci
8ef4b8ef1a
!1139 Handling errors when throwing exceptions
Merge pull request !1139 from linxiang8/master
2022-04-28 13:19:06 +00:00
wanghuan
59d4874e0b move interpreter helper stubs from common stub to bc stub
desc: move interpreter helper stubs from common stub to bc stub, beacuse these stubs' signatures are the same and need not construct frame pointer like bc stub.

solu:
1. delete old helper stub define in common stub, and add new helper stub define in bc stub.
2. add new targetKind in CallSignature to distinguish helper and normal stub in loading stub.
3. delete argc in stub define.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I556K1
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I46224e4568b45794aa1bac97682afc41696d5faa
2022-04-28 21:14:18 +08:00
wengchangcheng
4b4d02ed2a Descriptor: modify performance of debugger
details: skip check -1 when there's no step event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I558VZ

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie65d521cbc79ddd36d05c263dd5ccfd5d82e0b5c
2022-04-28 21:12:37 +08:00
wengchangcheng
62a68a877a Descriptor: print more error message when ut fail
details: print both out messgae and err message
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I558VS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie7aaf243707ad210e23537a82ed404cd1f602e7b
2022-04-28 20:15:55 +08:00
openharmony_ci
805e50c9c3
!1157 optimize asm interpreter performance
Merge pull request !1157 from zhangyukun8/optimize
2022-04-28 12:05:15 +00:00
openharmony_ci
c46a213f7e
!1141 add more detailed logs when allocate failed
Merge pull request !1141 from lukai/master
2022-04-28 11:51:01 +00:00
openharmony_ci
154f08f339
!1008 arm64 fix asminterpreter
Merge pull request !1008 from wpy111/master
2022-04-28 10:59:55 +00:00
zhangyukun
35db7bf019 optimize asm interpreter performance
Description:
1. add runtime stat scope to get the data of time-consuming-points
2. use stub to impl these runtime time-consuming-points
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I552ZB?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I242b3ef8b4235d952aa32fda0d3d5b8ed2f8f776
2022-04-28 18:43:32 +08:00
openharmony_ci
8f74f77117
!1160 Avoid JSBackend's pause caused by HandleBreakPoint(...) function right after its pause caused by HandleStep() function in one ByteCodePcChanged(...) function
Merge pull request !1160 from Gongyuhang/master
2022-04-28 09:48:29 +00:00
openharmony_ci
f83919d735
!1158 Fix CallNative GC bug for asm Interpreter
Merge pull request !1158 from 孙哲/master
2022-04-28 08:46:23 +00:00
Riachel
6bd64999e6 add heapprofiler domain
Signed-off-by: Riachel <caolili14@huawei.com>
2022-04-28 16:15:49 +08:00
Yuqiang Xian
674845ddca Tidy-up Heap class; re-organize the public methods by categories and add descriptions.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I551ZU

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-28 16:10:59 +08:00
openharmony_ci
e81c0c38e8
!1090 MatchWithOffset 接口拆成两个接口
Merge pull request !1090 from zhuguanghui123/master
2022-04-28 07:26:02 +00:00