Commit Graph

1781 Commits

Author SHA1 Message Date
huoqingyi 1da170f1bd Add Type Infer Test Case
Description:
1.Add type infer test cases for bitwise_op, callfunctions, ldobjbyvalue and logic_op

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

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I486f6f91a32e1c7caa2446b12b8e6b33db8d47fe
2022-06-13 09:38:51 +08:00
openharmony_ci 7685b11b6b !1494 TSAOT Exception Handler
Merge pull request !1494 from 许杰/exception_handler
2022-06-11 09:56:23 +00:00
xujie 6430e8f31e TSAOT Exception Handler
1. Throw JS exception in tsaot
2. Print bcoffset when occur JS exception

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I046d76c092a399354ddcdedd859f0c1e622387c2
2022-06-11 16:36:16 +08:00
wengchangcheng 4b64683dcf Descriptor: support update value of old eval function
details:
update framehandler before setvalue
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BSY5

Change-Id: Ib6c576e695f3ddcd4387d01e5f6368641bb0d526
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-06-11 12:00:19 +08:00
openharmony_ci 2efa43bb41 !1562 GateAccessor bugfix
Merge pull request !1562 from wanyanglan/info
2022-06-11 03:46:32 +00:00
openharmony_ci dedf332ab5 !1568 fix exception for aarch64 rsp
Merge pull request !1568 from wpy111/master
2022-06-11 02:47:35 +00:00
wupengyong 34275bafe3 reason:fix rsp aarch64 exception handler
description:resume x30 when return
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BSGW?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I23a6aa431220b4e5a9cbadf395141a48ec17fdf8
2022-06-11 10:00:32 +08:00
openharmony_ci 16357345fb !1563 NewThisObject call inline new
Merge pull request !1563 from 孙哲/master
2022-06-10 10:15:45 +00:00
openharmony_ci b1cd4d6c4b !1558 fix commonjs bug to support load node_module
Merge pull request !1558 from fanshengli/fix_bug
2022-06-10 09:20:42 +00:00
openharmony_ci fb18fa7456 !1565 fix codex warning
Merge pull request !1565 from hjzhangcm/master
2022-06-10 08:37:55 +00:00
hjzhangcm 217a51e1de fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BPNV
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-10 15:51:38 +08:00
openharmony_ci d591c51eae !1555 fix bug generator for aarch64
Merge pull request !1555 from wpy111/master
2022-06-10 07:51:22 +00:00
sunzhe23 7eb24e8b94 Support new this object call inline new
description:
add NewJSObject stub for fast new JSObject

issue: #I5BPKF

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-10 15:35:16 +08:00
openharmony_ci bffe6a1ea5 !1556 Solve the problem of sample thread deadlock
Merge pull request !1556 from 王犇/master
2022-06-10 07:30:54 +00:00
wanyanglan d87a603fd3 GateAccessor bugfix
GateAccessor bugfix

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I6a6bca5538d8310cd30cf81ebe0ab901931fddec
2022-06-10 15:17:17 +08:00
wangben f0c68e40cc Solve the problem of sample thread deadlock
Description:Avoid deadlocks by increasing the semaphore

issues:https://gitee.com/openharmony/ark_js_runtime/issues/I5BLJI

Signed-off-by: wangben <wangben15@huawei.com>
2022-06-10 15:01:33 +08:00
lifansheng 90b7494413 issue:I5BOQH
fix commonjs bug to support load node_module

Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I0ecd5e7248fdd3fc34a7dbf4d8d22ce7fcb68b88
2022-06-10 14:24:58 +08:00
wupengyong 627b51b9df reason:fix fix Generator for aarch64 rsp
description:fix bug in generator
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BLAX?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I9827892801ef8096b2d808f09b5f763fe556021c
2022-06-10 14:18:08 +08:00
getingke c958b9a873 Merge branch 'master' of https://gitee.com/openharmony/ark_js_runtime into aot_call_asmInterpreter
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I04892b95ea6e8188213f615769f0f199a511e9cb
2022-06-10 09:17:20 +08:00
openharmony_ci 8bfcc6c08e !1553 modify get child item from json
Merge pull request !1553 from changcheng/modify_json
2022-06-09 14:22:10 +00:00
openharmony_ci 8449b5311f !1521 Snapshot support serialize builtins object independently
Merge pull request !1521 from dingwen/master
2022-06-09 14:19:59 +00:00
wengchangcheng f4db7283b6 Descriptor: modify get child item from json
details:
add Result to judge type error or not exist
delete unused interface
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BL2A

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2beb7c730121900286ce0485902aa3ca620e3cd8
2022-06-09 21:40:58 +08:00
openharmony_ci 6c0c015e3a !1551 add a unit-test for JSDisplayNames
Merge pull request !1551 from hjzhangcm/master
2022-06-09 13:37:34 +00:00
openharmony_ci bf2098bbaa !1503 modify EcmaModule to support CjsModule
Merge pull request !1503 from fanshengli/ECMA_CJS
2022-06-09 13:32:37 +00:00
openharmony_ci 091635af67 !1530 Fix rsp frame on arm64
Merge pull request !1530 from zhangyukun8/master
2022-06-09 13:30:10 +00:00
dingwen 53808f9634 Snapshot support serialize builtins object independently
description:Add SerializeBuiltins interface, support create EcmaVM by deserializing builtins.snapshot file
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B3QM
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: I0d19efe34826bdb58366df9eed571285afbcccca
2022-06-09 21:21:44 +08:00
getingke a0ed0ae89d fixed for aarch64 assembler stubs
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I84c62daba0ee50994338debaa70928f2d8dc837c
2022-06-09 21:12:41 +08:00
openharmony_ci 671065ee6e !1522 Optmize smart gc params
Merge pull request !1522 from xiongluo/reduce_params
2022-06-09 12:52:56 +00:00
openharmony_ci a6f3b2b8a6 !1177 Require function realization
Merge pull request !1177 from DaiHN/require
2022-06-09 12:51:21 +00:00
xiongluo 7d12ac2836 optimize smart gc params
merge bool params and reduce param number

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

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-09 20:05:08 +08:00
getingke 8f66d55a80 fixed for reviewed by sunzhe
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7d26c8127511c39a62e6962e5cdf2c2a19723d4c
2022-06-09 20:01:33 +08:00
zhangyukun 26dbd673ff Fix rsp frame on arm64
1. fix callnative entry
2. adapt newobjdynrange

Issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B7OL?from=project-issue

Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Icf7d0a385d77f76cf8f76a0ecb448728881df067
2022-06-09 19:57:33 +08:00
openharmony_ci 766c707a2e !1536 Refactor GateType
Merge pull request !1536 from dingding/refactor_gateType
2022-06-09 11:41:02 +00:00
hjzhangcm 5a2110adfd add test case for jsdisplaynames issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BKT9
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-09 19:03:22 +08:00
openharmony_ci 4b29cbccc4 !1542 Fix TaggedList Codex Warning
Merge pull request !1542 from chenqi/FixTaggedList
2022-06-09 10:06:35 +00:00
openharmony_ci 56c822e058 !1544 Fix compiling issues on Mac included by continuous integration
Merge pull request !1544 from Pan Zhenyu/master
2022-06-09 09:48:45 +00:00
ding 8bfd16debf Refactor GateType
1.Change the implementation of gateType from enum to class.
2.Add some base type opeartions between GateType and GlobalTSTypeRef to simplify the code.
3.Delete class GateTypeCoder
4.Extract GlobalTSTypeRef as an independent file.

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

Signed-off-by: ding <dingding5@huawei.com>
Change-Id: I3d80595ebccc9ac942af9b9bcc67c0974bb9b712
2022-06-09 17:32:43 +08:00
openharmony_ci 9cc551e368 !1547 MMap memory without tag
Merge pull request !1547 from yingguofeng/master
2022-06-09 09:26:12 +00:00
openharmony_ci 4d1b2fc7c1 !1548 fix codex warning
Merge pull request !1548 from hjzhangcm/master
2022-06-09 09:20:04 +00:00
hjzhangcm 8ebb5ddeaf fix codex warning issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BJJW?from=project-issue
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-06-09 16:33:51 +08:00
openharmony_ci c10b874d14 !1518 add thread nullptr check in ThreadCheck
Merge pull request !1518 from 苏重威/master
2022-06-09 08:13:44 +00:00
openharmony_ci 31e7e2ecf3 !1532 fix codex warning
Merge pull request !1532 from hjzhangcm/master
2022-06-09 07:50:01 +00:00
yingguofeng@huawei.com 4b0201248b Description:The feature of "tag" in ark heap has been invalidated by a previous PR.
Resolution:Revert modification

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BIW5?from=project-issue
Change-Id: I827dbc48d6334c3c0ea45f1f939727bdff130e2c
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-09 15:34:35 +08:00
ZhenyuPan 7927740103 fix compilation bug on MacOS
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BISH

Signed-off-by: ZhenyuPan <panzhenyu1@huawei.com>
Change-Id: I95002c034de569dad5a8dd5f6e66b0654e124826
2022-06-09 15:27:58 +08:00
chenqi 4f49467d58 Fix TaggedList Codex Warning
Description
    Fix taggedlist.h and taggedlist.cpp codex warning.
Related issue
    #I5BIFS:Fix TaggedList Codex Warning

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-09 15:01:37 +08:00
openharmony_ci 55faa875dc !1538 fix some interpreter performance issue
Merge pull request !1538 from 孙哲/master
2022-06-09 06:30:15 +00:00
wengchangcheng 1ee5638cf9 Descriptor: modify unique_ptr and add ASSERT
details:
1. modify unique_ptr t oconst &
2. modify unit32_t to int32_t
3. add ASSERT before get optional value
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BHDS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie1938acfd0f30389892933adf224af1940143805
2022-06-09 12:23:48 +08:00
getingke 62d97885f8 fixed for aot call asm interpreter
Change-Id: I052dfa2e8849b5a9645bac4389099266efd5047e
Signed-off-by: getingke <getingke@huawei.com>
2022-06-09 11:28:11 +08:00
sunzhe23 4c5952a90f Fix some performance issue for asm interpreter
description:
1 reuse ic slot for ic slot overflow case
2 Replace CallStub with (tail call) bytecode handler for GetPropertyByName
3 add fast path for call new return handler

issue: I5BFu2

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2022-06-09 10:30:14 +08:00
openharmony_ci e013c8247a !1533 modify for some bugs
Merge pull request !1533 from Riachel/master
2022-06-09 02:06:23 +00:00