lukai
d098277ade
Use weak reference instead of strong reference for ArkNativeObject::SetNativePointer
...
Use weak reference instead of strong reference for SetNativePointer.
And in period of gc updating reference, if the related js object is free, "Finalize" callback will be called to release c++ memory.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BJPG?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com >
Change-Id: Ibb04cf2efa0c7e1fe719eda5e95cb62938e661e0
2022-06-12 20:58:51 +08:00
openharmony_ci
f63f7b5b2e
!1454 Support transfer custom native object
...
Merge pull request !1454 from wangzhaoyong/master
2022-06-07 11:51:17 +00:00
wangzhaoyong
99688fd766
==-------------------------------------------==
...
Support transfer custom native object
1. add create object interface for napi
2. support serialize custom native object
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59GXI
==-------------------------------------------==
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com >
Change-Id: I8c033761f0503698e20241407db47bebb533ee43
2022-06-07 14:13:15 +08:00
yingguofeng@huawei.com
c0d7f5d528
Description:1、0x06 is judge to forward address.
...
2、Mem Pool capacity cause oom in multi worker
Resolution:1、Modify INVALID_OBJECT from 0x06 to 0x05
2、Auto adapter mem pool capacity according to physics memory
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AKVH?from=project-issue
Change-Id: If09a2cc792d27cd14a8e7ed88af192a78bab8356
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-06-06 10:14:54 +08:00
wengchangcheng
9ea13c48f9
Descriptor: debugger refactor [ part-1 ]
...
details:
1. delete unused method
2. modify file dir
3. add event channel for every domain
4. implement domain function in agent and delete js_backend
5. modify dispatchTable to static
6. modify debugger_api
7. modify js_debugger and add debugger_executor
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I58LOO
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
Change-Id: I7747bf3ad66e9a180d6179e45be5bcaf4161b29b
2022-06-01 23:00:13 +08:00
openharmony_ci
4de1fb7f48
!1433 Optimize mokuai application
...
Merge pull request !1433 from yingguofeng/master
2022-06-01 13:45:34 +00:00
openharmony_ci
c95c2f92a9
!1469 Enable EcmaModule
...
Merge pull request !1469 from fanshengli/ecmaModule
2022-06-01 10:54:03 +00:00
lifansheng
27ff46b4dc
issue:I5A4L3
...
Enable EcmaModule
Signed-off-by: lifansheng <lifansheng1@huawei.com >
Change-Id: I45039d0b80fe156aa2de86b15b141f0bcfd231b5
2022-06-01 16:48:53 +08:00
yingguofeng@huawei.com
73689999ed
Add jsnapi interface CopyableGlobal
...
issue:https://gitee.com/openharmony/arkui_ace_engine/pulls/2628
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
Change-Id: I28bcfa69f47d9b239d1cd37f8bbd34c82a0c8da9
2022-05-31 22:14:22 +08:00
lukai
1a5e085031
support memory parameters configuration
...
1. heap configuration including heapSize and space capaticity
2. other parameters such as gcThreadNum, longPauseTime.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59HYO?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com >
Change-Id: If3bfe7338ae0712809d9750fef3bbbb14017223f
2022-05-30 17:22:08 +08:00
g00416891
ff9ad604fe
optimize ExecuteNative frame
...
Change-Id: I2431fb150c160d8dc51d20a8dcc7ace74e09aa5b
Signed-off-by: g00416891 <guobingbing3@huawei.com >
2022-05-23 15:22:18 +08:00
xliu
2b281975ea
Js TypeArray optimization
...
Description
1. Add number check in CanonicalNumericIndexString;
2. modif GetProperty, SetProperty, DeleteProperty,
DefineOwnProperty,GetOwnProperty,HasProperty
3. Add FastPath in TypeArray.
4. Refactor TypeArray ArrayLength, ByteOffset, ByteLength
5. Add test for TypeArray.
Issue:
#I56S75:Js TypeArray optimization
Signed-off-by: xliu <liuxin259@huawei.com >
Change-Id: I68dd973269eb0bab284e7b97e0b8bf93e5aee1a2
2022-05-21 18:15:02 +08:00
g00416891
56cd9748b3
Remove data in EcmaRuntimeCallInfo
...
Signed-off-by: g00416891 <guobingbing3@huawei.com >
Change-Id: I007424009e84cd9d3b93b532ccddc432a196cc89
2022-05-18 14:22:50 +08:00
lichenshuai
8815ea02a4
Modify Asm TDD Test and Asm Inter Options
...
Run moduletest both in C interpreter and asm interpreter.
Change asm inter options to --asmInter=true/false.
Issue: #I57B6W
Signed-off-by: lichenshuai <lichenshuai@huawei.com >
Change-Id: I054c1dbd9edd389e25316c66d7a7311cd3be2920
2022-05-16 18:53:24 +08:00
openharmony_ci
1c06dd45fe
!1062 [js_runtime]support multi-instance in ark debugger
...
Merge pull request !1062 from huangfeijie/master
2022-05-05 13:41:29 +00:00
h00611971
24809b8239
support multi-instance in ark debugger
...
modify the interface in ark debugger
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53TEF
Signed-off-by: h00611971 <huangfeijie@huawei.com >
2022-05-05 11:31:18 +08:00
Yuqiang Xian
939df48407
Add missing comments in GC trigger logic.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I551ZU
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
2022-04-28 11:55:57 +08:00
Yuqiang Xian
57c0a4f055
Rename GC types and spaces to make it more consistent and clear.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
Change-Id: Ieeb356480fe6767ec6c2c53b6119e8c4b99d9ff9
2022-04-27 18:28:18 +08:00
yingguofeng@huawei.com
3379f227fd
Bugfix:Launcher application crash caused by large object updating null pointer
...
Add judgment null pointer
https: //gitee.com/openharmony/ark_js_runtime/issues/I54MFV?from=project-issue
Change-Id: If05f7dc1372d3d56acd59811cef1e51fb507bf94
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-04-26 09:09:59 +08:00
openharmony_ci
70ba7ae0fe
!1097 Fix JSNapi::NumberRef
...
Merge pull request !1097 from xliu/fix_substring
2022-04-25 02:22:58 +00:00
guobingbing
8747ca5081
remove prevSp in EcmaRuntimeCallInfo
...
Signed-off-by: guobingbing <guobingbing3@huawei.com >
Change-Id: I3a3517cc8712baa6eef76f85a9967dd95a085bbc
2022-04-24 19:04:24 +08:00
xliu
97c5a3186c
Fix JSNapi::NumberRef
...
Description
1. Finding key 1 in Map ([[1, "CC"]]) returns undefined.
2. Fix the problem in JSNapi::NumberRef, the complete constructor is not defined in this interface.
Issue:
#I541HH:Fix JSNapi::NumberRef
Signed-off-by: xliu <liuxin259@huawei.com >
Change-Id: I1679258b8d426b280390e144116fc4326e43c35a
2022-04-22 15:54:47 +08:00
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
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
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
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
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