Commit Graph

41 Commits

Author SHA1 Message Date
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 abef083f7f 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 18:23:12 +08:00
liu-qiang12 4bc727a885 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:59:28 +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
yingguofeng@huawei.com 2b48dab678 EmptyArray、EmptyTaggedQueue、EmptyLayoutInfo Move to GloblaEnvConstant.
When New class,It depends on EmptyLayoutInfo.So it must new EmptyLayoutInfo first.

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

Change-Id: I654ec61e7f3dc1ab55539dd64acba24489983107
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-03-25 11:05:13 +08: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
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
changjiaxing 5e225e01ca Improve the efficiency of roller execution
Description:
    Optimize the efficiency of bigint to number and uint32_t, uint64_t, int64_t to bigint
issue:
    https://gitee.com/openharmony/ark_js_runtime/issues/I4YU8Y?from=project-issue

Signed-off-by: changjiaxing <changjiaxing1@huawei.com>
2022-03-22 12:33:08 +08:00
openharmony_ci 5f0c650259 !703 modify transitions to weak reference
Merge pull request !703 from dingding/waek_transitions
2022-03-14 12:11:31 +00:00
ding e0b8620c6c modify transitions to weak reference
1.modify transitions to weak reference and delete parent field in JSHClass.
2.add targeted test case to intercept the issue.
3.fix weak ref in parallel gc
4.fix TaggedCastToWeakReferentUnChecked() in stub

Change-Id: I118d293a04390fba6c21179a0a8ac7993dae5e96
Signed-off-by: ding <dingding5@huawei.com>
2022-03-14 11:02:43 +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
lifansheng 506c1538e1 issue:I4WLER
description: supplement the Array, Object and Function type resolution for type system

add TDD test

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-03-08 14:51:24 +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
openharmony_ci 159a75d982 !671 Modify Containers
Merge pull request !671 from chenqi/fixContainers
2022-03-04 10:24:04 +00:00
lifansheng 8ed6cd9ef7 issue:#I4VX1Q
reason: so far there are some problems include the bad codes and the code architecture in the ts type system

    solution:modify ts type system code inculde refactor the function and class

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-03-03 17:25:07 +08:00
chenqi 7b32a7885f Modify ArrayList, TreeMap And TreeSet
Description
  1.fix arrayList GC bug
  2.add other containers case in lazy loading
  3.change containers Iterator ACCESSORS() to ACCESSORS_PRIMITIVE_FIELD()
Related issue
  #I4W3P3:Modify Containers

Signed-off-by: chenqi <chenqi151@huawei.com>
2022-03-03 17:02:21 +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
lifansheng 2964efc6b9 issue:#I4V1ZG
add macro PUBLIC_API and refactor the bad code, avoid some interfaces being optimized by the compiler

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-02-24 14:21:31 +08:00
lifansheng b39418de15 issue:#I4P7EY
Reason: To support AOT compilation, add ts type system to provide some
    interfaces and struct to wrap ts type and help type infer

    Description: create the global class TSLoader to expose the external
    interfaces, create the TSType and it's derived class, TSClassType,
    TSClassInstanceType, TSImportType and so on to wrap ts type in runtime.

    Add TDD unitest.

Signed-off-by: lifansheng <lifansheng1@huawei.com>
2022-02-22 16:50:20 +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
wengchangcheng 9a2b7d04e8 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
wengchangcheng 2bfd68c01a modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +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
ding c4ffd76fd3 template class
Signed-off-by: ding <dingding5@huawei.com>
2021-12-25 09:51:43 +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
getingke aef57e484b fixed for review by wuzhefeng
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I7ceab6e9cc8b42ba73255813419baa3619381676
2021-10-28 20:59:19 +08:00
getingke bc69122046 increase base class FrameHandler for iterator stack frame
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I5643f176c169a2d3a754b6ead66698a0a8e33351
2021-10-28 16:28:40 +08:00
xiongluo 1ec42f43ac heapdump
Signed-off-by: xiongluo <xiongluo@huawei.com>
2021-10-21 01:40:14 -10:00
surpassgoodchao d15fafc5ac fastboot review
Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
2021-10-12 12:26:02 +08:00
yingguofeng@huawei.com 4919c829e6 delete objectWrapper
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I0465495b40c9ad568bbc275ab026fa33e3120f26
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2021-09-27 14:19:21 +08:00
lichenshuai 58e37017f6 Change regexp flags from string to int.
Signed-off-by: lichenshuai <lichenshuai@huawei.com>
2021-09-18 16:26:50 +08:00
xiongluo 2fc660ebca bugfix for snapshot and change the elements number in jsobject
Signed-off-by: xiongluo <xiongluo@huawei.com>
2021-09-16 14:33:27 +08:00
zhangyukun 7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan 6960106b6b fix gn format
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iab79e850be3b63cd1898cc83cdd03b9448e6b3cf
2021-09-06 12:23:19 +08:00
wanyanglan 86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00