Commit Graph

52 Commits

Author SHA1 Message Date
openharmony_ci 40324cf89b !1552 string.padStart/padEnd/trimLeft/trimRight/matchAll
Merge pull request !1552 from zhangyouyou/master
2022-06-13 08:43:48 +00:00
zhangyouyou 7f5f5fd3db https://gitee.com/openharmony/ark_js_runtime/issues/I5BKUG?from=project-issue
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-06-10 17:33:03 +08: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
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
openharmony_ci f63f7b5b2e !1454 Support transfer custom native object
Merge pull request !1454 from wangzhaoyong/master
2022-06-07 11:51:17 +00:00
wangzhaoyong 99688fd766 ==-------------------------------------------==
Support transfer custom native object
1. add create object interface for napi
2. support serialize custom native object
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59GXI
==-------------------------------------------==

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I8c033761f0503698e20241407db47bebb533ee43
2022-06-07 14:13:15 +08:00
jiangkai43 99f06bae64 Merge branch 'master' of gitee.com:openharmony/ark_js_runtime into master 2022-06-02 11:17:00 +00:00
jiangkai43 d50c83dc69 Add atomics project and modify code errors
Signed-off-by: jiangkai43 <jiangkai43@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I599WU
2022-06-02 19:09:01 +08: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
gongjunsong 9160d8bc68 delete repeate set class code
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59AEN?from=project-issue

Signed-off-by: gongjunsong <gongjunsong@huawei.com>
Change-Id: I6b06c4410734a44b8f64f3235d991e99b7903203
2022-05-26 09:05:54 +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
Zhenyu Pan e5a40fd7f6 fix register bug when initialize Intl object
description: JSObject::SIZE -> JSInlt::SIZE

related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I59068

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I50a12427f41cf1d448998294fd452391ee73ca1c
2022-05-24 15:28:23 +08:00
openharmony_ci f9dd9521e5 !1372 fix fromEntries and Symbol.prototype.description bug
Merge pull request !1372 from 王犇/master
2022-05-23 03:13:45 +00:00
wangben a60104380b fix fromEntries property changed from object.prototype to object, the bug that this in Symbol.prototype.description is encapsulated by object
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-23 09:48:41 +08: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
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
Yuqiang Xian d9d281af16 Merge remote-tracking branch 'oh/master' 2022-05-10 19:04:40 +08:00
ZhenyuPan 78f27c883f for ark_js_vm on mac
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55GYU
Change-Id: I3faad1171ed2ef08660c62f0ff6c88b34c5cbcfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-05-09 09:06:58 +08:00
Yuqiang Xian adecfbd30b Merge remote-tracking branch 'oh/master' 2022-05-06 21:25:57 +08:00
wangben 792f6b18a0 Add object object fromEntries interface
Signed-off-by: wangben <wangben15@huawei.com>
2022-05-05 14:14:56 +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
liu-qiang12 474420fba7 According to the 2021 internationalization specification add international specification module listformat class code
Signed-off-by: liu-qiang12 <liuqiang187@huawei.com>
https://gitee.com/openharmony/ark_js_runtime/issues/I54WWJ
2022-04-27 10:24:14 +08:00
panzhenyu1 a0fb802750 Fix compile problem caused by rebase
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I543ZG

Change-Id: Ibf11fee9ddb8433ad53a67baccaf40ef1802c5b8
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-04-25 09:28:39 +08:00
DaiH ae9f49022f Bug fix of testUT
Signed-off-by: DaiH <daihuina1@huawei.com>
https: //gitee.com/openharmony/ark_js_runtime/issues/I53Q97?from=project-issue
Bug fix of testUT
Change-Id: I8d4805eab4a4614dc880b85065982371418de17f
2022-04-21 15:11:38 +08:00
DaiH 99f7f4bd0a Get Object Literal's Hclass From Cache
Signed-off-by: DaiH <daihuina1@huawei.com>

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

Sovle the problem that generate object without sharing Hclass, when object's Hclass have same shape.

Get Object Literal's Hclass From Cache

