Commit Graph

99 Commits

Author SHA1 Message Date
hunili 5450162817 Optimize variable-attribute-view problem about error,number,iterator show
1.Optimize Error show info
2.Optimize Number show info
3.Add Set/Map Iterator propertie
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59VDK

Signed-off-by: hunili <lihucheng1@huawei.com>
Change-Id: I8a8452d08b983e0bb50e87bab18e27dbe3f7968e
2022-06-30 09:06:12 +08:00
openharmony_ci 63ed734dd7 !1596 adjust pool size and related vm-memory according to physical memory
Merge pull request !1596 from lukai/master
2022-06-20 13:43:57 +00:00
openharmony_ci b01688101e !1576 Upload finally, any and allsettled codes of promise module
Merge pull request !1576 from 史凯/master
2022-06-20 03:09:24 +00:00
shikai-123 aa6490370f Upload promise code
Upload finally/any/allSettled module of promise code

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

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-06-20 09:24:17 +08:00
lukai 7b695c2ae5 adjust pool size and related vm-memory according to physical memory
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CCG0?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I46bf3a11ef509ece55b45edc92bb7cb68c100dfa
2022-06-18 14:38:43 +08:00
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
openharmony_ci 6f19d05485 !1498 JS栈打印支持native方法指针打印
Merge pull request !1498 from 堂宇/master
2022-06-07 09:34:30 +00:00
openharmony_ci 9d0b4b7e43 !1490 Invalid Object And mem map oom
Merge pull request !1490 from yingguofeng/master
2022-06-07 08:21:07 +00:00
openharmony_ci 11895598b5 !1435 Add smart gc interface
Merge pull request !1435 from xiongluo/smart_gc
2022-06-07 07:58:35 +00:00
openharmony_ci 69f27f5326 !1476 Added method to set sampling interval
Merge pull request !1476 from buzhuyu/master
2022-06-07 06:38:16 +00:00
Rtangyu 8ca37dcb29 JS stack printing supports native method pointer printing
Implement JS stack printing and support native method pointer printing

issue:https://gitee.com/openharmony/arkui_napi/issues/I5AOZC

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2022-06-07 14:33:17 +08:00
xiongluo 0a218f7bb7 add smart gc interface and change gc params
add interface to change gc params
close concurrent sweep and mark in background
limit the post task num

issue:https://gitee.com/openharmony/ability_ability_runtime/issues/I59N1V

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-07 14:33:15 +08: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
Riachel 557c07bb07 Descriptor: support heapprofiler domain
details:
1. add statsUpdate event
2. add lastObjectId event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AUJA

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-07 11:29:50 +08:00
xwx1135370 01c0660346 Added method to set sampling interval
add ProfileImpl.SetSamplingInterval
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I5A8ZK

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
Change-Id: I39912ff70935d947222e9aef0340063ab82b6717
2022-06-06 20:40:41 +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
buzhuyu 2fdb093ad0 Implementation of ProfilerImpl.Start and Stop
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I56YVM
Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-05-25 16:33:30 +08:00
openharmony_ci afdf5d0c2a !1256 CpuProfiler support return profileinfo
Merge pull request !1256 from 苏重威/master
2022-05-25 01:04:57 +00:00
scw 30b5aeb748 CpuProfiler support return profileinfo
Add start and stop API in cpuprofiler to return profileinfo

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-05-24 19:20:26 +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
openharmony_ci c85d107eee !1354 Change the range of dump interface
Merge pull request !1354 from xiongluo/heap_snapshot_interface2
2022-05-19 02:28:17 +00:00
xiongluo 8e463ec9c1 Change the range of dump interface
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-18 15:33:33 -10:00
openharmony_ci 813a3b2508 !1257 Add heap snapshot interface
Merge pull request !1257 from xiongluo/heap_snapshot_interface
2022-05-18 10:46:32 +00:00
xiongluo 5122d18dca Add interface to dump in faultlog and private param to hide string and number
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-17 22:42:10 -10: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
Riachel df34983177 add reportprogress
reportprogress value before StopHeapTracking or DumpHeapSnapshot
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57VAP

Signed-off-by: Riachel <caolili14@huawei.com>
2022-05-17 20:12:15 +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
dingwen 61b6782b65 Snapshot code optimization
Description:Snapshot code optimization include modify class name SnapShotSerialize to SnapShotHandler, delete some magic number, add interface to acquire global env and global const object index.
Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55CQ3

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I338028c5cfd4f992095f2bded2956e33f275bb1b
2022-05-07 09:23:06 +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
openharmony_ci 272cf6664d !1155 Refactor the GC related components - Part 4
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
Riachel 3cbf8878ac add heapprofiler domain
Signed-off-by: Riachel <caolili14@huawei.com>
2022-04-28 16:15:49 +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