Commit Graph

645 Commits

Author SHA1 Message Date
huoqingyi 1da170f1bd 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
openharmony_ci 7685b11b6b !1494 TSAOT Exception Handler
Merge pull request !1494 from 许杰/exception_handler
2022-06-11 09:56:23 +00:00
xujie 6430e8f31e TSAOT Exception Handler
1. Throw JS exception in tsaot
2. Print bcoffset when occur JS exception

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I046d76c092a399354ddcdedd859f0c1e622387c2
2022-06-11 16:36:16 +08:00
openharmony_ci 2efa43bb41 !1562 GateAccessor bugfix
Merge pull request !1562 from wanyanglan/info
2022-06-11 03:46:32 +00:00
openharmony_ci dedf332ab5 !1568 fix exception for aarch64 rsp
Merge pull request !1568 from wpy111/master
2022-06-11 02:47:35 +00:00
wupengyong 34275bafe3 reason:fix rsp aarch64 exception handler
description:resume x30 when return
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BSGW?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I23a6aa431220b4e5a9cbadf395141a48ec17fdf8
2022-06-11 10:00:32 +08:00
openharmony_ci 16357345fb !1563 NewThisObject call inline new
Merge pull request !1563 from 孙哲/master
2022-06-10 10:15:45 +00:00
openharmony_ci fb18fa7456 !1565 fix codex warning
Merge pull request !1565 from hjzhangcm/master
2022-06-10 08:37:55 +00:00
hjzhangcm 217a51e1de fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BPNV
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-10 15:51:38 +08:00
openharmony_ci d591c51eae !1555 fix bug generator for aarch64
Merge pull request !1555 from wpy111/master
2022-06-10 07:51:22 +00:00
sunzhe23 7eb24e8b94 Support new this object call inline new
description:
add NewJSObject stub for fast new JSObject

issue: #I5BPKF

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-10 15:35:16 +08:00
wanyanglan d87a603fd3 GateAccessor bugfix
GateAccessor bugfix

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I6a6bca5538d8310cd30cf81ebe0ab901931fddec
2022-06-10 15:17:17 +08:00
wupengyong 627b51b9df reason:fix fix Generator for aarch64 rsp
description:fix bug in generator
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BLAX?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I9827892801ef8096b2d808f09b5f763fe556021c
2022-06-10 14:18:08 +08:00
getingke c958b9a873 Merge branch 'master' of https://gitee.com/openharmony/ark_js_runtime into aot_call_asmInterpreter
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I04892b95ea6e8188213f615769f0f199a511e9cb
2022-06-10 09:17:20 +08:00
openharmony_ci 091635af67 !1530 Fix rsp frame on arm64
Merge pull request !1530 from zhangyukun8/master
2022-06-09 13:30:10 +00:00
getingke a0ed0ae89d fixed for aarch64 assembler stubs
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I84c62daba0ee50994338debaa70928f2d8dc837c
2022-06-09 21:12:41 +08:00
getingke 8f66d55a80 fixed for reviewed by sunzhe
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7d26c8127511c39a62e6962e5cdf2c2a19723d4c
2022-06-09 20:01:33 +08:00
zhangyukun 26dbd673ff Fix rsp frame on arm64
1. fix callnative entry
2. adapt newobjdynrange

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

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Icf7d0a385d77f76cf8f76a0ecb448728881df067
2022-06-09 19:57:33 +08:00
openharmony_ci 766c707a2e !1536 Refactor GateType
Merge pull request !1536 from dingding/refactor_gateType
2022-06-09 11:41:02 +00:00
ding 8bfd16debf Refactor GateType
1.Change the implementation of gateType from enum to class.
2.Add some base type opeartions between GateType and GlobalTSTypeRef to simplify the code.
3.Delete class GateTypeCoder
4.Extract GlobalTSTypeRef as an independent file.

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

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I3d80595ebccc9ac942af9b9bcc67c0974bb9b712
2022-06-09 17:32:43 +08:00
openharmony_ci 4d1b2fc7c1 !1548 fix codex warning
Merge pull request !1548 from hjzhangcm/master
2022-06-09 09:20:04 +00:00
hjzhangcm 8ebb5ddeaf fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BJJW?from=project-issue
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-09 16:33:51 +08:00
openharmony_ci 31e7e2ecf3 !1532 fix codex warning
Merge pull request !1532 from hjzhangcm/master
2022-06-09 07:50:01 +00:00
getingke 62d97885f8 fixed for aot call asm interpreter
Change-Id: I052dfa2e8849b5a9645bac4389099266efd5047e
Signed-off-by: getingke <getingke@huawei.com>
2022-06-09 11:28:11 +08:00
sunzhe23 4c5952a90f Fix some performance issue for asm interpreter
description:
1 reuse ic slot for ic slot overflow case
2 Replace CallStub with (tail call) bytecode handler for GetPropertyByName
3 add fast path for call new return handler

issue: I5BFu2

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-09 10:30:14 +08:00
hjzhangcm 93af33171e Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-08 10:58:24 +00:00
hjzhangcm 7555cf4213 fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BCD6?from=project-issue
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-08 16:29:33 +08:00
sunzhe23 10ebc065d8 Support stackless callnew for asm interpreter
description:
1 use JSCallDispatch implments call new
2 refactor js common call

