Commit Graph

81 Commits

Author SHA1 Message Date
xiongluo 5122d18dca Add interface to dump in faultlog and private param to hide string and number
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-17 22:42:10 -10:00
wengchangcheng e7be0def3b Descriptor: fix debugger testcase fail
details: free hook after thread terminate
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I56588

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ifdf47d989ad4f49ffcb4ccb71ce910a5ef4996c8
2022-05-06 20:21:52 +08:00
wengchangcheng dcac52ac03 Descriptor:fix ut fail and modify debugger test
details:
1. fix icu path error
2. modify debugger unittest
3. modify gn target
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WGN

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1c924fd90297a5172ca5aabace36b6e250dc312b
2022-05-05 20:49:16 +08:00
openharmony_ci adad023652 !1198 update bytrace warehouse name for ark_js_runtime
Merge pull request !1198 from wenlong_12/master
2022-05-05 12:31:00 +00: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
h00611971 aa3faab847 clear extractors when destroy instances
1.remove the info concerned in the extractors when release JSPandafile.
2.clear the extractors when JSPandafile's destructor is called.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55CK0
Signed-off-by: h00611971 <huangfeijie@huawei.com>
2022-05-05 10:16:09 +08:00
wenlong12 edf2cd011d update bytrace warehouse name
Signed-off-by: wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wwx1097114@DESKTOP-2021EGU.localdomain>
2022-05-05 10:05:13 +08:00
openharmony_ci 4bcfb3a72c !1179 disable unstable testcase
Merge pull request !1179 from changcheng/fix_ut_error
2022-04-28 23:36:19 +00:00
wengchangcheng ed785a039e Descriptor: disable unstable testcase
details: disable debugger single step test
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I559CM

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5913f96c782211ff93b26cf1259a4d96e93bb801
2022-04-28 23:13:43 +08:00
wengchangcheng e8144ffd5a Descriptor: modify performance of debugger
details: skip check -1 when there's no step event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I558VZ

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie65d521cbc79ddd36d05c263dd5ccfd5d82e0b5c
2022-04-28 21:12:37 +08:00
openharmony_ci e5c716767e !1160 Avoid JSBackend's pause caused by HandleBreakPoint(...) function right after its pause caused by HandleStep() function in one ByteCodePcChanged(...) function
Merge pull request !1160 from Gongyuhang/master
2022-04-28 09:48:29 +00:00
openharmony_ci 36d4abd9db !1090 MatchWithOffset 接口拆成两个接口
Merge pull request !1090 from zhuguanghui123/master
2022-04-28 07:26:02 +00:00
Gongyuhang 7d3a405863 Change the type of the returned value from "void" to "bool" for
JSPtHooks::SingleStep(...) function, make it return true only when it
has actually invoked the backend_'s NotifyPaused(...) function.
And let the ByteCodePcChanged(...) function pass over the
HandleBreakPoint(...) function when the HandleStep(...) function returns
 true.

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

Changes:
    modified:   ecmascript/tooling/agent/js_backend.cpp
    modified:   ecmascript/tooling/agent/js_backend.h
    modified:   ecmascript/tooling/agent/js_pt_hooks.cpp
    modified:   ecmascript/tooling/agent/js_pt_hooks.h
    modified:   ecmascript/tooling/interface/js_debug_interface.h
    modified:   ecmascript/tooling/interface/js_debugger.cpp
    modified:   ecmascript/tooling/test/utils/testcases/js_single_step_test.h
    modified:   ecmascript/tooling/test/utils/test_hooks.h

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-04-28 15:20:07 +08:00
zhuguanghui123 495985a93b Funtions MatchWithOffset and callbackFunc split to two functions.Search separately by row and column.
variable extracted: methodId,offset

  Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I53JD6?from=project-issue

Signed-off-by: zhuguanghui123 <zhuguanghui9@huawei.com>
Change-Id: I4951f10f17fe2af756b336e56e61033ea7fab689
2022-04-28 13:30:51 +08:00
buzhuyu 49a200d419 delete part of debugger_types_test
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I550ZF

Signed-off-by: buzhuyu <buzhuyu@huawei.com>
2022-04-27 18:01:29 +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 de8dd32c29 !1093 Delete useless code dependencies.
Merge pull request !1093 from yingguofeng/mmap
2022-04-24 16:26:56 +00:00
openharmony_ci 1e7209b55a !1098 debugger refactor
Merge pull request !1098 from Gymee/perf_tune
2022-04-24 11:02:16 +00:00
yingguofeng@huawei.com 6c5808fc28 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

https://gitee.com/openharmony/ark_js_runtime/issues/I541H4?from=project-issue

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00
Gymee 909b9081a9 debugger refactor
Change-Id: Idff2f871926a3893b5bd962f13b4a10c39f9f6d9
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-04-24 11:35:13 +08: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 9228e821e7 !1100 add host debugger module test
Merge pull request !1100 from changcheng/debugger_host_testcase
2022-04-22 13:57:18 +00:00
openharmony_ci 7350a5fc32 !1056 add Runtime.getHeapUsage
Merge pull request !1056 from wwx1083752/master
2022-04-22 13:41:45 +00:00
wengchangcheng 3ae043afa5 Descriptor: enable testcase with ecmavm instead of runtime
details:
1. add debugger module testcase in host
2. fix debugger crash when throw exception in interpreter
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53WBO

Change-Id: Ia7d878b0b81c011d940a9187d39c854f6a592e6d
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-04-22 20:42:16 +08:00
wwx1083752 365bbd2797 add getHeapusage
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-21 20:17:38 +08:00
lifansheng a725676a6c Runtime architecture adjustment
Description
  Cut out most of the initialization logic in Runtime::Create and disconnect the
  inheritance relationship of most classes such as JSThread.
Issue:
  #I53418: Runtime architecture adjustment

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: Ib9c1a40354f77d32e515e23334e7f4b4a4fa3259
2022-04-21 14:37:31 +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
openharmony_ci 49ae306a0f !999 方舟独立编译构建提取source_set
Merge pull request !999 from 宋宏昊/master
2022-04-14 05:30:56 +00: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
songhao 73b18f1143 source_set
Signed-off-by: songhao <songhonghao@huawei.com>
2022-04-13 10:56:16 +08:00
Riachel 6227562039 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 18:30:15 +08:00
Riachel 3d04ead972 codex
Signed-off-by: wwx1083752 <wubinbin33@huawei.com>
2022-04-12 17:43:06 +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
wengchangcheng 7c0ca961f5 refactor debugger extractor
1. rename js_pt_extractor
2. move debug_info_extractor to js_runtime
3. use map to store MethodDebug info and LocalVariable info
4. refactor ScopeInfo extractor

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Id64d718aa9360afd53398ee729714c859bd61768
2022-03-30 17:49:11 +08:00
wengchangcheng 4f169b31a5 add -Werror -Wextra gn flag for 'compiler'
1. ignore llvm warning
2. fix warning of compiler module

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I09774e431743a26ea366ed28e3276ff027ae0d31
2022-03-25 15:31:59 +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
openharmony_ci 2215456260 !835 Clean Code For CodeHub Issues
Merge pull request !835 from wanyanglan/master
2022-03-22 04:42:20 +00:00