215 Commits

Author SHA1 Message Date
openharmony_ci 85ffbea88f !1740 heapprofiler support traceAllocation
Merge pull request !1740 from Riachel/master
2022-07-09 15:17:20 +00:00
wengchangcheng 439ff56091 delete some unused log
1. add VERBOSE level log, default not print
2. modify some DEBUGE level log to VERBOSE

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1fba38346d55fb633c7a0ec018848653137d4009
2022-07-09 18:43:58 +08:00
Riachel 7ad57f2544 Descriptor: heapprofiler support traceAllocation
details:
heapprofiler support traceAllocation
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5FOAE

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-08 16:42:46 +08:00
openharmony_ci f3b6f7fb02 !1744 Fix CodeCheck
Merge pull request !1744 from guobingbing3/optimize
2022-07-07 11:20:43 +00:00
guobingbing de5847146a Fix CodeCheck
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I23358a6b12584fe4e3a583d0fad5e7f81875e977
2022-07-07 18:43:05 +08:00
openharmony_ci a77ae133ba !1739 支持context传递
Merge pull request !1739 from wangzhaoyong/master
2022-07-07 07:56:29 +00:00
wangzhaoyong 857f10b15b support post context
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FNMI

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I18ce8cc5b81a8e3e2c2398bb4934732a6e18f676
2022-07-07 11:52:34 +08:00
wengchangcheng cd90e396a7 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 602070087f !1655 fix debugger signal bugs
Merge pull request !1655 from Gymee/debugger_bugfix_master
2022-07-06 01:35:46 +00:00
openharmony_ci 0008fd65d2 !1594 New EcmaRuntimeCallInfo in stack pointer
Merge pull request !1594 from guobingbing3/master
2022-07-05 09:39:38 +00:00
openharmony_ci 4841cd02a2 !1707 NativeBindingObject adapt to context
Merge pull request !1707 from wangzhaoyong/master
2022-07-05 08:07:02 +00:00
g00416891 f11810349e New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
Gymee 789c97372c fix debugger signal bugs
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I42ca0cc591a7b0697d89b02081152fd763251d2a
2022-07-05 11:05:19 +08:00
wangzhaoyong 179cfb370a NativeBindingObj adapt to context
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E81V

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: Ib60af2299054908f4f0df2dc886f77c30814db5c
2022-07-05 00:21:06 +08:00
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
yingguofeng@huawei.com fbb243e865 Maybe Handle Leak
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E0UV?from=project-issue
Change-Id: Ic3ab6d64ef8c314206e80f2023539be65de94383
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-24 17:50:07 +08:00
hjzhangcm 53f1e94929 Modify function template issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5DEVS
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
Change-Id: I39ec6bf26f28c8643d670b4d7d6bfdccf9800afb
2022-06-21 18:39:41 +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
wengchangcheng 6468341c72 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
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