Commit Graph

247 Commits

Author SHA1 Message Date
openharmony_ci 8021638db6 !1571 Add UT for NativeObject
Merge pull request !1571 from wangzhaoyong/master
2022-06-13 12:31:07 +00:00
wangzhaoyong d1a23c427c ==-------------------------------------------==
补充NativeObject的UT用例,以及对序列化NativeObject的流程进行优化
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BPWC
==-------------------------------------------==

Signed-off-by: wangzhaoyong <970691906@qq.com>
Change-Id: Ia9d4686932f55573721d5a69da8ab31bef214e79
2022-06-13 16:36:25 +08:00
openharmony_ci b1b63f212c !1574 fix bigint bug
Merge pull request !1574 from 常佳兴/master
2022-06-13 06:25:02 +00:00
luochuhao d8e482f756 Modify enable logic of certain runtime options.
Change condtion for File execution branch to whether file is AOT compiled or not.

Fix bug of setting bc debug handler entry while loading stub file.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BBFH
Signed-off-by: luochuhao <luochuhao@huawei.com>
Change-Id: I5b6d47a1587631849f6c1e746473cb14b1d727a8
2022-06-13 12:15:03 +08: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
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
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
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
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
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
lifansheng e25d85cd16 modify ecmaModule to support CjsModule
Signed-off-by: lifansheng <lifansheng1@huawei.com>
Change-Id: I45e23bfa131ff9eb044d9b0c1f7908f7763bebb7
2022-06-08 17:27:48 +08:00
openharmony_ci 6ac2f15373 !1519 Modify Container Plainarray
Merge pull request !1519 from zhangjixing/push_Plainarray
2022-06-08 04:52:11 +00:00
DaiH eee606c334 Support CommonJS's module export function
------------------------------------------
    1. Support CommonJS's module export function
    2. Related test cases
    issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5590V

Signed-off-by: DaiH <daihuina1@huawei.com>
Change-Id: I18968f6a6b971fbe833d91ef98813964cc8292c9
2022-06-08 10:59:06 +08:00
zjx 9f918a7dd7 Modify Container PlainArray
Description
 To ensure the high performance of container classes, plainarray are
 provided in ark.
Related issues
 #I5B0M5: Modify Container PlainArray

Signed-off-by: zjx <zhangjixing4@huawei.com>
2022-06-08 08:54:44 +08:00
openharmony_ci 11895598b5 !1435 Add smart gc interface
Merge pull request !1435 from xiongluo/smart_gc
2022-06-07 07:58:35 +00:00
xiongluo 0a218f7bb7 add smart gc interface and change gc params
add interface to change gc params
close concurrent sweep and mark in background
limit the post task num

issue:https://gitee.com/openharmony/ability_ability_runtime/issues/I59N1V

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-07 14:33:15 +08:00
openharmony_ci 7048cbf1ef !1409 Add Containers List And LinkedList
Merge pull request !1409 from chenqi/list1
2022-06-05 04:05:38 +00:00
Gongyuhang 7ad1977347 Description:
Delete the tests for checking EcmaString's behaivoir after
SetCompressedStringsEnabled(true).
Details:
Delete the part where SetCompressedStringsEnabled(true) is
called.
Issue:
https://gitee.com/openharmony/ark_js_runtime/issues/I5ANQA

Signed-off-by: Gongyuhang <gongyuhang5@huawei.com>
2022-06-03 19:39:28 +08:00
openharmony_ci f79a7b7f03 !1473 add unittest case for js_date_time_format
Merge pull request !1473 from zhaozhibo/master
2022-06-03 05:06:42 +00:00
chenqi 666eb6b8bd Add Containers List And LinkedList
Description
    1.To ensure the high performance of container classes, List and LinkedList is provided in ark.
    2.modify Copyright 2021->2022.
    3.fix containers.
