Commit Graph

53 Commits

Author SHA1 Message Date
lifansheng a725676a6c 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
zhaozhibo 504820705d Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-17 07:24:50 +00:00
zhaozhibo 398ac87a36 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
wengchangcheng d6c835caea Descriptor: debugger refactor
details:
1. debugger refactor, don't use runtime debugger
2. fix debugger crash

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I08e3c86bf659b9e0a44d014d13b11462d50218b3
2022-04-17 01:16:26 +08:00
guobingbing 589234007e FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +08:00
wangben 79fc257ebd Added builtins typedarray and array Added interface test case and BigInt64Array and BigUint64Array construction of typedarray adapted to napi
Signed-off-by: wangben <wangben15@huawei.com>
2022-03-30 10:49:55 +08:00
wengchangcheng 4804cd80d3 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
wanyanglan b6e56d3c3f Clean Code For CodeHub Issues
Modified file permissions, word spelling errors, and
programming specifications suggesting EXPECT_EQ instead
of EXPECT_TRUE

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I00eb9be48d481ce2bdaa4a621246ff6c405abecf
2022-03-22 11:34:13 +08:00
wanghuan 68ab7992a7 feature:add asm handle disable range by option
description:add an option to control asm interpreter stub handle disable range in debug mode

reason:add an option to control asm interpreter stub handle disable range in debug mode

issue:https://gitee.com/open_harmony/dashboard?issue_id=I4XAXX

Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: Ie573a11be453f036cefb9d2eb000b84bb5007e6b
2022-03-16 14:32:47 +08:00
zhangyouyou 66dec69743 Add bigint type, add related instructions and Napi
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-03-10 21:25:06 +08:00
y00576111 a1796a573e EcmaScript Standard Module Implementation
Delete the existing module implementation and
re implement the module function according to the ECMA 2018 specification

issue: #I4NZQT [https://gitee.com/openharmony/ark_ts2abc/issues/I4NZQT]

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I8d381db7f8bf2f3d6b2a5c21cbc3cbab1aef0b9b
2022-03-10 19:10:42 +08:00
openharmony_ci d16af6b59c !674 Modify and supplement the stack column printing code of DFX module
Merge pull request !674 from 史凯/master
2022-03-06 04:26:05 +00:00
shikai-123 19abb2f5ef Modify and supplement the stack column printing code of DFX module
上传dfx模块代码,增加native栈栈列打印功能

https://gitee.com/openharmony/ark_js_runtime/issues/I4VB5Z

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-06 11:10:56 +08:00
scw 326b0140c9 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
y00576111 9eeef5be33 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
panzhenyu1 17258d9872 Adapt for windows platform
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VDA4
Change-Id: I4560cf0ec4c05ccd855debb51b6d0190b4f1ccfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-03-02 11:22:58 +08:00
xiongluo 82b0916295 GC name is unclear and confused. class_ in object factory are redundant.
Modify gc name and delete class_ in object factory.

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

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-02-16 01:10:53 -10:00
zhangyukun dde836ab5c Support weak refernce of ark napi
Add ClearWeak() interface
bug:#I4TEDI

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Iabce07be151bf41d19a523a70cb79c8462d8bc3d
2022-02-12 11:09:33 +08:00
linxiang 4995dbaef3 The runtime should be destroyed after all VMS
Description
    Ensure that all VMS have been destroyed by counting, ann then DestroyRuntime

Related issues
    https://gitee.com/openharmony/ark_js_runtime/issues/I4T7NX

Signed-off-by: linxiang <linxiang8@huawei.com>
2022-02-11 10:15:02 +08:00
openharmony_ci 310ee5221f !490 support SuspendVM and output UncaughtException
Merge pull request !490 from 苏重威/master
2022-02-09 09:39:35 +00:00
scw 633e2ddbe8 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
linxiang 6209037132 Modified the definition of delete in nativepoint
Description
    There is conceptual confusion in the definition of delete in nativepoint. Modify it to avoid ambiguity

    modify 'delete(buffer, data)' to delete(nativePointer, data).

Related issues
    #I4SK2G: Modify the name of nativepointer