issue: I5AKJU

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-08 13:28:04 +08:00
wupengyong b0e4d0db39 reason:fix aarch64 rsp
description:fix PopAsmInterpEntryFrame
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B7OR?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I8819f270b6fcf9e5df809f3a8132666b2bfa9c33
2022-06-08 09:24:05 +08:00
openharmony_ci cabfe1a62e !1345 Implement Prologue refactor and Add mulitple Optimized Frame In LLVM 12.0.1
Merge pull request !1345 from songzhengchao/optimizedjsfunction
2022-06-07 13:49:24 +00:00
zhangyukun 6b0c953505 Fix rsp frame on arm64
1. add call getter and setter

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I0ce295ec5c915d5c0e0aa724a28b6450d7fa4416
2022-06-07 20:00:12 +08:00
songzhengchao dfb9eeaa92 Revert "debug"
This reverts commit dd4c6e829b.

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Iafb4e81981e7b3eef79672684aa4dfc8e75f791a
2022-06-07 15:57:19 +08:00
openharmony_ci 17fcba9439 !1516 AOT compiler supports file without type info
Merge pull request !1516 from dingding/aot_js
2022-06-07 07:55:22 +00:00
openharmony_ci cf6cb22c00 !1511 add type infer test framework && test case
Merge pull request !1511 from hongtao/typeinfertest
2022-06-07 07:32:53 +00:00
songzhengchao e189c888a0 Merge remote-tracking branch 'szc/optimizedjsfunction'
Change-Id: I3451ce3ba039c43f4cebedbc6d5636bbf70d234c
2022-06-07 14:22:34 +08:00
ding 3ea50b760d AOT compiler supports file without type info
Add judement in DecodeTSTypes and GetGateType, to support compiling js
files in AOT.

Add pf_ as a member of BytecodeCircuitBuilder.

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

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: Ia16039e0ba455c6618fec3691c3089067a508373
2022-06-07 14:21:04 +08:00
taohong af9bec981f 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
openharmony_ci 8c90a1c2a2 !1474 Modify static vulnerability alarm and code warning
Merge pull request !1474 from hjzhangcm/master
2022-06-07 03:28:54 +00:00
zhangyukun 09bb2a854d Fix rsp frame on arm64
1. get 32bits of argc
2. add ldur&stur to support signed offset
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5ASTO?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Id4a6bad2977611939ef5fbece5ae5a862cab6e34
2022-06-06 21:10:30 +08:00
hjzhangcm 05fbe9eff5 describe:Modify static alarm
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5AA9J

Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-06 11:34:06 +08:00
songzhengchao dd4c6e829b debug
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie19553066c5f038237c2f06b42dd2b2a64721a8e
2022-06-06 10:05:14 +08:00
zhangyukun cb3fb0187f refactor rsp frame of arm64
1. adapt jscalldispatch
2. fix print(helloworld)

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

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ie6891d4fd812144dda4fd3a57c236eff5f276831
2022-06-05 17:27:03 +08:00
songzhengchao ea9f7cc660 bug fix framehander should update optimizedReturnAddr_
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I78c1b054ca527f5fa3dd5f15a699114be9352ad3
2022-06-03 19:59:09 +08:00
songzhengchao 69ac5a27a9 Implement Prologue refactor and Add mulitple Optimized Frame In LLVM 12.0.1
1 refactor prologue reserve dynamic slots which is setted by LLVM IR
2 callsiteSp is calculated by current function's callee saved registers size
3 and Add mulitple Optimized Frame:
OPTIMIZED_JS_FUNCTION_FRAME:argv[n-1],..., argv[0], argc, ...., returnaddr, Fp, type. this frame need to visit args and stackmap.
OPTIMIZED_ASM_FRAME: jscall/jsentry construct frame which is implemented by assemble, this frame is only link to previou frame, it don't need to visit args and stackmap

4 stackmap support parse const pool and llvm patch add deopt interface LLVMBuildCall3

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AJ9U
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie6a0067169805cc6043ea94936dd578489b56c7b
2022-06-03 15:51:19 +08:00
openharmony_ci 94f5ace070 !1485 Delete RSP macro and .S file
Merge pull request !1485 from 李晨帅/master
2022-06-02 06:54:55 +00:00
lichenshuai a724508c73 Delete RSP macro and .S file
Rsp is used in future work, therefore .S file should be deleted.

Issue: #I5AGW3

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib1fb140d40d259bc4519fbf547857e5f80e9ee0c
2022-06-02 10:32:46 +08:00
openharmony_ci c0941b6d30 !1483 Fix usage of gate accessor
Merge pull request !1483 from Mingliang Zeng/master
2022-06-02 02:02:56 +00:00
Mingliang Zeng 860faad95d https://gitee.com/openharmony/ark_js_runtime/issues/I5AGGG
Fix usage of gate accessor

Signed-off-by: Mingliang Zeng <zengmingliang1@huawei.com>
2022-06-02 01:56:19 +08:00
openharmony_ci ec5185302a !1475 Bugfixs for AsyncFunctionReject and Poplexenv
Merge pull request !1475 from lijincheng/aot-test
2022-06-01 11:05:13 +00:00
lijincheng b4f461f0bc Bugfixs for AsyncFunctionReject and Poplexenv
1.Fix phi state error and parameter type error in LLVM due to wrong value-wires

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

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-06-01 12:58:45 +08:00