Commit Graph

22 Commits

Author SHA1 Message Date
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
hjzhangcm f6896ba854 fix warning files
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-02-15 16:58:32 +08:00
songzhengchao 2f2525b90f implement machineType INT* FLOAT* rename to I* and F*
current machineType INT * FLOAT* confuse people to associate UINT*.
the INT* is simlar with LLVM IR too
we reanme  machineType INT* FLOAT* rename to I* and F*

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ie188e07039cd9f26aed436ce96618ea4143fccd6
2022-02-10 15:51:18 +08:00
songzhengchao 7c7ca08440 code review modify
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I1523067831240b65a442cf392327c5df4708a130
2022-01-24 15:36:24 +08:00
songzhengchao 23aba2a1bb frame refactor
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ic35799a8e6c61e51f72b0fa19d63ea1720033481
2022-01-22 16:46:01 +08:00
songzhengchao a47e416b84 review code
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Idea8ce99572460a1a6a8f923d9eb1ecbb272db24
2022-01-14 16:29:22 +08:00
wuzhefeng 5720a01a3a Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ic990c5f11caeb3075033719a13e759baaf6dfefb
2022-01-13 00:26:00 -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 532ec5c128 codedex clean
Change-Id: I439a70ae2fa6fcf6bb57bf37763cf4068abadd9a
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-01-01 11:19:16 +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
yingguofeng@huawei.com 1d9b2ac3dd nativePointer optimization
Change-Id: I97b58375c2ec30f33778d7f11fb40a9cf0ed346b
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-12-23 19:40:54 +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 0c38b6b94d code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-30 22:18:09 +08:00
songzhengchao baa25ddebe code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-30 17:09:06 +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
songzhengchao 4d1b014eb9 add frames descriptor
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2021-10-10 10:44:14 +08:00
surpassgoodchao 8b8825786f conflict
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2021-10-10 10:43:27 +08:00