259 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
wengchangcheng cf1abdca4e Descriptor: decrease compiler time
details use dynamic link of libark_ecma_debugger.so & libjsdebugtest.so
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5FYDR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic0f7c21d0e296dbcb28753fe038f10fa4d4c8f37
2022-07-07 20:20:23 +08:00
hjzhangcm 976b9c38c7 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +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
Gymee 789c97372c fix debugger signal bugs
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I42ca0cc591a7b0697d89b02081152fd763251d2a
2022-07-05 11:05:19 +08:00
hjzhangcm db8cc3a082 Modify static alarm
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-04 17:20:40 +08:00
openharmony_ci fdf56094d6 !1716 Optimize variable-attribute-view problem about object,string show
Merge pull request !1716 from wwx1083752/master
2022-07-04 03:00:32 +00:00
wengchangcheng 54a5e7de39 Descriptor: add debugger test
details: add step into test
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5F3A8

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ife8d2421528134b7d259bebce60be786a9ff4876
2022-07-02 11:20:47 +08:00
liang-kaixuande 2b87853073 Optimize variable-attribute-view problem about object/string show
1.Optimize variable-attribute-view problem about object show
2.Optimize variable-attribute-view problem about string show

issue:https://gitee.com/liang-kaixuande/ark_js_runtime/issues/I5EZJI

Signed-off-by: liang-kaixuande <wubinbin33@huawei.com>
2022-07-01 14:19:32 +08:00
wengchangcheng 072f027677 Descriptor: add nullptr check
details: add nullptr check in Returns
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5EYMB

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic5b15f0c37b1ff1db71d713ba405ee3c50dce942
2022-07-01 09:21:43 +08:00
openharmony_ci 2d709d2b8f !1663 Increase tracing_impl domain
Merge pull request !1663 from buzhuyu/master
2022-06-30 12:23:16 +00:00
openharmony_ci 49bc0a8c1f !1462 :Optimize variable-attribute-view problem about error,number,iterator show
Merge pull request !1462 from hunili/master
2022-06-30 11:56:26 +00:00
openharmony_ci 446b5ac238 !1699 fix some bugs for heapstatsupdate event
Merge pull request !1699 from Riachel/master
2022-06-30 11:55:08 +00:00
openharmony_ci 81dee5abc8 !1672 fix pending job hitrace
Merge pull request !1672 from 苏重威/master
2022-06-30 08:08:38 +00:00
buzhuyu fd7c9c54ba Increase tracing_impl domain
details:
1.Increase tracing_impl.cpp and tracing_impl.h
2.Add types,returns,params and events related to tracing
3.Add UT related to tracing
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5DZUR

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-30 11:28:54 +08:00
Riachel 19638b87af Descriptor: fix some bugs for heapstatsupdate event
details:
change timestamp
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5ETMX

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-30 11:10:16 +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
suchongwei 89d1553501 fix pending job hitrace
add hitrace point for pending job enque job and execute job

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

Signed-off-by: suchongwei <suchongwei@huawei.com>
2022-06-29 18:44:27 +08:00
huangfeijie a5f34993ee fix incorrect column number when exceptions happen
add SAVE_PC() to avoid incorrect offset
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5E0HV

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2022-06-27 22:13:21 +08:00
openharmony_ci 29edac057a !1671 fix IntBuildTaggedWithNoGC
Merge pull request !1671 from wpy111/master

