Commit Graph

36 Commits

Author SHA1 Message Date
scw
f7b97b27b0 move dfx feature to dfx dir
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4SXXS

Signed-off-by: scw <suchongwei@huawei.com>
Change-Id: Ie5ae6a70f5b561b7578702db591affb26a0057d9
2022-03-04 10:52:47 +08:00
songzhengchao
b2ef46bebe 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
openharmony_ci
375cf155a3
!512 Use include managed_thread.h instead of thread.h
Merge pull request !512 from Pavel/thread_split
2022-02-28 09:02:45 +00:00
zhangyukun
3b881fa018 Sync code from c_asm_interpreter to master
Use Stub to impl handlers of bytecodes and use tail call to impl
dispatch of handlers of bytecodes

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: I7afabdc40ddfa11345aa1029059514aa4f55b9f8
2022-02-22 17:01:18 +08:00
openharmony_ci
cf3ee3ab96
!577 Add JS Function Entry frame & LeaveFrame
Merge pull request !577 from getingke/js_function_entry_frame
2022-02-21 12:44:08 +00:00
dingwen
7010c5bb76 Modify RegionFactory and Chunk
Description:Divide RegionFactory into HeapRegionAllocator and
NativeAreaAllocator,use ChunkVector replace some unreasonable CVector.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4TRB8

Signed-off-by: dingwen <dingwen6@huawei.com>
2022-02-21 15:22:01 +08:00
getingke
2d8d1e4347 fixed for x86 test mod.abc ok
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I3fd6a16ee7cbc1ad23774bef1948bfb391a2378e
2022-02-18 10:52:10 +08:00
yingguofeng@huawei.com
1b6d6ef8ca Performance optimization for gc
1、Optimize GC parallel evacate strategy: evacuate to old space with FreeListAllocator.
2、Adjust strategy that whole region evacuate: Only support new fromspace to new tospace.
3、Adjust Semi space capacity growing/shrinking strategy and Adjust Semi space initialize size.

splay-benchmark:
blue zone: ark_js(2500), v8(2000)
ark-dev:  ark(1200), v8(1500)

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

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ie9c6e94c47f531bf9c1ebf5bc7443dd1acb7d2ac
2022-02-15 14:23:43 +08:00
Andrianov Pavel Sergeevich WX851037
89ff140a33 Replace include for managed_thread
Signed-off-by: Andrianov Pavel Sergeevich WX851037 <andrianov.pavel.sergeevich@huawei.com>
2022-02-09 12:54:40 +03:00
scw
4de1d33121 support SuspendVM and output UncaughtException
Add VMNeedSuspension judge in CheckSafepoint and provide SuspendVM() ResumeVM() api in jsnapi to Suspend VM and Resume VM
Modify GetEcmaUncaughtException no longer clear exception and Add GetAndClearEcmaUncaughtException to get and clear exception

Issue I4SECM

Signed-off-by: scw <suchongwei@huawei.com>
2022-02-09 10:32:56 +08:00
songzhengchao
6bdb8be406 Merge remote-tracking branch 'wzf/master'
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
Change-Id: I78f5da7fa16e75f70068508d04bd65c48afa798d
2022-01-15 16:18:18 +08:00
xiongluo
2483cd5a8a Optimize GC trigger
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-01-13 22:30:21 -10:00
wuzhefeng
4ee0455c00 Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ic990c5f11caeb3075033719a13e759baaf6dfefb
2022-01-13 00:26:00 -08:00
songzhengchao
5d59d320e7 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
sunzhe23
b5fa6d5cee 1 add macro for glue offset table
2 remove unused FindOwnElement2 stub
3 remove SET_STUB_TO_MODULE marcro and replace it with FAST_RUNTIME_STUB_LIST

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2021-12-29 01:44:35 -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
8b166ee59f Merge remote-tracking branch 'open/master' into gc_x86_2
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-29 16:42:01 +08:00
getingke
aef57e484b fixed for review by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7ceab6e9cc8b42ba73255813419baa3619381676
2021-10-28 20:59:19 +08:00
getingke
bc69122046 increase base class FrameHandler for iterator stack frame
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I5643f176c169a2d3a754b6ead66698a0a8e33351
2021-10-28 16:28:40 +08:00
songzhengchao
c4c4d68a4f code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-28 15:06:25 +08:00
getingke
136e3f7b08 fixed 262 test case fail for getpropertybyvalue
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I33b9d68efeb2d8ed19848699c98dedb984174296
2021-10-27 16:09:49 +08:00
getingke
e28d93cacc fixed for optimized entry frame bug when CallInternal
Change-Id: Ib82492657e54d0fa42874b93e8535d423bb03eb8
Signed-off-by: getingke <getingke@huawei.com>
2021-10-27 16:09:49 +08:00
getingke
b35952f22a fixed for Set/GetPropertyByValue & test262 case verify
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I06214f39ebff93754edb3d275be4d4d76c1dba0c
2021-10-27 16:09:49 +08:00
wanyanglan
7fd302d7a4 Merge remote-tracking branch 'open/master'
Change-Id: Idf4c31507cf0d772e81d39bb6b9ab17436076aeb
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
2021-10-26 16:59:23 +08:00
songzhengchao
ec9a4ad922 code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-22 17:29:41 +08:00
songzhengchao
08f5ec2df0 code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-22 17:28:39 +08:00
songzhengchao
32e1e3341c code review
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2021-10-22 16:59:45 +08:00
surpassgoodchao
0228910be4 bug fix
machine code and runtime_trampolines

Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-21 14:13:03 +08:00
wanyanglan
d4704cb738 translate FastTypeOf function and add corresponding test cases
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I3a5d408a7bfe9f21dbe78d3f002fbfb8b0fc9010
2021-10-19 10:05:25 +08:00
surpassgoodchao
8b8825786f conflict
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
2021-10-10 10:43:27 +08:00
openharmony_ci
627a3dc223 !116 Add thread check of ecmascript
Merge pull request !116 from zhangyukun8/master
2021-09-26 06:51:38 +00:00
zhangyukun
0e97463207 Add thread check of ecmascript
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>

Change-Id: I6b954f23e79c0fb98091dc25bc772047489d35bc
2021-09-26 11:42:05 +08:00
getingke
13e4e9f5a8 rebase with master
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ib764c465916b0d8b34f298d04e462b81001d359e
2021-09-23 11:26:42 +08:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00