Commit Graph

39 Commits

Author SHA1 Message Date
hjzhangcm a760638caa fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-06 17:52:55 +08:00
openharmony_ci cf61951f4a !1207 add heapprofiler domain event
Merge pull request !1207 from Riachel/master
2022-05-05 10:52:27 +00:00
Riachel e2b4ee1f5b add heapprofiler domain event
1.add heapStatsUpdate
2.add lastSeenObjectId
3.add reportHeapSnapshotProgress

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

Signed-off-by: Riachel <caolili14@huawei.com>
2022-05-05 16:09:58 +08:00
zhaozhibo 4b279c9d79 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-30 10:31:33 +08:00
buzhuyu 2912e2cfde change profiler types
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I54J5Q

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-04-26 12:09:16 +08:00
openharmony_ci 3f031e486a !1118 fix codex waring【part 2】
Merge pull request !1118 from zhaozhibo/master
2022-04-25 10:09:31 +00:00
zhaozhibo e0ad13d0c4 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +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
openharmony_ci 7350a5fc32 !1056 add Runtime.getHeapUsage
Merge pull request !1056 from wwx1083752/master
2022-04-22 13:41:45 +00:00
openharmony_ci 92c288298c !1092 add heapprofiler domain
Merge pull request !1092 from wwx1083752/master
2022-04-22 13:40:13 +00: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
Riachel 03262e3bda add heapprofiler interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-22 10:42:00 +08:00
Gymee 00ff0b2c55 support bigint RemoteObject return to IDE
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I9426613c27a82641552bf3c146073a0e60fb911b
2022-04-21 21:30:43 +08:00
wwx1083752 365bbd2797 add getHeapusage
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-21 20:17:38 +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 8581674532 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 14:15:40 +08:00
wwx1083752 b9cf1735b7 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-14 04:24:59 +00:00
Riachel d16223a490 add HeapProfiler Interface
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-14 12:01:14 +08:00
wubinbin 230649c07b add profiler
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I52IDT

Signed-off-by: wubinbin <wubinbin33@huawei.com>
2022-04-13 21:00:28 +08:00
Riachel 5812cb20e1 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 17:15:34 +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 ee9b8888e5 add types test
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 13:00:03 +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
wengchangcheng 4804cd80d3 add Wextra and Werror in gn args
1. add -Wextra and -Werror to check code format error
2. modify all compiler error

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
openharmony_ci 9614384797 !815 Fix code review from issue
Merge pull request !815 from songzhengchao/reviewcode0321
2022-03-22 08:36:13 +00:00
songzhengchao 718b37beb0 Fix code review from issue
bool variable shoule assign value;
code delete reduant ";" and " ";
class construct function signal parameter shoule add explicit;
function declare return void when caller don't need return value;
and etc

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4YXYH?from=project-issue
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I59e26d49f94e98a4cced7a5852df3029a5544d47
2022-03-22 14:25:18 +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
huangfeijie 2782411111 bugfix in attach
Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2021-12-23 10:30:13 +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