Commit Graph

33 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
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
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
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
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 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
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
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
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
hjzhangcm 08f5895212 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-23 16:05:15 +08:00
hjzhangcm 80a36dff6b fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
hjzhangcm a760638caa fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
zhaozhibo 4b279c9d79 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +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
wubinbin 2146484c8c add profiler
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I53W91

Signed-off-by: wubinbin <wubinbin33@huawei.com>
2022-04-24 10:10:47 +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
wwx1083752 99f8a0f659 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-19 02:59:17 +00: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
Riachel d16223a490 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 12:01:14 +08:00
Riachel 7fffdd00f4 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 17:06:27 +08:00
Riachel 841f10ce17 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 16:12:46 +08:00
Riachel b96f4ff09b modify CodeDEX
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 14:54:56 +08:00
Riachel 6b24845290 add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-08 17:07:03 +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
xujie 479b7c3785 Clean Code For CodeHub Issues #96-#123 And #250-#264
According to the problems pointed out by the issuer and the
specifications compiled by Huawei, modify the non-compliant
parts of jsruntime.

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4YLCQ

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Iceb771dfd9f3aa9017205068fc50ab1a63aae08b
2022-03-21 17:09:19 +08:00
wengchangcheng b5af7ac677 support column debugger
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-26 10:40:48 +08:00
wengchangcheng 2bfd68c01a modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +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