191 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
hjzhangcm 976b9c38c7 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +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
linxiang f916cc9dd8 Improve BuildEcmaStackTrace perf
pref BuildEcmaStackTrace from 5ms to 0.25ms

Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I90dd706371374e6211506c7e1170f06f17eba24f
2022-07-06 17:49:18 +08:00
openharmony_ci a1380727ce !1704 Rectify coding specification problems
Merge pull request !1704 from zhaozhibo/master
2022-07-05 10:07:20 +00:00
g00416891 f11810349e New EcmaRuntimeCallInfo in stack pointer
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I466a4107e6e073ffecea12e6986c112731d2d3bf
2022-07-05 14:54:43 +08:00
zhaozhibo 2401947648 Rectify coding specification problems from codecheck panel
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-07-01 17:34:26 +08:00
openharmony_ci 46c1ad9bb1 !1703 use std::string in error_helper
Merge pull request !1703 from changcheng/fix_bug
2022-06-30 11:55:36 +00: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
openharmony_ci 29f2c9a309 !1636 string.replaceAll and regexp groupname
Merge pull request !1636 from zhangyouyou/master
2022-06-29 08:33:54 +00:00
zhangyouyou 2f0c89fffe https://gitee.com/openharmony/ark_js_runtime/issues/I5DDMT
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-29 11:31:55 +08:00
yingguofeng@huawei.com 86432994a8 It need to earse object from TaggedQueue when pop
Description:Memory leaked in window's Testing Application

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DF7W?from=project-issue
Change-Id: I8d24df9152688512e8d479cf7a91bab205c409c8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-22 09:36:41 +08:00
suchongwei a69e71059a JSON Stringify support BigInt
add bigint tostring when Stringify a bigint property

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

Signed-off-by: suchongwei <suchongwei@huawei.com>
2022-06-21 14:08:03 +08:00
openharmony_ci b01688101e !1576 Upload finally, any and allsettled codes of promise module
Merge pull request !1576 from 史凯/master
2022-06-20 03:09:24 +00:00
openharmony_ci 0903c2d7ad !1620 fix codex warning
Merge pull request !1620 from hjzhangcm/master
2022-06-20 01:56:15 +00: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 6468341c72 Descriptor: delete some internal unused code
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
hjzhangcm f6fd5648ae fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CV8H
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-17 17:13:44 +08:00
dingwen f55d1a781f Snapshot support reusing global const and builtins object
Description:Before serializing, cache all global const and builtins objects in a map. When serialzing object taggged field, firstly searching the field object in the map, if exist, record the index. Then when deserializing, we can quickly find the object by index.
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I5CA56

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I935cc445d50a1e5854b88a7d01445aaa87da2cbc
2022-06-17 12:33:26 +08:00
jiangkai43 e24ac651a1 Fix the problem of mixing unsigned and signed numbers
Description:use the same number type

Issues:https://gitee.com/openharmony/ark_js_runtime/issues/I5C30M:wq

Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
2022-06-13 21:20:08 +08:00
openharmony_ci cef9704be0 !1415 Refactor Heap Region class
Merge pull request !1415 from klooer/master
2022-06-13 07:09:57 +00:00
changjiaxing 0ee3cdb252 Solve the problem that bigint division calculation will run in an infinite loop on rk3568
issues: https://gitee.com/chang-jiaxing/ark_js_runtime/issues/I5BXT2

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-06-13 11:45:50 +08:00
Yuqiang Xian 9a35d504b2 Merge remote-tracking branch 'oh/master' 2022-06-08 11:21:28 +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
openharmony_ci a888e67c07 !1484 String Trim Optimization
Merge pull request !1484 from xliu/string_optimize
2022-06-07 04:09:22 +00:00
xliu 35b22ca998 [Optimization] String Trim
Description
  1. String trim interface optimization.
  2. Change the implementation of using regular to a simpler and more
  efficient way.
Issue:
  #I5AH4Z:[Optimization] String Trim

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I9dd0d923344ebd3c571ff8cd6cb244d9c01444fa
2022-06-06 09:15:32 +08:00
jiangkai43 99f06bae64 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-02 11:17:00 +00:00
jiangkai43 d50c83dc69 Add atomics project and modify code errors
Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I599WU
2022-06-02 19:09:01 +08:00
lichenshuai a724508c73 Delete RSP macro and .S file
Rsp is used in future work, therefore .S file should be deleted.

