wuzhefeng
662f2b78a6
Refactor Compilation Framework Part-2
...
1. Rename IR builder to improve the readability.
2. Remove redundant Headers to decouple the relationships of components.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I56YPT
Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com >
Change-Id: I0c8da6cd55bb8e7f33421ba846bab89bd5e06c55
2022-05-11 04:28:10 -07:00
openharmony_ci
1c06dd45fe
!1062 [js_runtime]support multi-instance in ark debugger
...
Merge pull request !1062 from huangfeijie/master
2022-05-05 13:41:29 +00:00
h00611971
24809b8239
support multi-instance in ark debugger
...
modify the interface in ark debugger
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I53TEF
Signed-off-by: h00611971 <huangfeijie@huawei.com >
2022-05-05 11:31:18 +08:00
yaoyuan
90d20770f4
Consider different cases for maxLength greater than, equal to and smaller than length.
...
For napi only
关联的Issue: #I54T7E
Signed-off-by: yaoyuan <yuanyao14@huawei.com >
Change-Id: I94c5e335a43aac937616e5aa3a217cc0b034ade7
Signed-off-by: yaoyuan <yuanyao14@huawei.com >
2022-05-05 11:16:56 +08:00
openharmony_ci
272cf6664d
!1155 Refactor the GC related components - Part 4
...
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
openharmony_ci
a31029d3f2
!1139 Handling errors when throwing exceptions
...
Merge pull request !1139 from linxiang8/master
2022-04-28 13:19:06 +00:00
Yuqiang Xian
57c0a4f055
Rename GC types and spaces to make it more consistent and clear.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
Change-Id: Ieeb356480fe6767ec6c2c53b6119e8c4b99d9ff9
2022-04-27 18:28:18 +08:00
linxiang
17d8100001
Handling errors when throwing exceptions
...
When calling a native method and throwing exceptions twice in a row,
a JSTaggedvalue::exception() will be returned for the second time instead of a JS object
Signed-off-by: linxiang <linxiang8@huawei.com >
Change-Id: Ie866f2f4aeeeafb28a2cd79f142e9ded477f08ce
2022-04-26 20:54:34 +08:00
yingguofeng@huawei.com
3379f227fd
Bugfix:Launcher application crash caused by large object updating null pointer
...
Add judgment null pointer
https: //gitee.com/openharmony/ark_js_runtime/issues/I54MFV?from=project-issue
Change-Id: If05f7dc1372d3d56acd59811cef1e51fb507bf94
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-04-26 09:09:59 +08:00
openharmony_ci
70ba7ae0fe
!1097 Fix JSNapi::NumberRef
...
Merge pull request !1097 from xliu/fix_substring
2022-04-25 02:22:58 +00:00
openharmony_ci
1f77bb2f35
!1112 remove prevSp in EcmaRuntimeCallInfo
...
Merge pull request !1112 from guobingbing/optimize
2022-04-24 11:43:40 +00:00
guobingbing
8747ca5081
remove prevSp in EcmaRuntimeCallInfo
...
Signed-off-by: guobingbing <guobingbing3@huawei.com >
Change-Id: I3a3517cc8712baa6eef76f85a9967dd95a085bbc
2022-04-24 19:04:24 +08:00
Gymee
909b9081a9
debugger refactor
...
Change-Id: Idff2f871926a3893b5bd962f13b4a10c39f9f6d9
Signed-off-by: Gymee <yumeijie@huawei.com >
2022-04-24 11:35:13 +08:00
xliu
97c5a3186c
Fix JSNapi::NumberRef
...
Description
1. Finding key 1 in Map ([[1, "CC"]]) returns undefined.
2. Fix the problem in JSNapi::NumberRef, the complete constructor is not defined in this interface.
Issue:
#I541HH:Fix JSNapi::NumberRef
Signed-off-by: xliu <liuxin259@huawei.com >
Change-Id: I1679258b8d426b280390e144116fc4326e43c35a
2022-04-22 15:54:47 +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
Gymee
83048efbf1
support watch expression and conditional breakpoint
...
Signed-off-by: Gymee <yumeijie@huawei.com >
Change-Id: I794a5ee770f251e6fea4de5058575519ff0490e6
2022-04-18 20:04:33 +08: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
6a1c61d215
!930 Fix long gc problem (18ms) in photos app
...
Merge pull request !930 from xiongluo/fix_long_gc_problem
2022-04-11 07:56:54 +00:00
xiongluo
2e3d07b336
Fix long gc duration problem in photos app
...
Add handle scope to avoid the large number of root nodes.
Remove unnecessary handles in the critical path.
Adjust the parameters in gc to avoid multiple consecutive Old GCs.
Signed-off-by: xiongluo <xiongluo@huawei.com >
2022-04-10 20:45:15 -10:00
openharmony_ci
5618322d6c
!969 [part-1] support watch expression
...
Merge pull request !969 from changcheng/call_entry_and_return
2022-04-09 17:06:23 +00:00
wengchangcheng
2e4dbad3a3
[part-1] support watch expression
...
1. delete unused execute arguments
2. support select execute entry
3. support get execute return value
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I51MKR
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
Change-Id: I40139e2f4afa36ad7d169d7f6c367a62a40bf476
2022-04-09 22:53:42 +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
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
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
openharmony_ci
a6c607db04
!910 Added builtins typedarray and array Added interface test case and BigInt64Array 、BigUint64Array construction of typedarray adapted to napi
...
Merge pull request !910 from 王犇/master
2022-03-30 08:17:59 +00:00
wangben
79fc257ebd
Added builtins typedarray and array Added interface test case and BigInt64Array and BigUint64Array construction of typedarray adapted to napi
...
Signed-off-by: wangben <wangben15@huawei.com >
2022-03-30 10:49:55 +08:00
openharmony_ci
c1d1bb7481
!874 Add a protection judgment to prevent application crash
...
Merge pull request !874 from yingguofeng/dispose
2022-03-25 08:18:23 +00: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
yingguofeng@huawei.com
a35b2a9164
Add a protection judgment to prevent application crash
...
Arkui calls dispose to release globalhandle after VM ends.
https://gitee.com/openharmony/ark_js_runtime/issues/I4ZEEP?from=project-issue
Change-Id: I38c62fea6036fee112aa39cb03bbeb73507908db
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-03-24 15:56:44 +08:00
wanyanglan
b6e56d3c3f
Clean Code For CodeHub Issues
...
Modified file permissions, word spelling errors, and
programming specifications suggesting EXPECT_EQ instead
of EXPECT_TRUE
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4YXK3
Signed-off-by: wanyanglan <wanyanglan1@huawei.com >
Change-Id: I00eb9be48d481ce2bdaa4a621246ff6c405abecf
2022-03-22 11:34:13 +08:00
zhaozhibo
16bf84e370
Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master
2022-03-17 02:07:56 +00:00
wanghuan
68ab7992a7
feature:add asm handle disable range by option
...
description:add an option to control asm interpreter stub handle disable range in debug mode
reason:add an option to control asm interpreter stub handle disable range in debug mode
issue:https://gitee.com/open_harmony/dashboard?issue_id=I4XAXX
Signed-off-by: wanghuan <wanghuan80@huawei.com >
Change-Id: Ie573a11be453f036cefb9d2eb000b84bb5007e6b
2022-03-16 14:32:47 +08:00
zhaozhibo
b82f3cfa84
Fix internal issue list problem
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com >
2022-03-15 15:53:31 +08:00
zhaozhibo
116b8f85cb
Fix internal issue list problem
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com >
2022-03-14 15:19:45 +08:00
zhangyouyou
66dec69743
Add bigint type, add related instructions and Napi
...
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com >
2022-03-10 21:25:06 +08:00
y00576111
a1796a573e
EcmaScript Standard Module Implementation
...
Delete the existing module implementation and
re implement the module function according to the ECMA 2018 specification
issue: #I4NZQT [https://gitee.com/openharmony/ark_ts2abc/issues/I4NZQT ]
Signed-off-by: y00576111 <yaojian16@huawei.com >
Change-Id: I8d381db7f8bf2f3d6b2a5c21cbc3cbab1aef0b9b
2022-03-10 19:10:42 +08:00
lengchangjing
eb86719436
Merge remote-tracking branch 'mother/master'
2022-03-07 20:55:58 +08:00
lengchangjing
d8988764bc
Merge remote-tracking branch 'mother/master'
2022-03-07 10:56:22 +08:00
openharmony_ci
dfbff80e63
!687 fix jspandafile of framework file and aot info
...
Merge pull request !687 from changcheng/refactor_pandafile_and_nativepointer
2022-03-06 15:57:41 +00:00
lengchangjing
fb1cf3cd96
Merge remote-tracking branch 'mother/master'
2022-03-04 21:26:36 +08:00
lengchangjing
e2c971a8f9
change Class Ecma_VM's member options_ for multiple use
...
Description
add a member of type JSRuntimeOptions
Related issue
#I4W0M1:change Class Ecma_VM's member options_ for multiple use
Signed-off-by: lengchangjing <lengchangjing@huawei.com >
2022-03-04 21:01:43 +08:00
wengchangcheng
65ce5ee62d
fix jspandafile of framework file and aot info
...
1. delete unused logic of framework pandafile
2. refactor native pointer callback
3. fix bug of generate aot info
https://gitee.com/openharmony/ark_js_runtime/issues/I4VSSL
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
Change-Id: I3ba318a0bc2c0e95afff6473ff106bc8b5c9dfe4
2022-03-04 15:29:27 +08:00
scw
326b0140c9
move dfx feature to dfx dir
...
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I4SXXS
Signed-off-by: scw <suchongwei@huawei.com >
Change-Id: Ie5ae6a70f5b561b7578702db591affb26a0057d9
2022-03-04 10:52:47 +08:00
wengchangcheng
7c7b0e5097
fix actor bug
...
modify actor for app start
issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
Change-Id: Iad48f3173a963c4290701a708f41832359c88b02
2022-03-02 15:33:19 +08:00
y00576111
9eeef5be33
js pandafile refactor, support actor function
...
When the worker thread is started
the part shared by the virtual machine is not recreated
only the part that cannot be shared is created
issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8
Signed-off-by: y00576111 <yaojian16@huawei.com >
Change-Id: I3c01588bb8449bd9cd8b410cfd13ff55205f41c1
2022-03-02 15:33:19 +08:00
panzhenyu1
17258d9872
Adapt for windows platform
...
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VDA4
Change-Id: I4560cf0ec4c05ccd855debb51b6d0190b4f1ccfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com >
2022-03-02 11:22:58 +08:00
yingguofeng@huawei.com
ceeacc44ce
ark_dev CI failed: fangtaobao sliding test crash bugfix
...
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4UYH5?from=project-issue
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
Change-Id: Ie652d7e26398215fd92907ebdb34d4a0b4a48ba5
2022-02-23 16:29:15 +08:00
openharmony_ci
ff645354b9
!558 Merge new runtimetrapolines from c_asm into master
...
Merge pull request !558 from zhangyukun8/master
2022-02-17 02:54:23 +00:00