Commit Graph

193 Commits

Author SHA1 Message Date
openharmony_ci 80173b7bfb !1549 Use weak reference instead of strong reference for SetNativePointer
Merge pull request !1549 from lukai/master
2022-06-14 08:46:36 +00:00
wangzhaoyong d1a23c427c ==-------------------------------------------==
补充NativeObject的UT用例,以及对序列化NativeObject的流程进行优化
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BPWC
==-------------------------------------------==

Signed-off-by: wangzhaoyong <970691906@qq.com>
Change-Id: Ia9d4686932f55573721d5a69da8ab31bef214e79
2022-06-13 16:36:25 +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
wengchangcheng c2e20b03d5 Descriptor: debugger refactor of independent js_runtime [ part-1 ]
details: using stl instead of js_runtime container ans string
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AYKS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I32b4809a4bbd759a562326a59e0cfb0e8e728297
2022-06-07 17:47:53 +08: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
openharmony_ci 39130320ac !1385 debugger refactor [ part-1 ]
Merge pull request !1385 from changcheng/debugger_refactor
2022-06-01 15:34:58 +00:00
openharmony_ci 7e3af05fb1 !1442 Add WeakRef and FinalizationRegistry interfaces
Merge pull request !1442 from 小马奔腾/master
2022-06-01 15:07:08 +00: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
xdmal a4062881d1 Add WeakRef and FinalizationRegistry interfaces
Add WeakRef and FinalizationRegistry interfaces

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

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-06-01 20:59:20 +08: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
openharmony_ci 06d5ae3c45 !1427 Implementation of ProfilerImpl.Start and ProfilerImpl.Stop
Merge pull request !1427 from buzhuyu/master
2022-05-25 10:26:42 +00: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 f5596f01bd !1405 fix mem leak problem from jsmethod
Merge pull request !1405 from xiongluo/mem_leak_from_method
2022-05-25 07:20:21 +00:00
xiongluo 2c14680bc6 Fix the mem leak from js method
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-25 10:53:36 +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
openharmony_ci 8befbb79f0 !1392 optimize ExecuteNative frame
Merge pull request !1392 from guobingbing/master
2022-05-23 09:30:58 +00:00
g00416891 ff9ad604fe optimize ExecuteNative frame
Change-Id: I2431fb150c160d8dc51d20a8dcc7ace74e09aa5b
Signed-off-by: g00416891 <guobingbing3@huawei.com>
2022-05-23 15:22:18 +08:00
linxiang 56d94b906b 1. huge space region reclaim need after weakReference update.
2. thread_local variable should move to ecma_vm instance.

Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: Ic22a392c3f385d123880e449533532feb3b135ec
2022-05-23 14:39:33 +08:00
openharmony_ci bf2ba4ed33 !1253 Js TypeArray optimization
Merge pull request !1253 from xliu/test
2022-05-22 02:33:14 +00:00
openharmony_ci 2a9c31a7c5 !1381 modify stream and add switch of enable_dump_in_faultlog
Merge pull request !1381 from changcheng/modify_stream
2022-05-21 11:45:21 +00: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
wengchangcheng a4f9603e75 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
wupengyong 7c650ba015 reason:performance optimization
description:optimize taggedvalue encode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55ZVP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I747a60f5ea7348d3b0cfc041a3b010c52b1517c0
2022-05-21 09:33:44 +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
openharmony_ci e41e922206 !1300 Fix munmap bug on windows platform
Merge pull request !1300 from dingwen/master
2022-05-17 02:07:42 +00:00
openharmony_ci cf953c86e4 !1322 heapprofiler refactor [part-1]
Merge pull request !1322 from changcheng/heap_profiler_refactor
2022-05-16 15:22:52 +00:00
openharmony_ci 500cba7c1a !1307 Modify Asm TDD Test and Asm Inter Options
Merge pull request !1307 from 李晨帅/master
2022-05-16 12:37:47 +00:00
wengchangcheng fe09e292ef Descriptor: heapprofiler refactor
details:
1. store vm in heap profiler
2. make DumpHeapSnapshot not static
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57OBY

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I436b17cb96198160437fbe70764181ab080d7c51
2022-05-16 20:28:42 +08:00
Riachel 25aa743438 modify StopHeapTracking Destroy
set heapProfile_ to nullptr after free
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I57OVY

Signed-off-by: Riachel <caolili14@huawei.com>
2022-05-16 19:15:18 +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