Commit Graph

152 Commits

Author SHA1 Message Date
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
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
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
openharmony_ci 376f476f02 !1051 repair gn file
Merge pull request !1051 from hjzhangcm/master
2022-04-20 10:42:23 +00:00
hjzhangcm 6bcdd2cbf9 simplify gn file
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-04-20 17:13:49 +08:00
scw 7b302f3905 Stringify support TypedArray
Support Stringify a TypedArray object

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

Signed-off-by: scw <suchongwei@huawei.com>
2022-04-19 20:16:09 +08:00
sunzhe23 941be6ea2a Generate asm code for AsmInterCallRuntime
issue: #I53761

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-04-17 23:49:48 -07:00
zhaozhibo 504820705d Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-04-17 07:24:50 +00:00
zhaozhibo 398ac87a36 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
openharmony_ci 50bb6b9bc6 !1025 debugger refactor
Merge pull request !1025 from changcheng/debugger_refactor
2022-04-17 01:01:12 +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
openharmony_ci 9707dca590 !1011 Fix the function NumberToString double percision BUG
Merge pull request !1011 from fanshengli/master
2022-04-16 09:06:12 +00:00
lifansheng be15a6b2d8 issue:#I52QHU
Fix the function NumberToString double percision BUG

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I88a5ea73b8bded8edfff7e7e92abd6ec80430f5f
2022-04-16 15:57:04 +08:00
ding d8f0399789 Control whether to print compiler logs through JSRuntime Options
Add option log-compiled-methods to print the compiler(both stub and aot) in units of methods.

Add class CompilerLog.

Refactor some compiler logs.

Unie the log invoked way(COMPILER_LOG or COMPILER_OPTIONAL_LOG).

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I43ce61d0ba9d453713ab3e6349d07f6d9cde3e5e
2022-04-14 16:14:34 +08:00
zhaozhibo aaf776aab5 fix code warning for codeDex
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-12 14:27:50 +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
openharmony_ci b078ee5425 !948 [part-1] delete inl.h, move the definition to the declare head file
Merge pull request !948 from changcheng/fix_inl_head_files_part1
2022-04-07 11:30:16 +00:00
zhangyukun 9139ca09c7 Add dispatch of call of x64 and construct frame with rsp in .S
1. use stub to dispatch fast,slow and native paths
2. use rsp to construct frame of x64
https://gitee.com/openharmony/ark_js_runtime/issues/I51G9L?from=project-issue
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ib80540df5dbe531f155e5dd9fce556a207171494

Change-Id: I31e6705dd5555a0c2a9070a7ce73b26f77caef80
2022-04-07 14:32:38 +08:00
wengchangcheng 4e08cec6ee [part-1] delete "*-inl.h" of newest codex rule
move the definition to the declare head file

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ieeb0ec96281cda51d0bebd6a2e771fc8d4078306
2022-04-07 14:14:49 +08:00
openharmony_ci e24a192e4a !931 Aot lowering
Merge pull request !931 from wanyanglan/master
2022-04-06 13:08:46 +00:00