Commit Graph

239 Commits

Author SHA1 Message Date
openharmony_ci
f5a5ee3062
!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
3f839d2633 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
232563d53b 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
0fdd7d3515
!1202 modify JSTaggedValue which disconnect TaggedValue inheritance
Merge pull request !1202 from fanshengli/disconnet_taggedValue
2022-05-06 00:42:48 +00:00
hjzhangcm
d0b3e4d607 fix codex waring
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-05 17:03:02 +08:00
lifansheng
1b578eb240 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
96c5cbeb01
!1195 Stackless SuperCall
Merge pull request !1195 from dingding/stackless_supercall
2022-05-05 06:56:39 +00: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
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
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
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
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
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
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
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
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
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
sunzhe23
5c181882ee 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
6e4af76501 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
openharmony_ci
2c0c759481
!1143 get prev interpreted frame of entry frame
Merge pull request !1143 from guobingbing/adapter-asm
2022-04-26 09:34:00 +00:00
openharmony_ci
37fa9b70eb
!1085 add asmInter Debugger
Merge pull request !1085 from wanghuan2022/master
2022-04-26 08:06:13 +00:00
guobingbing
0e6a964129 get prev interpreted frame of entry frame
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6ed03ae55878790d4576499515a5973a700cd1ff
2022-04-26 15:59:03 +08:00
openharmony_ci
795228786a
!1125 Fix Asyncfunction Reject
Merge pull request !1125 from xliu/test_master
2022-04-25 13:41:38 +00:00
wanghuan
3418f48a99 add asmInter Debugger
desc: add asmInter debugger to support ide debug.

solu:
1.add bc debugger stub entry;
2.check is or not debug mode in runInternal and switch release to debug or debug to release.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53Z4V
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I3f61bed8b4e17c43d22b5e6f103fe897cd8b41c1
2022-04-25 21:38:27 +08:00
openharmony_ci
10df7b2d21
!1119 Support calculate callsite sp for interpreter frame
Merge pull request !1119 from 孙哲/master
2022-04-25 12:06:25 +00:00
openharmony_ci
874834928f
!1118 fix codex waring【part 2】
Merge pull request !1118 from zhaozhibo/master
2022-04-25 10:09:31 +00:00
sunzhe23
5b1c57291d Support calculate callsite sp for asm Interpreter
description:
Add SaveCurrentFrame for interpreter handler call stub and
get get callsite sp when gc run

issue: I54IMV

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-25 01:03:33 -07:00
xliu
44e83a251e Fix Asyncfunction Reject
Description
  Update the value of ACC to the value returned by reject
Issue:
  #I54KKQ:Fix Asyncfunction Reject

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Ie4916e08091d31002f581d5f0c4e80d11fb2cbe6
2022-04-25 15:08:15 +08:00
zhaozhibo
2573042319 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +08:00
luochuhao
42e13f263a First run of an TSAOT-define function Demo.
Record idx in const pool of aot function in llvmmodule and aotcodeinfo.

Tweak code in circuit builder for slowpath lowering scenario where
constpool is null.

New JSFunction object for main function in AOT file and new JSFunction object
for each defined function in lowerDefineFuncDyn.

Fix bug in call.S after JSMethod refactor.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I545X0
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ie6448f8740caddf79c3b9ed3385ba5739c7eb76b
2022-04-25 12:00:12 +08:00
openharmony_ci
7cbbb8a243
!1093 Delete useless code dependencies.
Merge pull request !1093 from yingguofeng/mmap
2022-04-24 16:26:56 +00:00
openharmony_ci
1627729df9
!1112 remove prevSp in EcmaRuntimeCallInfo
Merge pull request !1112 from guobingbing/optimize
2022-04-24 11:43:40 +00:00
guobingbing
caa05ba83a remove prevSp in EcmaRuntimeCallInfo
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I3a3517cc8712baa6eef76f85a9967dd95a085bbc
2022-04-24 19:04:24 +08:00
openharmony_ci
36499b4aaf
!1098 debugger refactor
Merge pull request !1098 from Gymee/perf_tune
2022-04-24 11:02:16 +00:00
yingguofeng@huawei.com
5037c8aac6 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

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

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00
sunzhe23
c589aa831e Refactor leave&entry frame
issue: #I541LG

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-23 23:35:51 -07:00
Gymee
af906dbdd5 debugger refactor
Change-Id: Idff2f871926a3893b5bd962f13b4a10c39f9f6d9
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-04-24 11:35:13 +08:00
wengchangcheng
7ee32938a3 Descriptor: enable testcase with ecmavm instead of runtime
details:
1. add debugger module testcase in host
2. fix debugger crash when throw exception in interpreter
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53WBO

Change-Id: Ia7d878b0b81c011d940a9187d39c854f6a592e6d
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-04-22 20:42:16 +08:00
guobingbing
c17cbca166 add copyright for test file.
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I76f92afb097516f78b505d3d2a349f38cd9d4d20
2022-04-22 10:58:23 +08:00
openharmony_ci
d65af5cf49
!1024 check return use pc instead of FrameType
Merge pull request !1024 from guobingbing/master
2022-04-21 13:32:40 +00:00
xiongluo
727b20b57e refactor jsMethod
1. Move necessary fileds in jsMethod
2. Make jsMethod inherit aligned struct
3. Change some function names for easy reading

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-20 23:17:00 -10:00
guobingbing
2aa8816a83 check return use pc instead of FrameType
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I628701d6ad08b7a6dbbf762383f198b25c403930
2022-04-21 16:21:35 +08:00
openharmony_ci
1c5ffba92a
!1054 delete c-interpreter call common stub
Merge pull request !1054 from songzhengchao/code0419
2022-04-21 07:05:37 +00:00
lichenshuai
8b9fa810c5 Fix asm entry frame bug
Set leave frame to nullptr before Execute() and restore it after that to avoid endless loop.

Issue: #I53HAD

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib9504519c33932d4e0c7b0ad4a5a599a5564cbe0
2022-04-21 11:22:50 +08:00
guobingbing
c9b5d658c5 add DoStackOverflowCheck for app crash after reboot many times
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I6b144c0b86b5c2b48bae8cf513d67e5e537eaf7b
2022-04-19 17:44:54 +08:00
songzhengchao
1dd4a6a18d delete c-interpreter call common stub
1 delete enable_stub_aot
2 commonstub frmeType modify from OPTIMIZED_ENTRY_FRAME to OPTIMIZED_FRAME

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53I2Z?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Id3142775f8574c87a4659b78a9da8770f5b792bd
2022-04-19 15:51:22 +08:00
hjzhangcm
ee43201024 fix master warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-19 09:43:35 +08:00