Change-Id: Ia17d056e32acd3356be138051f273c0cf50d82ee
2022-04-11 21:57:35 +08:00
openharmony_ci b420d9d3df !951 Add DataView bigint related interfaces
Merge pull request !951 from zhangyouyou/master
2022-04-11 10:27:47 +00: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
zhangyouyou a157dab3bb add DataView.prototype.setBigUint64 DataView.prototype.setBigInt64 DataView.prototype.getBigUint64
and DataView.prototype.getBigInt64
https://gitee.com/openharmony/ark_js_runtime/issues/I51KPJ

Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2022-04-08 16:17:00 +08:00
openharmony_ci 78c38d9a2b !918 add SharedArrayBuffer
Merge pull request !918 from 赵杜炜/master
2022-04-02 11:58:42 +00:00
zhaoduwei fb0eaa03da Added SharedArrayBuffer module code
Added SharedArrayBuffer module code to support ECMA function

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

Signed-off-by: zhaoduwei <zhaoduwei1@huawei.com>
2022-04-02 18:46:20 +08:00
openharmony_ci f8b36e6882 !738 Add Container Deque And Container Stack
Merge pull request !738 from zhangjixing/deque_and_stack
2022-03-30 02:13:32 +00:00
zhangjixing 219dd0bd8d Add Container Deque And Stack
Description
  To ensure the high performance of container classes, Deque and Stack
  is provided in ark.
Related issue
  #I4X8GV:Add Container Deque And Stack

Signed-off-by: zhangjixing <zhangjixing4@huawei.com>
2022-03-29 18:13:38 +08:00
liu-qiang12 91649cfe9e Add international specification module displaynames class code
Signed-off-by: liu-qiang12 <liuqiang187@huawei.com>

https://gitee.com/openharmony/ark_js_runtime/issues/I4ZYTA
2022-03-28 17:29:53 +08:00
openharmony_ci 250b779450 !788 Add typedArray and array extensions
Merge pull request !788 from 王犇/master
2022-03-24 08:26:01 +00:00
wangben 69645a86eb Add typedArray and array extensions
Signed-off-by: wangben <wangben15@huawei.com>
2022-03-24 10:24:32 +08:00
xujie 479b7c3785 Clean Code For CodeHub Issues #96-#123 And #250-#264
According to the problems pointed out by the issuer and the
specifications compiled by Huawei, modify the non-compliant
parts of jsruntime.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Iceb771dfd9f3aa9017205068fc50ab1a63aae08b
2022-03-21 17:09:19 +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
openharmony_ci 579c3c1729 !546 Add Container Queue
Merge pull request !546 from chenqi/container_queue
2022-03-07 11:43:30 +00:00
panzhenyu1 45ee297dd0 Bugfix for windows support patch
Description: add output_extension = "so" and fix typo bug about ICU path
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4WNRU

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: If8806daf2e99278d3443bd839c0be9a1d9f69e07
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-03-07 16:15:54 +08:00
chenqi 5788c64ffb Add Container Queue
Description
  To ensure the high performance of container classes, Queue is provided in ark.
Related issue
  #I4TKAU:Add Container Queue

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-03-05 16:55:38 +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
liuganlin 3f3e0162ac Add container ArrayList
Description
  To ensure the high performance of container classes, ArrayList is provided in ark.
Related issue
  #I4T65T:Add Container ArrayList

Signed-off-by: liuganlin <liuganlin@huawei.com>
2022-02-18 10:37:31 +08:00
xliu 0bb3e25edc Description
To ensure the high performance of container classes, TreeMap and
  TreeSet is provided in ark.
  Add test cases for TaggedTree.
Related issue
  #I4PQ1G:add TreeMap and TreeSet

Change-Id: I5cda72d06a71380711374109a87e971af6a8c5b7
Signed-off-by: xliu <liuxin259@huawei.com>
2022-02-10 11:28:34 +08:00
xliu 0e37d240ee Add ark container macro switch and add arraylist in runtime_call_id
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: Iabb6c2dd5a2c8529750a83c01e7d6382b38eccc8
2022-01-11 20:02:57 +08:00
xliu aa2409e00f 1.add arraylist and ArkPrivate. 2.add special container in stub. 3.fix Switch
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I4082326fa075bce0c5c7bf8e6873282086fe5d6e
2022-01-04 19:30:40 +08:00
zhangyukun a97747fe18 Description:sync from code from wgr_master to ohos
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
xliu f4a2f13790 add arkTools.print
Signed-off-by: xliu <liuxin259@huawei.com>
2021-10-19 14:17:15 +08:00
yingguofeng@huawei.com 104878d175 Delete JSNativeObject
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I2f4a2e518497bf1f8a4724c63ef566cefed28271
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-10-09 15:28:48 +08:00