Signed-off-by: linxiang <linxiang8@huawei.com>
2022-01-30 11:59:45 +08:00
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
y00576111 6cb00cdd4c remove unnecessary stringref
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I2154cdf7565da576103b8c1215a982f66df20661
2022-01-17 10:48:02 +08:00
jiangkai43 de403931c0 Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
modified dfx_jsnapi.h
2022-01-16 16:00:55 +08:00
jiangkai43 cda11eee19 Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
add interface of heap
2022-01-16 14:33:58 +08:00
songzhengchao 2f03b1e898 Merge remote-tracking branch 'wzf/master'
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
Change-Id: I78f5da7fa16e75f70068508d04bd65c48afa798d
2022-01-15 16:18:18 +08:00
shikai 031856b56e add heapProfiler and getBackTrace napi
Signed-off-by: shikai <shikai25@huawei.com>
2022-01-14 18:11:09 +08:00
songzhengchao 9ec2857775 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ia32bcdd74782f4a39df7b198d832ec8cc54d940b
2022-01-14 16:30:27 +08:00
songzhengchao 44df21086b Merge remote-tracking branch 'zf/master'
Change-Id: I723f168f87cdb40bc5123226bd52f641487d147d
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
2022-01-14 16:29:01 +08:00
openharmony_ci f52063cc93 !346 Add ark config properties
Merge pull request !346 from lukai/master
2022-01-14 04:35:28 +00:00
wuzhefeng 5720a01a3a Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ic990c5f11caeb3075033719a13e759baaf6dfefb
2022-01-13 00:26:00 -08:00
lukai 09038221a1 add ark properties ,issue:#I4PVB3
Signed-off-by: lukai <lukai25@huawei.com>
2022-01-13 16:12:25 +08:00
wangben 119fc3d2b0 Signed-off-by: wangben <wangben15@huawei.com>
On branch master
 Your branch is up-to-date with 'origin/master'.

Signed-off-by: wangben <wangben15@huawei.com>

 On branch master
 Your branch is up-to-date with 'origin/master'.
2022-01-12 16:43:50 +08:00
openharmony_ci 963f641dcc !293 fix cppcrash when exit
Merge pull request !293 from huangfeijie/master
2021-12-31 04:31:13 +00:00
root 087867f095 Signed-off-by: 常佳兴 <925774720@qq.com>
Please enter the commit message for your changes. Lines starting
 with '#' will be ignored, and an empty message aborts the commit.

 Committer: root <root@DESKTOP-KJ56O8O.localdomain>

 On branch master
 Your branch is up to date with 'origin/master'.

 Changes to be committed:
	modified:   ecmascript/napi/include/jsnapi.h
	modified:   ecmascript/napi/jsnapi.cpp
2021-12-29 18:49:24 +08:00
openharmony_ci 38690cf335 !277 Add Inherit Api for FFI
Merge pull request !277 from Pan Zhenyu/master
2021-12-24 08:14:05 +00:00
h00611971 03595c9cda fix cppcrash when exit
Signed-off-by: h00611971 <huangfeijie@huawei.com>
2021-12-24 16:08:10 +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
panzhenyu1 ee7da79043 Add Inherit Api for FFI
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2021-12-23 17:33:08 +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
lifansheng fa4e33afb1 Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master
 Your branch is up to date with 'origin/master'.
2021-11-25 10:37:20 +08:00
xliu f4a2f13790 add arkTools.print
Signed-off-by: xliu <liuxin259@huawei.com>
2021-10-19 14:17:15 +08:00
openharmony_ci ebad65a675 !138 delete jsnativepointer
Merge pull request !138 from yingguofeng/nativepointer
2021-10-14 06:48:25 +00:00
yingguofeng@huawei.com 104878d175 Delete JSNativeObject
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I2f4a2e518497bf1f8a4724c63ef566cefed28271
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-10-09 15:28:48 +08:00
y00576111 62e14afd30 add Empty in jsnapi
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I918c1de2182fd936ec0e5d3dd8421f121970d4e1
2021-10-07 15:35:50 +08:00
dingwen 1f135b9878 cross language invoke bugfix
Signed-off-by: dingwen <dingwen6@huawei.com>
2021-09-28 14:48:51 +08:00
lukai ff103d88b4 trigger compress-gc by kill signal
Signed-off-by: lukai <lukai25@huawei.com>
2021-09-18 10:13:25 +08:00
zhangyukun 17c7fedf8c Ark adapt for ACE2.0
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>

Change-Id: I25881189fde9386fe1a73813ef0b1d1333d97a2d
2021-09-14 19:11:47 +08:00
linxiang cb84832288 Global handle releases resources when copying and moving assignments
Signed-off-by: linxiang <linxiang8@huawei.com>
2021-09-14 14:36:03 +08:00