Issue: #I5AGW3

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib1fb140d40d259bc4519fbf547857e5f80e9ee0c
2022-06-02 10:32:46 +08:00
Yuqiang Xian c492d6a7bc Merge remote-tracking branch 'oh/master' 2022-06-02 00:31:44 +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
Yuqiang Xian 03e1ff5f35 Redesign the region flag setting and fix potential bugs within it.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I590Z8

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-06-01 11:38:56 +08:00
yingguofeng@huawei.com 73689999ed Add jsnapi interface CopyableGlobal
issue:https://gitee.com/openharmony/arkui_ace_engine/pulls/2628

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I28bcfa69f47d9b239d1cd37f8bbd34c82a0c8da9
2022-05-31 22:14:22 +08:00
yaoyuan cfdfd3e1b9 Description:
Reduce redundant code by using predefined global constants instead of creating new constant strings
Move all global constant strings into nonmovable space to improve code efficiency.

Issues: https://gitee.com/openharmony/ark_js_runtime/issues/I588TY

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I1f92188175c3129c5d8cec72a0396f11ce17c1c7
2022-05-31 17:38:54 +08:00
hjzhangcm 08f5895212 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-23 16:05:15 +08:00
openharmony_ci bf2ba4ed33 !1253 Js TypeArray optimization
Merge pull request !1253 from xliu/test
2022-05-22 02:33:14 +00:00
xliu 2b281975ea Js TypeArray optimization
Description
  1. Add number check in CanonicalNumericIndexString;
  2. modif GetProperty, SetProperty, DeleteProperty,
     DefineOwnProperty,GetOwnProperty,HasProperty
  3. Add FastPath in TypeArray.
  4. Refactor TypeArray ArrayLength, ByteOffset, ByteLength
  5. Add test for TypeArray.
Issue:
  #I56S75:Js TypeArray optimization

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I68dd973269eb0bab284e7b97e0b8bf93e5aee1a2
2022-05-21 18:15:02 +08:00
hjzhangcm 80a36dff6b fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
getingke f2cf7fad1a fixed for review comment by special team
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I4a52d03c9323146a81a66673e7cffd74cd2cd2b4
2022-05-13 15:47:50 +08:00
linxiang 3a151477b2 fix bug: argv[0] is not always arrayBuffer, it is maybe count
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I9a34626afef242615c86e9f447e74f0a85d787ce
2022-05-12 22:13:58 +08:00
Yuqiang Xian 369ffd9a85 Merge remote-tracking branch 'oh/master' 2022-05-11 08:09:37 +08:00
openharmony_ci a3b197d63b !1247 fix some bugs
Merge pull request !1247 from lukai/master
2022-05-10 13:32:38 +00:00
openharmony_ci 04ae7271a7 !1237 fix ark error stack message
Merge pull request !1237 from 苏重威/master
2022-05-10 12:38:10 +00:00
lukai 4e3370f761 fix some bugs
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I56MV6?from=project-issue
1. variable used but not initialized, which causes gc bugs
2. taggedvalue used after gc, which causes gc bugs

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I35814a58ab0cb1e0a296f0ed9c314d7b097eafa3
2022-05-10 19:21:56 +08:00
Yuqiang Xian d9d281af16 Merge remote-tracking branch 'oh/master' 2022-05-10 19:04:40 +08:00
hjzhangcm 7c78ce524a fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-10 09:19:37 +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
Yuqiang Xian adecfbd30b Merge remote-tracking branch 'oh/master' 2022-05-06 21:25:57 +08:00
getingke a2ab7afef1 Descriptor: fix for support assembler of aarch64
details: implements AssemblerAarch64 class, provide some apis for
generate code for arm64 instruction
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55WKH?from=project-issue

Change-Id: Id109528bcc62de1e0158131b6aa94042978c506d
Signed-off-by: getingke <getingke@huawei.com>
2022-05-06 16:23:20 +08:00