Commit Graph

53 Commits

Author SHA1 Message Date
wuwanqi
3073f99ffe Rectify bundle.json
Rectify bundle.json and deps of BUILD.gn
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78UW4?from=project-issue

Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: Iabaeca1c38765cc3d716ebf1b0157f38597f87a8
2023-05-27 22:32:29 +08:00
wengchangcheng
01121dd6d8 Fix Log print error in intl
Add ENABLE_HILOG defines in intl source_set

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

Test: UT & 262

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5f77533baec9575f495b068d516528d0697b8421
2023-03-24 20:34:46 +08:00
openharmony_ci
49abccb005
!3444 Modify some absolute path in arkcompiler
Merge pull request !3444 from weng-changcheng/modify_absolute_path
2023-02-28 08:04:52 +00:00
wuzhefeng
f7c3e927eb Reformat the help information
Reformat the help information and provide more friendly help.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>

Change-Id: Ic247f60155b47763f705b01a176afc340aab6c80
2023-02-27 03:58:19 -08:00
wengchangcheng
5761f9e020 Descriptor: Modify some absolute path in arkcompiler
Details: Add inner_kits in ets_runtime

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0a9d2c875652733113bec5849a67c974721cee41
2023-02-24 13:59:21 +08:00
wengchangcheng
7a171ba5de Descriptor: Fix daily build error
Details: Add limits header to common.h

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I04e6a22ebe5fbd3ef48884692557a86e52c5bcb8
2023-01-06 09:40:10 +08:00
wengchangcheng
d3e67c26fa Descriptor: Modify for ark standalone build
Details: Modify gn

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I577831c567bad4bfb6e67a2ed6a6f4fd2381b39a
2022-11-16 10:16:20 +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
wengchangcheng
0b947ac7d0 Descriptor: 部件化整改 ark -> arkcompiler
Details: 部件化整改 ark -> arkcompiler

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I01c72bafc95a7d469c9bb31cfcbac79b310dfac1
2022-10-13 22:23:53 +08:00
openharmony_ci
e6517860c9
!2576 Add quickfix testcases
Merge pull request !2576 from weng-changcheng/quickfix_testcases
2022-10-11 09:50:06 +00:00
linxiang
444e381051 add handlescope and add option control print execute pandafile spent time
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I1e7cb9660f3a42f9c413dc2fce85b49fd5fb97cc
2022-10-11 14:32:15 +08:00
wengchangcheng
aaf47ba3d0 Descriptor: Add quickfix testcases
Details:
1. Add quickfix testcases
2. delete isPatch flag
3. use the same recore name of base and patch

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1e03addb8f37240557df899fbee8bc99beb97e92
2022-10-11 10:49:17 +08:00
Riachel
edd869622e Descriptor: fix some bugs for getopt
details: fix some bugs for getopt
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5SSDI

Signed-off-by: Riachel <caolili14@huawei.com>
2022-09-27 09:17:40 +08:00
Berlinnerly
8225a613ba Code alarm cleaning
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5SJ3B

Signed-off-by: Berlinnerly <zhouwenxuan1@huawei.com>
2022-09-23 09:42:02 +08:00
Riachel
6c42a60ca6 Descriptor: fix some bugs for getopt
details: fix some bugs for getopt
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5SK2H

Signed-off-by: Riachel <caolili14@huawei.com>
2022-09-22 18:35:00 +08:00
Riachel
e2698e926e Descriptor: delete pandargs.h and refactoring options
details: delete pandargs.h and refactoring options
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5Q05L

Signed-off-by: Riachel <caolili14@huawei.com>
2022-09-20 17:24:08 +08:00
yingguofeng@huawei.com
7ca0219102 fix(UT): Fix ark_js_host_unittest test failed in runing asan
Closes #I5Q3HC

Change-Id: Ic52a0b137bb71784f92d530cae4df582c7b53dcf
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-09-15 20:43:43 +08:00
changjiaxing
1045e70677 Merge abc bug fix and Code optimization
issues:I5Q0M8:merge abc don't support import npm package?from=project-issue

Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I29863b4ee9643fdfef3bd68f75bc849194bce62c
2022-09-09 16:44:33 +08:00
Riachel
ddc6d97ddd Descriptor: delete base_options.h
details: delete base_options.h
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5M2QW

Signed-off-by: Riachel <caolili14@huawei.com>
2022-08-18 09:59:22 +08:00
Riachel
2df62a6a96 Descriptor: modify LOG_ECMA
details: delete libpandabase/utils/logger.h
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5KTRL

