Commit Graph

14 Commits

Author SHA1 Message Date
yingguofeng@huawei.com
a6ddc25b6e feat>(compiler): PGO type profiler
1、PGO Support type profiler for asm interpreter
    2、Optimization function call profiler
    3、ap version promote to 0.0.0.2
    4、Adaptor number speculative phase supporting pgo type

link #I6JPH4

Change-Id: I18043c4f99af93e5ba6eb2e895039fe0edfe5b4e
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-03-30 20:39:06 +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
wupengyong
380c5905ce reason:add assert in asm interpreter
description:add assert in asm interpreter
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I603UA?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ib23b1ec3b78af1600e7a34f81ef9bd9836ee5720
2022-11-10 20:07:42 +08:00
songzhengchao
769df90e1f AOT Builtin Math Function Lowering
1 On current AOT Builtin Math is called by c++ runtime trampoline, which is not an efficient solution.
thus we call target math function directly.
2 CallNGCRuntime save bc offset When Aot call cc fucntion

issue:https://gitee.com/open_harmony/dashboard?issue_id=I5Z281

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I3768bfaf46b15749e37e1eb290e8fb1a3d75ea88
2022-11-10 16:37:28 +08:00
sunzhe23
08621335a7 implments new asm interpreter opcode
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-08-27 15:11:52 +08:00
wupengyong
eef2380567 reason:add buitins stub
description:add buitins stub
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5HCIM?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I4673f7f1443a8a9f6a3c01985f219e50ddb024fa
2022-08-04 17:27:44 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00
lichenshuai
9276e66b13 Disable SingleStepDebugging for Several Bytecodes
Find bytecodes that leads to the difference between rsp frame and sp frame, then disable their SingleStepDebugging.

Issue: #I5EYDX

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I0731046f0b424817a6e463ee385d4203b0fe6244
2022-07-12 16:07:07 +08:00
lichenshuai
cdb0c77b7e Fix TDD containerAsmAction
Fix IsSpecialContainer stub and message string.

Issue: #I58XTL

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I6c6fadd0bbb1f6bfe7c1f8ce6cebf1d35621689c
2022-05-24 16:34:34 +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
luochuhao
905d0496dc Refactor ID definition and callSignature initialization mechanism of stubs
Refactor ID definition and callSignature initialization mechanism of runtime stub,
optimizer stub and bytecode handler stub,
reduce amount and complexity of macro used in calling those stubs.

Add stubDes struct to classify stubs both in AOT file generation phase
and AOT file loading phase.

Fix some circular dependency problems in including header files.

Fix certain inline function declaration and definition format problems, which could lead to
compiling errors.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VMLD?from=project-issue
Test: stubTest(unit test), richards with asm interpreter enabled
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Ibd5fcd963347b97f8dec227f3245d2064463b0b0
2022-03-18 22:01:52 +08:00
lichenshuai
e6b8f48f69 Add Call Stub
Change several structures for call stub.

Related issue: #I4XK12

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie7389ff96c619451304a3f0d352b271310c4b73e
2022-03-15 17:36:58 +08:00
zhangyukun
b981d1ab15 Add stub name log of asm interpreter
In debug mode, print stub name of asm interpreter stub to
help us find which stub exists the problem
Add new DebugPrint format to support print int32 value

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Iae39213572de99cc4089a172092184399ba8c5d0
2022-03-09 15:16:09 +08:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00