Commit Graph

32 Commits

Author SHA1 Message Date
yuanyao
f09994eb01 BugFix of Array::Splice
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UCFA

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: If9ff14747ee5918f34cf225c24ee03a819b773c3
2023-04-10 17:34:13 +08:00
wangzhaoyong
b001990839 Modify the variable name and function name for typedarray and bytearray
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6CVK5

Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I95967687ededc8654448132baa7a6ca3c4e4f2bf
2023-02-06 19:40:56 +08:00
quiet-thought
859be30072 Fix stable array foreach problem
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I69HXO

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Iff1e90f2e892efda6e1f9e51d9f0d505a9f1c1a1
2023-01-09 17:14:42 +08:00
lichenshuai
e191c329e4 Bugfix for Array Return Hole
Fix JSStableArray::Pop() return Hole bug.

Issue: I65VQI

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I78241a9cdaf699227172eec07e0f16d0a8dabae6
2022-12-13 15:02:20 +08:00
wanghuan
1d29a3a825 add TreeString and LineString
desc: add TreeString and LineString

solu:
1. add TreeString and LineString
2. all string fucntions fit new construction

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5X82Y
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I6c6ded38ee67741b5c0f17f19b72e68a4375b303
2022-11-25 16:39:45 +08:00
Zhenyu Pan
7fb7ec3107 Fix crash caused by uncaught exception
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XZRO

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: Id01c15717f6133553abced9c71765569d41f9ef4
2022-10-29 17:55:25 +08:00
xiongluo
1291aa23a9 cow array optimize
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5V3ET?from=project-issue

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-10-26 11:37:49 +08:00
zhaozhibo
efd921e810 fix codex warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-10-10 18:00:13 +08:00
yaochaonan
cf04616373 bugfix TypedArray::Set handle
------------------------------------------
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5TSX5?from=project-issue
bugfix using element without handle
-----------------------------------------

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I7e15992e2ba51f478b15ee1e7bbf5486cc4bba7f
2022-09-29 21:46:24 +08:00
wanghuan
fb87d25973 ecmastring interface refractor
desc: ecmastring interface refractor

solu:
1.add EcmaStringAccessor to provide interfaces outer;
2.package interfaces to not expose internal implementation.

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NYV4
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I3d9da61068e6374372d75fecfb144e82d4fc4eb6
2022-09-23 16:29:26 +08:00
zhaozhibo
840e161b40 fix codex and codeCheck warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-09-15 16:26:32 +08:00
openharmony_ci
2c7dcd65b2
!2330 Modify unreasonable type of double in Array and typeArray
Merge pull request !2330 from huangzhenghua/double2int
2022-09-13 03:12:22 +00:00
huangzhenghua
269bdc5d5e Modify unreasonable double type
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5QF0H
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>

Modify the function of array, arrayHelper, typeArray, typeArrarHelper

Change-Id: Ib0c1c77de232b2d18b983ef0377e550bf513e067
2022-09-09 22:43:01 +08:00
xdmal
eb0ebc0361 Fix Array crash when switching between multiple users.
Fix Array crash when switching between multiple users.

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5PTQ2

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-09-06 09:16:22 +08:00
xdmal
46dd7d0add Optimize filter, reverse and sort in Array
Optimize filter, reverse and sort in Array

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LWPV

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-08-27 20:03:12 +08:00
小马奔腾
54e78290d9 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master 2022-08-10 08:36:31 +00:00
xdmal
cbf6c98007 Optimize interface in array
Optimize interface in array

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5INST

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-08-10 16:34:54 +08:00
lijiamin
970f40e89e Modify numArgs from int32_t to uint32_t
Signed-off-by: lijiamin <lijiamin24@huawei.com>
Change-Id: If92a6b948356799b37987eaa4043b12e9bd72e98
2022-08-05 17:06:00 +08:00
xdmal
b260eedb1b Fix array part 262 use case fail in debug mode
Fix array part 262 use case fail in debug mode

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5IVSR

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-07-26 11:10:49 +08:00
openharmony_ci
c29332c1d9 !1833 fix fuzztest errro and add new fuzztest
Merge pull request !1833 from zhaozhibo/master

Change-Id: I1e83c46e25d0a7c342e5c8e7ca5ff61c745b7582
2022-07-25 08:49:51 +08:00
xliu
4b27184ed7 Constpool object moved to old age
Description
  1.GC is frequent during constpool parsing
  2.Constpool object moved to old age allocation
Issue:
  https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5I8YT

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I0c88597f56a3ff60337fd21fa2d09d1dac004973
2022-07-23 11:31:35 +08:00
xdmal
8018643d5b Optimize interface in array
Optimize interface in array

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5H5DR

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-07-22 11:05:16 +08:00
hjzhangcm
a5375d8bca fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-07 17:33:05 +08:00
Rtangyu
9239bf226e fix json new array join bug
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5DFL0

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2022-06-23 10:29:49 +08:00
xliu
d364f99e52 fix EcmaString::FastSubString
Description
  In the FastSubString interface of EcmaString, which is a fast path,
  there is a logical error in judging whether characters are compressible
Issue:
  #I53HR7:fix EcmaString::FastSubString

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If8d93fadbae5805bb2c8a674f3fc7725a562c032
2022-04-20 10:08:40 +08:00
zhaozhibo
c239b44d80 fix codeDex warning(3)
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-17 15:23:43 +08:00
zhaozhibo
cc222126ad fix codeDex warning.
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-14 10:56:51 +08:00
wengchangcheng
99934b9037 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
wengchangcheng
839f39e500 modify ACCESSOR for EcmaString and TaggedArray
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I2995dc75ed34e8eb2bf249f2cced62ec9d91250e
2022-01-17 11:51:50 +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
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +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