30 Commits

Author SHA1 Message Date
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
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
wengchangcheng 372102031a Descriptor: fix CString mismatch
details: use std::string in error helper
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5EURQ

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ib7f4609af996f1f374a70647a0b56a60f6dba020
2022-06-30 14:09:44 +08:00
shikai-123 aa6490370f Upload promise code
Upload finally/any/allSettled module of promise code

issues: https://gitee.com/openharmony/ark_js_runtime/issues/I5BFGU

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-06-20 09:24:17 +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
Rtangyu 8ca37dcb29 JS stack printing supports native method pointer printing
Implement JS stack printing and support native method pointer printing

issue:https://gitee.com/openharmony/arkui_napi/issues/I5AOZC

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2022-06-07 14:33:17 +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
scw 8fb0c173b3 fix ark error stack message
add sourceCode and pos tag in ark error stack message

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-05-09 11:58:42 +08:00
guobingbing 129ebdbf25 refactor class FrameHandler
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I9f3ff0c04d34a31a34f21da637689eb61d4166f1
2022-05-04 10:36:44 +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
xiongluo 771d51b546 refactor jsMethod
1. Move necessary fileds in jsMethod
2. Make jsMethod inherit aligned struct
3. Change some function names for easy reading

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-20 23:17:00 -10: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
xliu 4fb9fcc443 ObjectFactory New Ecmastring Rectification
Description
  1. There are many kinds of interfaces to construct ecmastring from objectfactory
     in the virtual machine, and the name is not clear, so it is complex to use;
  2. Some of the unchecked interfaces are prone to errors during use. If there is
     no compression where compression is required, unpredictable errors will occur.
Issue:
  #I4ZL7X: ObjectFactory New Ecmastring Rectification

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I856f4e2e1df62823d928d738fa35affa97dbd3ed
2022-04-09 10:34:11 +08:00
guobingbing 589234007e FFI optimization for call params
Signed-off-by: guobingbing <guobingbing3@huawei.com>
Change-Id: I61b820e91b85364e4f41d35ca0172ad059a1b916
2022-04-07 21:13:46 +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 fbf3c4a035 share constpool, and modify some code refactor
1. cache constpool in ecma vm
2. use JSPandaFile instead of panda_file::File
3. make GenerateProgram as a static function
4. add a singleton of JSPandaFileManager::GetInstance()

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ic7ccd66764c3a020e575d4046e1792475d45be6b
2022-03-21 21:46:25 +08:00
wengchangcheng 481cef50ea modify exception stack message
https://gitee.com/openharmony/ace_ace_engine/issues/I4XKDL

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6569cba9cdf0312b88406cd7654a9b71ba015672
2022-03-12 22:57:39 +08:00
shikai-123 a0f71b919a The function is not complete. Withdraw the code first
Due to the problem of including the third-party header file, the
function is temporarily cancelled, and the library can be loaded after
debugging

https://gitee.com/openharmony/ark_js_runtime/issues/I4WONE

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-07 21:58:19 +08:00
shikai-123 19abb2f5ef Modify and supplement the stack column printing code of DFX module
上传dfx模块代码,增加native栈栈列打印功能

https://gitee.com/openharmony/ark_js_runtime/issues/I4VB5Z

Signed-off-by: shikai-123 <shikai25@huawei.com>
2022-03-06 11:10:56 +08:00
h00611971 2a6826715f Enable column number in ark
Signed-off-by: h00611971 <huangfeijie@huawei.com>
2022-01-24 12:49:31 +08:00
shikai 6ed37cba7c Signed-off-by: shikai <shikai25@huawei.com>
modify
2022-01-20 22:59:01 +08:00
songzhengchao 2f03b1e898 Merge remote-tracking branch 'wzf/master'
Signed-off-by: songzhengchao <surpassgoodchao@qq.com>
Change-Id: I78f5da7fa16e75f70068508d04bd65c48afa798d
2022-01-15 16:18:18 +08:00
shikai 031856b56e add heapProfiler and getBackTrace napi
Signed-off-by: shikai <shikai25@huawei.com>
2022-01-14 18:11:09 +08:00
wuzhefeng 5720a01a3a Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: Ic990c5f11caeb3075033719a13e759baaf6dfefb
2022-01-13 00:26:00 -08:00
getingke bc69122046 increase base class FrameHandler for iterator stack frame
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I5643f176c169a2d3a754b6ead66698a0a8e33351
2021-10-28 16:28:40 +08:00
surpassgoodchao d15fafc5ac fastboot review
Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-12 12:26:02 +08:00
wengchangcheng 63197a17a6 fix stack backtracking and param name
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2021-09-14 14:54:48 +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