Commit Graph

35 Commits

Author SHA1 Message Date
wupengyong
60b5039d3f reason:add Assert in stub
description:add Assert in stub
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I63R7H?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I9bf81836163f300f8121dc8586c4db741a66b45d
2022-12-02 11:41:58 +08:00
yingguofeng@huawei.com
034592baa8 fix(compiler): PGO code coverage
closes #I5YOK8

Change-Id: Iaa3502168c03fcdea20af97d5ec115512e6a5909
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-11-01 17:01:36 +08:00
xiongluo
1291aa23a9 cow array optimize
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5V3ET?from=project-issue

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-10-26 11:37:49 +08:00
wengchangcheng
32ef9871e7 Descriptor: Fix standalone build error
Details: modify gn and some template

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XGZ4

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Idca98896e01426fe055025efe8800ac01d27d3c5
2022-10-25 12:52:10 +08:00
lordwithcc
79b7ee4cc8 Merge branch 'master' into minor_change 2022-09-15 17:17:57 +08:00
lordwithcc
ec3a882825 Minor change about compiler
Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-09-13 16:57:10 +08:00
openharmony_ci
706c78687a
!2091 To supplement and modify some omissions and errors
Merge pull request !2091 from Zhoucong/master
2022-08-31 07:56:09 +00:00
lordwithcc
23e6bd913e To supplement and modify some omissions and errors
Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-08-30 09:52:00 +08:00
yingguofeng@huawei.com
8eadb26f52 feat(dfx): Handle leak check dfx and Hilog opt
Handle leak check dfx and Hilog opt

Closes #I5OAEW

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I6fd507d163bc64ffe428b61c74e9189d477a2868
2022-08-27 11:04:17 +08:00
Zhenyu Pan
52600d83d3 Enable ASM interpreter compiling and running on Android
related issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5KPPG

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I0c50a4554148a86676b88ca41e9c6560546c5d28
2022-08-04 15:37:10 +08:00
lordwithcc
ce4f286b7c Supplementary changes to independent compilation
Relate Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5GITN

Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-07-28 17:34:05 +08:00
dingwen
bf637c1f41 modify arkcompiler_ets_runtime path
Description:modify arkcompiler_ets_runtime path
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5GE38

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I43e2aae687a4f05fe6505b0b0f70f0846d047b84
2022-07-14 12:35:04 +08:00
wengchangcheng
6e5a7e8362 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +08:00
suchongwei
311fbeeb2a fix pending job hitrace
add hitrace point for pending job enque job and execute job

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

Signed-off-by: suchongwei <suchongwei@huawei.com>
2022-06-29 18:44:27 +08:00
lordwithcc
2448bc3213 Adapt to new version and roll back ark independent compilation
Signed-off-by: lordwithcc <zhoucong40@huawei.com>
2022-06-20 18:28:21 +08:00
wengchangcheng
4aa58c6ba0 Descriptor: modify stream and add switch of enable_dump_in_faultlog
details:
1. call EndOfStream after WriteChunk
2. add switch of enable_dump_in_faultlog
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I58KLM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c9b26873eae47f8e9e5788cd7a477f32738efc9
2022-05-21 16:37:04 +08:00
openharmony_ci
6196f628a2
!1330 Enable x86 Assembler
Merge pull request !1330 from wanyanglan/master
2022-05-18 03:12:23 +00:00
wanyanglan
11ddfd964e Enable x86 Assembler
1. x86 assembler replaces JSCall, JSCallArgV, JSFunctionEntry,
OptimizedCallOptimized, CallNativeTrampoline assembly code of
x86 call.S debugged and enabled to the official code.
2. Delete the relevant code in call.S.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I69b9aad1f52d486ba6d96248aa1a5a2d0a44f318
2022-05-18 09:42:00 +08:00
songhao
e5690247c0 Update the third-party library path
Signed-off-by: songhao <songhonghao@huawei.com>
2022-05-17 13:59:53 +08:00
songhao
9450ab2c4a Adapt to independent compilation
Signed-off-by: songhao <songhonghao@huawei.com>
2022-05-13 09:58:33 +08:00
sunzhe23
91188e72df Refactor asm interpreted frame
description:
1 remove macro ECMASCRIPT_COMPILE_ASM_INTERPRETER
2 add asm native frame type

issue: I569XH

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-05-08 20:40:24 -07:00
songzhengchao
1dd4a6a18d delete c-interpreter call common stub
1 delete enable_stub_aot
2 commonstub frmeType modify from OPTIMIZED_ENTRY_FRAME to OPTIMIZED_FRAME

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53I2Z?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Id3142775f8574c87a4659b78a9da8770f5b792bd
2022-04-19 15:51:22 +08:00
sunzhe23
c0184b2dfe Generate asm code for AsmInterCallRuntime
issue: #I53761

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-17 23:49:48 -07:00
getingke
937a6af1a6 JSFunction call have 4 scenariso:
1.JSFunction
	call native code when method is native
	jump to compiled code for aot JSFunction
	call asm interpreter entry for BC method
2. JSBoundFunction
	Bind Arguments for Bound target function, then recursive call this trampoline function.
3. JSProxy
	Call proxy's target jsfunction.
4. NonCallable
	Throw typerror exception.

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

Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I85917e3cf1ffec0cc1e39de5fc20bd606947c968
2022-04-11 15:49:51 +08:00
openharmony_ci
d342825535
!706 change securec path
Merge pull request !706 from zhoushilin/master
2022-03-14 02:40:00 +00:00
wuzhefeng
ab93e17d09 Refactor JSThread layout and introduce macro for debugging
This PR refactors the design of JSThread by introducing aligned struct,
which is more friendly for ASM-Interpreter and Compiler IRs. Meanwhile,
to facilitate debugging, a macro enable_bytrace is introduced to control
the lib dependencies of ark-js-runtime.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4X0TG

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I56835deec5d372d7c827ded26544a87766f29002
2022-03-10 00:25:35 -08:00
zhoushilin
bc5c0a4630 change securec path
Signed-off-by: zhoushilin <zhoushilin1@huawei.com>
2022-03-09 17:05:29 +08: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
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
getingke
27a544bf56 fixed for review comment by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Ie4b779dd73db792c4d8315ad3a051fb9692d0623
2021-10-27 16:22:43 +08:00
wengchangcheng
3a8a769a8a fix generated header file dependent
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-20 10:11:51 +08:00
wengchangcheng
4098336158 fix generated header file dependence
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-10-12 15:46:23 +08:00
Han00000000
064135d18a fix stub_aot_opt running errors and add arm/arm64 target for js
optimizer

Signed-off-by: Han00000000 <jianghan2@huawei.com>
Change-Id: Idb10d3dffbf79a7f615ccb3f8a468cd35caf73a0
2021-10-12 14:43:18 +08:00
luochuhao
1dc1ba1053 Add llvm prebuilts for js stub optimizer
Change-Id: Iaceac880f6b70b81c2b76c55c4e1d830cc94a977
Signed-off-by: luochuhao <luochuhao@huawei.com>
2021-09-18 17:25:09 +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