Commit Graph

267 Commits

Author SHA1 Message Date
wupengyong 7c650ba015 reason:performance optimization
description:optimize taggedvalue encode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55ZVP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I747a60f5ea7348d3b0cfc041a3b010c52b1517c0
2022-05-21 09:33:44 +08:00
openharmony_ci 272769f96e !1319 add generator rsp
Merge pull request !1319 from wanghuan2022/master
2022-05-18 09:19:05 +00:00
wanghuan 1833bda964 add generator rsp
desc:add generator rsp

solu:change GeneratorReEnterInterpreter function to assembler rsp

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57M3Q
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I66e3cdae7a89a8f48a42d126a4541b25ab2a6923
2022-05-18 14:33:56 +08:00
wengchangcheng 5585fc331a Descriptor: crash when death cycle
details: add default branch when frame type error
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57Y8Q

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I857076e33f6b30d4fede33edf7e058cfba39b22f
2022-05-17 22:51:14 +08:00
openharmony_ci e0e17a8109 !1335 Fix asyncAsmAction TDD
Merge pull request !1335 from 李晨帅/master
2022-05-17 13:14:28 +00:00
openharmony_ci cba876236d !1343 Fix rsp frame of x64
Merge pull request !1343 from zhangyukun8/master
2022-05-17 13:11:18 +00:00
zhangyukun 81701ee605 Fix rsp frame of x64
1. Fix constructing builtin entry frame
2. Fix push argc
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57XTS?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: If300c905a65a6fee7436963accf7173fe8047944
2022-05-17 19:56:29 +08:00
ding 36a1c21412 Fix aot newobjdynrange, Add relevant testcase, Some aot Refactor
1.Fix aot newobjdynrange by call JSFunction::Construct.

2.Add native new test case(new non-native constructor depends on
`defineclass`).

3.Add StackAssertScope in debug mode.

4.Delete retired `call` code in runtime_stubs.

5.Refactor GetArg from macros to inline function in RuntimeStubs.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ic89b98af11f2e2fc97aaeba1704d27a95d2c0c7b
2022-05-17 15:49:53 +08:00
lichenshuai cc9a22605c Fix asyncAsmAction TDD
The TDD asyncAsmAction will fail when run. It needs to be fixed.

Issue: #I57UY6

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie80755f9bc13d4fe1dd83d413ac71323c753b7f7
2022-05-17 15:41:23 +08:00
zhangyukun 6e0a576021 Fix rsp frame callnative and generator
1. adaptor GetNumArgs
2. fix callnative irange
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57PDZ?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ib9a07e2e05fae93eb169e69e79f0c91acca37600
2022-05-16 21:08:38 +08:00
openharmony_ci f30a3b4d29 !1310 fix frame handler preinterpreted frame bug
Merge pull request !1310 from 孙哲/master
2022-05-16 06:16:42 +00:00
sunzhe23 b2c4eeff24 Fix frame handler preInterpretedFrame bug
description:
preInterpretedFrame should skip non-interpreted frame first

issue: I57JNT

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-15 22:28:16 -07:00
zhangyukun a65fb615bb Impl rsp frame of generator
1. Resume rsp of SuspendGenerator
2. Remove duplicated stack frame switching of ChangeGenContext and
ResumeContext
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57IXJ?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I3a86c645864ec73f5dd351882125b4ee721b5468
2022-05-16 09:18:47 +08:00
openharmony_ci 60f4974a42 !1269 Refactor asm interpreter call native
Merge pull request !1269 from 孙哲/master
2022-05-14 01:35:19 +00:00
sunzhe23 1984b8f251 Refactor asm interpreter call native
description:
use builtin frame refactor call native

issue: #I573S8

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-13 05:12:06 -07:00
openharmony_ci 3e6c4e224b !1283 fix debug UT bug
Merge pull request !1283 from guobingbing/master
2022-05-13 06:13:08 +00:00
g00416891 af7d8df10a fix debug UT test,remove assert before create InterpretedEntryFrame
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I249022de7ddf8c6d3217412a8fd3543e7efe55ae
2022-05-13 11:24:14 +08:00
openharmony_ci bebf03b2a5 !1271 exception handler supports rsp frame
Merge pull request !1271 from zhangyukun8/master
2022-05-13 03:01:45 +00:00
openharmony_ci b605d6e935 !1275 bigint fix gc bug
Merge pull request !1275 from zhangyouyou/master
2022-05-13 01:18:09 +00:00
zhangyouyou 184485bf14 https://gitee.com/openharmony/ark_js_runtime/issues/I5747Z
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-05-12 21:17:40 +08:00
zhangyukun ae2a7e5d9b exception handler supports rsp frame
1.add lastFp_ into GlueData to restore rsp in exception handler
2.add AsmInterpreterEntryFrame to exit Execute when use rsp
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5733D?from=project-issue
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>

