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
xiongluo
82b0916295
GC name is unclear and confused. class_ in object factory are redundant.
...
Modify gc name and delete class_ in object factory.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4T5DR
Signed-off-by: xiongluo <xiongluo@huawei.com >
2022-02-16 01:10:53 -10:00
zhangyukun
edb4abca97
Merge new runtimetrapolines from c_asm into master
...
Bug: #I4TRQP
Signed-off-by: zhangyukun <zhangyukun8@huawei.com >
Change-Id: I55b49c3ec9f6c5f91272668ff43ef4147b9ed6c2
2022-02-16 16:49:53 +08:00
yingguofeng@huawei.com
ef9b13734d
Performance optimization for gc
...
1、Optimize GC parallel evacate strategy: evacuate to old space with FreeListAllocator.
2、Adjust strategy that whole region evacuate: Only support new fromspace to new tospace.
3、Adjust Semi space capacity growing/shrinking strategy and Adjust Semi space initialize size.
splay-benchmark:
blue zone: ark_js(2500), v8(2000)
ark-dev: ark(1200), v8(1500)
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4SASV?from=project-issue
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
Change-Id: Ie9c6e94c47f531bf9c1ebf5bc7443dd1acb7d2ac
2022-02-15 14:23:43 +08:00
zhangyukun
dde836ab5c
Support weak refernce of ark napi
...
Add ClearWeak() interface
bug:#I4TEDI
Signed-off-by: zhangyukun <zhangyukun8@huawei.com >
Change-Id: Iabce07be151bf41d19a523a70cb79c8462d8bc3d
2022-02-12 11:09:33 +08:00
openharmony_ci
3dba0c122c
!529 The runtime should be destroyed after all VMS
...
Merge pull request !529 from linxiang8/master
2022-02-11 08:22:58 +00:00
linxiang
4995dbaef3
The runtime should be destroyed after all VMS
...
Description
Ensure that all VMS have been destroyed by counting, ann then DestroyRuntime
Related issues
https://gitee.com/openharmony/ark_js_runtime/issues/I4T7NX
Signed-off-by: linxiang <linxiang8@huawei.com >
2022-02-11 10:15:02 +08:00
openharmony_ci
a1e410deb6
!522 support print ark log
...
Merge pull request !522 from changcheng/master
2022-02-10 14:37:53 +00:00
wengchangcheng
2cfc71e33b
support print ark log
...
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4T6XR
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
2022-02-10 18:14:15 +08:00
openharmony_ci
310ee5221f
!490 support SuspendVM and output UncaughtException
...
Merge pull request !490 from 苏重威/master
2022-02-09 09:39:35 +00:00
scw
633e2ddbe8
support SuspendVM and output UncaughtException
...
Add VMNeedSuspension judge in CheckSafepoint and provide SuspendVM() ResumeVM() api in jsnapi to Suspend VM and Resume VM
Modify GetEcmaUncaughtException no longer clear exception and Add GetAndClearEcmaUncaughtException to get and clear exception
Issue I4SECM
Signed-off-by: scw <suchongwei@huawei.com >
2022-02-09 10:32:56 +08:00
y00576111
28f94a3077
InternalMemorySizeLimit init bugfix
...
Signed-off-by: y00576111 <yaojian16@huawei.com >
Change-Id: Id3afe265f1ce536ef0f9cc284cf469f50b46e5f1
2022-01-27 15:25:05 +08:00
wengchangcheng
9a2b7d04e8
optimize primitive type ACCESSORS
...
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
2022-01-25 18:05:12 +08:00
openharmony_ci
774607dff5
!351 remvoe unnecessary StringRef
...
Merge pull request !351 from yaojian16/optimizer
2022-01-21 06:20:35 +00:00
openharmony_ci
c22e2930d1
!410 modify ACCESSOR for EcmaString and TaggedArray
...
Merge pull request !410 from changcheng/master
2022-01-17 10:34:20 +00:00