Commit Graph

172 Commits

Author SHA1 Message Date
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
openharmony_ci 31c541dc2c !1202 modify JSTaggedValue which disconnect TaggedValue inheritance
Merge pull request !1202 from fanshengli/disconnet_taggedValue
2022-05-06 00:42:48 +00:00
lifansheng 295d5db32b issue:I55TH8
modify JSTaggedValue which disconnect TaggedValue inheritance

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I13b990baf5284e58e83ab6b14847df076f42bed8
2022-05-05 16:54:26 +08:00
xliu 1893bbfbe6 Fix UT test and json parser
Description
  1. Fix UT test
  2. Fix mem_map_allocator
  3. Fix json parser
Issue:
  #I55S8H:Fix UT test and json parser

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I1e5107a1f119eb1422a40f2275d961b366dda46b
2022-05-05 11:36:33 +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
Yuqiang Xian f17e646f69 Merge remote-tracking branch 'oh/master' 2022-04-30 20:09:00 +08:00
Yuqiang Xian 9e88572f35 Add descriptions to concurrent marking status check.
Don't use IS_STANDARD_SYSTEM config to switch off concurrent marking.
Fix typos and grammar issues.

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

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-30 20:02:19 +08:00
openharmony_ci 7c39a61fdd !1174 delete object_xray-inl.h, move into object_xray.h and create visitor.h
Merge pull request !1174 from zhaozhibo/master
2022-04-29 02:00:06 +00:00
zhaozhibo b7fb4444ec delete object_xray-inl.h, move into object_xray.h and create visitor.h
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-28 21:25:51 +08:00
openharmony_ci 36d4abd9db !1090 MatchWithOffset 接口拆成两个接口
Merge pull request !1090 from zhuguanghui123/master
2022-04-28 07:26:02 +00: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
openharmony_ci 1a61b3b48d !1145 fix codex waring 【part 3】
Merge pull request !1145 from zhaozhibo/master
2022-04-26 15:21:14 +00:00
zhaozhibo a190556751 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-26 19:16:21 +08:00
scw 836a15ce64 Fix JSON parse for four bytes u16string
read four bytes when construct a four bytes u16string

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-04-25 20:13:43 +08:00
openharmony_ci 09715f883b !1119 Support calculate callsite sp for interpreter frame
Merge pull request !1119 from 孙哲/master
2022-04-25 12:06:25 +00:00
sunzhe23 ad20a51cca Support calculate callsite sp for asm Interpreter
description:
Add SaveCurrentFrame for interpreter handler call stub and
get get callsite sp when gc run

issue: I54IMV

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-25 01:03:33 -07:00
zhaozhibo e0ad13d0c4 fix codex warning
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-25 14:33:01 +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
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
songzhengchao 0e00e78a2d Bytecode_circuit_builder SUB2DYN_PREF_V8 bug fix
1 add ts_sub test
2 modify int to taggedvalue

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

Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Idc51011528bd34c29faf0ffbb36cd225b2b91302
2022-04-24 15:14:09 +08:00