Change-Id: Ia3c9301f3854b7d9cfb46dabbae82186b86348a3
2022-05-12 20:44:21 +08:00
guobingbing d8699d3ab9 modify annotation of InterpretedFrame
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I1deb88080eb89e27252629d8501005d49fe76adf
2022-05-12 10:22:18 +08:00
hjzhangcm c47eac9550 fix codeCheck warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: Ie8ccede04ab2a7771439657fd8166b39c9dd0e4e
2022-05-12 09:50:21 +08:00
guobingbing d91e970f3a fix frame handler cached function & pc bug
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: Icf4a8ae482fb0bfde28282050876ca33b72d2c6d
2022-05-10 20:33:27 +08:00
zhangyukun 48a3816571 Fix assembler rsp frame of x64 platform
1.Fix Andq error due to sign-extended of imm32
2.Enable asmInter option should be loaded before init stack
3.separate leave frame with interpreter frame
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I56IZ4?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I7bb4b5de71aab7dc8c6b657c70f97d738ebe1c2e
2022-05-10 10:18:14 +08:00
sunzhe23 c874c75894 Refactor asm interpreted frame
description:
1 remove macro ECMASCRIPT_COMPILE_ASM_INTERPRETER
2 add asm native frame type

issue: I569XH

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-08 20:40:24 -07:00
zhangyukun 25daaf26ef constuct entry frame of execute with rsp
1. add fp to support discontinuous frame gc and resume rsp
2. assemble execute and impl entry frame with rsp
3. use assembler to refactor .s
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52BQE?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I6966672dc065d63144fe7fa145ab76571189d540
2022-05-07 14:13:50 +08:00
yingguofeng@huawei.com 673ef407ff multi vm bugfix
https://gitee.com/openharmony/ark_js_runtime/issues/I564M2?from=project-issue

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I9b2d1bcd1ebadea2fcdcff34a595907cb896dbb0
2022-05-06 18:17:08 +08:00
openharmony_ci 7c0e0a068a !1214 Fix test262 new-symbol-with-super-throws.js fail
Merge pull request !1214 from dingding/fix_test262
2022-05-06 07:17:25 +00:00
yingguofeng@huawei.com 09aaafead4 Setter/Getter Optimization
1、std::array copy construction has high performance overhead,
2、Class is transferred to dictionary after adding getter and setter, resulting in IC failure

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

500000 getter: 170ms > 105ms

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ia08f22df798a3c3a2f6fafb6401c802e3af3c63b
2022-05-06 14:17:02 +08:00
ding 346de9e408 Fix test262 new-symbol-with-super-throws.js fail
The failure was due to SuperCall and FrameHandler modification at same
time. Need extra adapation.

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Id86614a694aa871f8a6ed43531b5b69059c453ba
2022-05-06 12:22:40 +08:00
openharmony_ci 31c541dc2c !1202 modify JSTaggedValue which disconnect TaggedValue inheritance
Merge pull request !1202 from fanshengli/disconnet_taggedValue
2022-05-06 00:42:48 +00:00
hjzhangcm 3d42158184 fix codex waring
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-05 17:03:02 +08:00
lifansheng 295d5db32b issue:I55TH8
modify JSTaggedValue which disconnect TaggedValue inheritance

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I13b990baf5284e58e83ab6b14847df076f42bed8
2022-05-05 16:54:26 +08:00
openharmony_ci 0ef859598c !1195 Stackless SuperCall
Merge pull request !1195 from dingding/stackless_supercall
2022-05-05 06:56:39 +00:00
openharmony_ci 70a73aac4f !1188 refactor class FrameHandler
Merge pull request !1188 from guobingbing/optimize
2022-05-04 07:24:17 +00:00
guobingbing 129ebdbf25 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +08:00
ding 763630738a 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 272cf6664d !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 a04b5ba02f !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
ding f875000553 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
xujie 2590ccc603 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 fd513bc419 !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 7c39a61fdd !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
zhaozhibo b7fb4444ec 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
wanghuan 18792a746a 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
openharmony_ci c8edea9f78 !1158 Fix CallNative GC bug for asm Interpreter
Merge pull request !1158 from 孙哲/master
2022-04-28 08:46:23 +00:00
Yuqiang Xian c7e278f057 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
sunzhe23 86a4019e1e BugFix for callNative's leave frame
description:
callNative build the wrong leave frame, witch will case gc crashed

issue: I55401

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-27 20:04:19 -07:00
xiongluo d8b0be85b3 refactor the uint fileds in jsmethod
1. make bytecodeArraySize, hotnessCounter, methodId, slotSize into one field methodField.
2. change the interpreter_stub to fit the hotness counter in jsmethod.
3. fix the fail problem of mem controller test.
4. Adjust the timeout value of uinittest

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-27 02:43:40 -10:00