Change-Id: I6c362f16a81a1411623dbdc06768f05e4a9f3ad5
2022-06-27 13:23:57 +08:00
openharmony_ci 4c9072bd26 !1546 modify the interface in debugger to adapt the HeapProfile
Merge pull request !1546 from huangfeijie/master
2022-06-23 06:20:36 +00:00
openharmony_ci 567314c82f !1619 Increase ToJson in debugger_returns
Merge pull request !1619 from buzhuyu/master
2022-06-21 04:00:50 +00:00
openharmony_ci add005523f !1615 modify debug event test
Merge pull request !1615 from Riachel/master
2022-06-21 03:06:32 +00:00
buzhuyu f392eefad7 Increase ToJson in debugger_returns
Details:
1.delete ToObject in debugger
2.increase ToJson in debugger
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CUIY

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-20 09:28:19 +08:00
Riachel 4a1c835985 Descriptor: modify debug event test
details:
change ToObject to ToJson
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CRWF

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-20 09:04:03 +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
huangfeijie 52dbe8ba42 modify the SendReply interface in debugger
1.add the vm so that it can get the inspector in socket
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BG4Z
Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2022-06-17 09:12:42 +08:00
wengchangcheng d1b757d951 Descriptor: debugger refactor of independent js_runtime [ part-5 ]
details: enable PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CHWX

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I143952f7f0a44f235067b8d03cba33d02e771ece
2022-06-16 20:28:02 +08:00
wengchangcheng 1cc4e3a60e Descriptor: debugger refactor of independent js_runtime [ part-4 ]
details:
1. Add PtBaseReturns::ToJson
2. Add PtBaseEvents::ToJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C3FS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic8028d79f62b91724f22c63e8062d57367b5f27e
2022-06-15 22:24:45 +08:00
wengchangcheng 73519fc545 Descriptor: debugger refactor of independent js_runtime [ part-3 ]
details: modify Params::Create to cJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BUI2

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I7a89ef24a0c8e999fc76429cda34f5f0e05f4946
2022-06-15 21:49:34 +08:00
openharmony_ci 76ce8df4db !1566 Modify the type in Create and ToJson
Merge pull request !1566 from buzhuyu/master
2022-06-15 02:51:02 +00:00
buzhuyu 1f70de7e56 Modify the type in Create and ToJson
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I5BQOT

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-06-14 19:39:39 +08:00
openharmony_ci 701e96e826 !1585 fix codex warning
Merge pull request !1585 from hjzhangcm/master
2022-06-14 04:25:11 +00:00
openharmony_ci 3fd49e5e61 !1567 modify interface
Merge pull request !1567 from Riachel/master
2022-06-14 03:49:49 +00:00
hjzhangcm bd009036d8 fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C3XK
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-14 10:38:06 +08:00
Riachel 3b89611dd1 Descriptor: modify interface
details:
1.modify Create interface
2.add Tojson
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C2KW

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-14 09:34:55 +08:00
luochuhao d8e482f756 Modify enable logic of certain runtime options.
Change condtion for File execution branch to whether file is AOT compiled or not.

Fix bug of setting bc debug handler entry while loading stub file.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBFH
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I5b6d47a1587631849f6c1e746473cb14b1d727a8
2022-06-13 12:15:03 +08:00
wengchangcheng 4b64683dcf Descriptor: support update value of old eval function
details:
update framehandler before setvalue
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BSY5

Change-Id: Ib6c576e695f3ddcd4387d01e5f6368641bb0d526
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-06-11 12:00:19 +08:00
openharmony_ci 8bfcc6c08e !1553 modify get child item from json
Merge pull request !1553 from changcheng/modify_json
2022-06-09 14:22:10 +00:00
wengchangcheng f4db7283b6 Descriptor: modify get child item from json
details:
add Result to judge type error or not exist
delete unused interface
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BL2A

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2beb7c730121900286ce0485902aa3ca620e3cd8
2022-06-09 21:40:58 +08:00
openharmony_ci 31e7e2ecf3 !1532 fix codex warning
Merge pull request !1532 from hjzhangcm/master
2022-06-09 07:50:01 +00:00
wengchangcheng 1ee5638cf9 Descriptor: modify unique_ptr and add ASSERT
details:
1. modify unique_ptr t oconst &
2. modify unit32_t to int32_t
3. add ASSERT before get optional value
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BHDS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie1938acfd0f30389892933adf224af1940143805
2022-06-09 12:23:48 +08:00
openharmony_ci e013c8247a !1533 modify for some bugs
Merge pull request !1533 from Riachel/master
2022-06-09 02:06:23 +00:00
wengchangcheng a9d67a0b2a Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: add ToJson sample by PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Icb84d3c163a662230730f4e27362f3ea23b80e1c
2022-06-08 21:42:06 +08:00
wengchangcheng bb50d4aefe Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: add Create function by PtJson
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2870f1d377bd6b4adc0d12d33cba84d53af7f076
2022-06-08 21:41:50 +08:00
wengchangcheng 25405f84a3 Descriptor: debugger refactor of independent js_runtime [ part-2 ]
details: use pt json to parse message
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBPM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I3bdc5475f8d500754d0b58af28a17775fbcf2e7c
2022-06-08 21:41:34 +08:00
Riachel 3545d16472 Descriptor: modify for some bugs
details:
1. delete trackAllocations_
2. modify size_t to int64
3. modify IntegerRef to NumberRef
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BCAD

Signed-off-by: Riachel <caolili14@huawei.com>
2022-06-08 17:48:49 +08:00