Commit Graph

15 Commits

Author SHA1 Message Date
songzhengchao 014741a431 Implement support multiple LLVM stackmap when load multiple machine codes
When load multiple machine code(aot_ouput.m/common_stub.m/bc_stub.m), each machine code have one stackmap. We'll record all stackmaps, then search calliteInfo by return address

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I3b7f09387b7b2c15a1fd96a2047f59ee8c0fef87
2022-04-27 16:24:28 +08:00
ding d8f0399789 Control whether to print compiler logs through JSRuntime Options
Add option log-compiled-methods to print the compiler(both stub and aot) in units of methods.

Add class CompilerLog.

Refactor some compiler logs.

Unie the log invoked way(COMPILER_LOG or COMPILER_OPTIONAL_LOG).

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I43ce61d0ba9d453713ab3e6349d07f6d9cde3e5e
2022-04-14 16:14:34 +08:00
songzhengchao 9b6965c724 delete patchpointid replace with return address
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I1a92f226571273e9ecdd713a378ad977a2f4667f
2022-03-08 17:28:21 +08:00
songzhengchao 2f99abd413 CallRuntimeTrampoline brige support aarch64
Description:
a Use two Bridge function, "InvokeJSFunctionEntry" and "CallRuntimeTrampoline" to Adapter the calling convention of Aot JSFunction & Runtime Stub, then Construct the Entry Frame in "InvokeJSFunctionEntry", Leave Frame in "CallRuntimeTrampoline"
b modify LLVM Calling Conversion, prologue push callee-saved gpr registers --> callee-saved fp/simd/SVE regs --> prev_fp, prev_lr .finally update x29 pointer to prev_fp

issue:https://gitee.com/openharmony/ark_js_runtime/pulls/630

Change-Id: I1df498f411e03c9887c4cad97bf82371c0b5f01a
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-03-01 11:07:25 +08:00
songzhengchao 23aba2a1bb frame refactor
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ic35799a8e6c61e51f72b0fa19d63ea1720033481
2022-01-22 16:46:01 +08:00
luochuhao a5fb8b1717 a)Using more accurate instruction matching logic in RewritePatchPointIdOfStatePoint,
b)make sure rewriteStatepoint pass run first
c)delete useless code.
d)gc related bug fix.

Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: Iaf32c0cbe3c343aa1cbf499f3237844598076336
2022-01-07 13:15:21 +08:00
songzhengchao eba2fd2af5 bug fix
Change-Id: I32e449deae2bba02980bd9c062a085c1c0a03027
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-01-04 17:36:28 +08:00
songzhengchao d5b0bbb5a0 code review: function rename and namespace
Change-Id: I40e81947ba3b51bb5e2dc1103a985889ca78dada
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-01-01 11:20:10 +08:00
songzhengchao 0a5ec1abb2 review code
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I3fd21354d4c3080bee86351e2281183d8d42355a
2022-01-01 11:17:15 +08:00
songzhengchao e198f24ced 1 review code
2 visit gc ptr by patchpoint instead of pc
3 contruct frame for aot

Change-Id: I98d1f8e39803ef7e1ac6c2f88e08d3254c6ef6af
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-01-01 11:17:09 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
songzhengchao c4c4d68a4f code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-28 15:06:25 +08:00
surpassgoodchao 8724269cb9 StubCallRunTimeThreadFpLock --> StubCallRunTimeThreadFpScope
.cpp use PANDA_TARGET_AMD64 delete

Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-12 11:48:03 +08:00
songzhengchao b3d8eca4a1 fastboot
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2021-10-10 11:17:39 +08:00
surpassgoodchao 8b8825786f conflict
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2021-10-10 10:43:27 +08:00