Commit Graph

26 Commits

Author SHA1 Message Date
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 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
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
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
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 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
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
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
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 d94412392b !1493 fix codex warning
Merge pull request !1493 from hjzhangcm/master
2022-06-06 04:15:17 +00:00
hjzhangcm 6741c67039 describe:fix codex warning
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5AM6L

Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-06 11:27:19 +08:00
wengchangcheng a4c2a56a0d Descriptor: debugger refactor [ part-2 ]
details:
1. modify unique ptr to const reference
2. delete some unused method
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59PAK

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I9432b021b2257932d943a832e7401e25d5a1c37d
2022-06-04 21:38:46 +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
wengchangcheng 568ec4cbf9 Descriptor: support disable debugger and runtime domain
details: add disable method for debugger and runtime
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59QMX

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Iace48b02a2c5fc9b15c1fed94a67e95a4e857933
2022-05-28 18:43:32 +08:00
wwx1083752 521c800b32 add getHeapUsage
issue:https://gitee.com/wwx1083752/ark_js_runtime/issues/I53ZUK

Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 17:49:52 +08:00
wwx1083752 365bbd2797 add getHeapusage
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-21 20:17:38 +08:00
Gymee 83048efbf1 support watch expression and conditional breakpoint
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I794a5ee770f251e6fea4de5058575519ff0490e6
2022-04-18 20:04:33 +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
wengchangcheng 0b4981525d refactor stl container
1. using runtime container instead of stl container
2. change debugger line amd column type to int32_t

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0eb4651f17c6f6894f11de1ba904bcbe83a57db7
2022-04-06 16:05:22 +08:00
Gongyuhang 5ad84cd134 Add CallFunctionOn to avoid printing "Collecting data ..." when
JSBackend invoke GetProperties Function for "__proto__" and other items.

Changes:
modified:   ecmascript/tooling/agent/js_backend.cpp
modified:   ecmascript/tooling/agent/js_backend.h
modified:   ecmascript/tooling/agent/runtime_impl.cpp
modified:   ecmascript/tooling/agent/runtime_impl.h
modified:   ecmascript/tooling/base/pt_params.cpp
modified:   ecmascript/tooling/base/pt_params.h
modified:   ecmascript/tooling/base/pt_returns.cpp
modified:   ecmascript/tooling/base/pt_returns.h
modified:   ecmascript/tooling/base/pt_types.cpp
modified:   ecmascript/tooling/base/pt_types.h

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-03-25 19:23:52 +08:00
huangfeijie 2782411111 bugfix in attach
Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2021-12-23 10:30:13 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
wengchangcheng 8c603a3b66 fix debugger crash
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-09-30 16:28:25 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00