Signed-off-by: Riachel <caolili14@huawei.com>
2022-08-10 17:21:58 +08:00
wengchangcheng
e7cc80fb39 Descriptor: Fix compiler of Windows
Details: Link pandabase for ark_js_vm

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I91e533cecfcf1300b899c65ac03dcf7772c303cd
2022-07-29 21:47:57 +08:00
Riachel
9757a02c51 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into native_stack-and-trace 2022-07-29 09:17:24 +00:00
Riachel
d1b24f61db Descriptor: delete native_stack.h, trace.h and mem.h
details: delete native_stack.h, trace.h and mem.h
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5IS38

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-29 17:13:58 +08:00
wengchangcheng
1243fa6507 Descriptor: merge library to libark_jsruntime.so
details: use static link of pandafile and pandabase
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JHY4

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie630f5cd7d646c18d2518f793c5827f742d560c3
2022-07-29 10:35:32 +08:00
Riachel
96adb30222 Descriptor: delete native_stack.h, trace.h and mem.h
details: delete native_stack.h, trace.h and mem.h
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5IS38

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-28 19:15:13 +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
gongyuhang
d05d966299 Fix bugs of ark_js_vm.exe
Executing ark_js_vm.exe on windows by the logic of handling paths for linux
results in creating wrong moduleFullNames for the moduleManager. Add the logic
of handling paths for windows, fix test262 failure on windows. Make the
delimiter for paths sent in change from ':' to ';', fix test262 failure while
sending absolute paths for .js files on windows.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JB15
Test: windows 262test
Signed-off-by: gongyuhang <gongyuhang7@huawei.com>
2022-07-28 11:34:49 +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
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
openharmony_ci
087de379dc
!1600 Adapt to new version and roll back ark independent compilation
Merge pull request !1600 from Zhoucong/master
2022-06-21 04:19:52 +00: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
cc184ba66c Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
Gongyuhang
496687fe52 Desciption: Deal with the "use after free" error
occurs while debugging ark_js_vm executable on
windows.

Details: Enclose the part where the LocalScope
object should take effect with a pair of braces.
Thus, the destructor of the LocalScope object
will be called at the right brace which is above
the JSNApi::DestroyJSVM() function.

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

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-06-14 16:13:59 +08:00
luochuhao
172f5642c7 Modify enable logic of certain runtime options.
Change condtion for File execution branch to whether file is AOT compiled or not.

Fix bug of setting bc debug handler entry while loading stub file.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBFH
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I5b6d47a1587631849f6c1e746473cb14b1d727a8
2022-06-13 12:15:03 +08:00
songhao
9450ab2c4a Adapt to independent compilation
Signed-off-by: songhao <songhonghao@huawei.com>
2022-05-13 09:58:33 +08:00
wengchangcheng
ee95ea7c8c Descriptor:fix ut fail and modify debugger test
details:
1. fix icu path error
2. modify debugger unittest
3. modify gn target
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WGN

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c924fd90297a5172ca5aabace36b6e250dc312b
2022-05-05 20:49:16 +08:00
yingguofeng@huawei.com
5037c8aac6 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

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

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00
lifansheng
c9d2334593 Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +08:00
songhao
0915f30c6a source_set
Signed-off-by: songhao <songhonghao@huawei.com>
2022-04-13 10:56:16 +08:00
wengchangcheng
99934b9037 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +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
wengchangcheng
a43aa61d97 fix actor bug
modify actor for app start

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iad48f3173a963c4290701a708f41832359c88b02
2022-03-02 15:33:19 +08:00
y00576111
2166bc7520 js pandafile refactor, support actor function
When the worker thread is started
the part shared by the virtual machine is not recreated
only the part that cannot be shared is created

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I3c01588bb8449bd9cd8b410cfd13ff55205f41c1
2022-03-02 15:33:19 +08:00
wengchangcheng
033440162f modify logger init in ark_js_vm
issue: #I4SIRR [https://gitee.com/openharmony/ark_js_runtime/issues/I4SIRR]

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-29 12:15:53 +08:00
wanyanglan
c3bfb80a04 independent running ts aot
ts aot should be a separate part that needs to generate the
corresponding file before executing xxx.abc and should not
depend on the execution of xxx.abc

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I4ed7d7ee5528dcb479e08486f332a48c16ea88d7
2022-01-26 15:22:50 +08:00
y00576111
f8049fe15b remove unnecessary stringref
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I2154cdf7565da576103b8c1215a982f66df20661
2022-01-17 10:48:02 +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
wengchangcheng
2c7c067c1b ark_js_vm support multi pandafile
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c4fbb6895f63ce0414352e71c8756cb0c5064f6
2021-10-27 15:29:53 +08:00
xliu
f4a2f13790 add arkTools.print
Signed-off-by: xliu <liuxin259@huawei.com>
2021-10-19 14:17:15 +08:00