Related issue
    #I58XA9:Add Containers List And LinkedList.

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-06-02 17:02:40 +08:00
wengchangcheng 419394270f Descriptor: fix proxy bug
details:SetMethod always is nullptr, set right method: CallJsProxy
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AIBR

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ia0fa992d302b9183a20faafeffbfce31f01cd072
2022-06-02 11:52:38 +08:00
openharmony_ci 7e3af05fb1 !1442 Add WeakRef and FinalizationRegistry interfaces
Merge pull request !1442 from 小马奔腾/master
2022-06-01 15:07:08 +00:00
xdmal a4062881d1 Add WeakRef and FinalizationRegistry interfaces
Add WeakRef and FinalizationRegistry interfaces

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

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-06-01 20:59:20 +08:00
zhaozhibo 1cb8be60f4 add unittest case for js_date_time_format
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-06-01 19:40:16 +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 e0b67aa465 add test case for JSAPIVectorIterator class
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-30 19:53:31 +08:00
hjzhangcm 8bd410fede add test case for JSCollator and fix codex warning and js_locale_test bug
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-26 18:12:00 +08:00
openharmony_ci f5596f01bd !1405 fix mem leak problem from jsmethod
Merge pull request !1405 from xiongluo/mem_leak_from_method
2022-05-25 07:20:21 +00:00
xiongluo 2c14680bc6 Fix the mem leak from js method
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-05-25 10:53:36 +08:00
hjzhangcm f92198ef7d add test case for JSAPITreeSetIterator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-24 09:36:11 +08:00
openharmony_ci 0b5e0e6aa6 !1395 Add Container Vector
Merge pull request !1395 from shisan_forwork/push_vector
2022-05-23 14:57:23 +00:00
shisan_forwork 5adb25b225 Add Container Vector
Description
   To ensure the high performance of container classes, vector is
   provided in ark.
Related issue
   #I4XCD9:add container vector

Signed-off-by: shisan_forwork <chengjunxiong@huawei.com>
2022-05-23 20:40:25 +08:00
g00416891 ff9ad604fe optimize ExecuteNative frame
Change-Id: I2431fb150c160d8dc51d20a8dcc7ace74e09aa5b
Signed-off-by: g00416891 <guobingbing3@huawei.com>
2022-05-23 15:22:18 +08:00
openharmony_ci bf2ba4ed33 !1253 Js TypeArray optimization
Merge pull request !1253 from xliu/test
2022-05-22 02:33:14 +00:00
openharmony_ci 75a72d0ac3 !1370 fix codex warning file
Merge pull request !1370 from hjzhangcm/master
2022-05-22 01:12:24 +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
openharmony_ci 7586ba396f !1379 modify taggedvalue encode
Merge pull request !1379 from wpy111/master
2022-05-21 04:40:02 +00:00
wupengyong 7c650ba015 reason:performance optimization
description:optimize taggedvalue encode
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I55ZVP?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I747a60f5ea7348d3b0cfc041a3b010c52b1517c0
2022-05-21 09:33:44 +08:00
hjzhangcm 80a36dff6b fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-20 18:57:39 +08:00
openharmony_ci 2d042f8fae !1362 add unittest case for js_api_arraylist_iterator and js_bigint
Merge pull request !1362 from zhaozhibo/master
2022-05-20 04:08:02 +00:00
zhaozhibo c734597e7e add unittest case for js_api_arraylist_iterator and js_bigint
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-05-20 11:29:09 +08:00
hjzhangcm 7749f58a59 add test case for JSLocale and modify the file where the ICU configuration is located
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-19 11:36:54 +08:00
openharmony_ci 31ec8e87dd !1313 Add regExp.matchAll interface and symbol.matchAll and regExp iterator related functions
Merge pull request !1313 from 王犇/master
2022-05-18 11:04:47 +00:00
wangben 0ae45e4df7 Add regExp.matchAll interface and symbol.matchAll and regExp iterator related functions
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-18 18:02:39 +08:00
openharmony_ci 4179a76a2d !1330 Enable x86 Assembler
Merge pull request !1330 from wanyanglan/master
2022-05-18 03:12:23 +00:00
wanyanglan f0981feee7 Enable x86 Assembler
1. x86 assembler replaces JSCall, JSCallArgV, JSFunctionEntry,
OptimizedCallOptimized, CallNativeTrampoline assembly code of
x86 call.S debugged and enabled to the official code.
2. Delete the relevant code in call.S.

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

Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: I69b9aad1f52d486ba6d96248aa1a5a2d0a44f318
2022-05-18 09:42:00 +08:00
hjzhangcm 295535c3c1 add test case for JSAPITreeMapIterator
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-05-17 18:21:03 +08:00