Commit Graph

61 Commits

Author SHA1 Message Date
zhouguangyuan
797a742853 Remove unused method
The string join is done by BuiltinsArray::Join, this method is unused, remove it to avoid misleading

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IANRSP
Signed-off-by: ZhouGuangyuan <zhouguangyuan1@huawei.com>
Change-Id: I689017374ada679fcd4c163c8181619e8dcdec39
2024-08-31 09:02:32 +08:00
zhouguangyuan
b3445a0048 Use TreeString for JSStableArray Join
Use TreeString when join large string array, to avoid allocate huge object.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAMWP9
Signed-off-by: ZhouGuangyuan <zhouguangyuan1@huawei.com>
Change-Id: Ia63b805fe634dfcc24a9f742553fcf205d54ba98
2024-08-29 17:57:50 +08:00
hecunmao
d2934063f9 Revert PR:7333,7083
TypedArray.findlast performance deteriorates by more than 80%

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAFZGY

Signed-off-by: hecunmao <hecunmao@huawei.com>

Change-Id: Ie016f7a787c001a7224e54234f5b82d6dd974a19
2024-07-28 15:37:42 +08:00
openharmony_ci
16cae1e039
!7332 修复Array join嵌套Array join执行异常问题
Merge pull request !7332 from liujia178/mjsunit_array_join
2024-07-03 12:43:58 +00:00
liujia178
ba82665e8c Fix array-length.js and typedarray-construct-by-array-like.js
Signed-off-by: liujia178 <liujia178@huawei.com>
2024-07-01 18:04:54 +08:00
liujia178
976c38d645 Solving the problem of loop join being blocked by noCircular
Signed-off-by: liujia178 <liujia178@huawei.com>
2024-07-01 13:24:53 +08:00
openharmony_ci
5943a680db
!7755 Support the splice interface of shared array.
Merge pull request !7755 from lijiamin/master
2024-06-18 06:52:27 +00:00
lijiamin2019
6cc7e121e4 Support the splice interface of sharedArray
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I08cc68bed53be76c96e6cb1441e37dba65125881
2024-06-18 11:51:23 +08:00
openharmony_ci
f74723b03e
!7361 超大函数整改:JSTaggedValue JSStableArray::Splice
Merge pull request !7361 from 马志伟/master
2024-06-01 06:43:02 +00:00
dov1s
555f00b5e3 Add fastpath for elementkind
issue:#I9O499

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: Icad8c5624d50fa492c56fed8eec568d63a5d682c
2024-05-24 15:11:45 +08:00
马志伟
dd794ac74a 超大函数整改:JSStableArray::Splice
Signed-off-by: 马志伟 <mazhiwei10@h-partners.com>
2024-05-20 10:39:43 +08:00
Gymee
8451e52e23 Fix some typedarray bugs and Add UT
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9GBNL
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: If113fb56a5ebf1dfd4aadfb4414755596fe0ae88
2024-04-14 19:37:09 +08:00
liujia178
e73a05c41c Array Some IR 化
Signed-off-by: liujia178 <liujia178@huawei.com>
2024-03-23 12:57:31 +08:00
openharmony_ci
3405f23b86
!6320 Opt array.reduceRight
Merge pull request !6320 from liujia178/ArrayReduceRightIR
2024-03-23 04:04:57 +00:00
openharmony_ci
507b56d01e
!6581 Support shared map and set
Merge pull request !6581 from Gymee/add_sendable_map_and_set
2024-03-23 00:29:13 +00:00
hzzhouzebin
d946ae422e Support SendableArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93TZC
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: Ia026a07e7457a67a47df120c91b85fa372a003a7
2024-03-22 22:50:31 +08:00
liujia178
69499c2d59 Array ReduceRight IR 化
Signed-off-by: liujia178 <liujia178@huawei.com>
2024-03-22 18:34:05 +08:00
liujia178
f138e6723f Array FindLast IR
Signed-off-by: liujia178 <liujia178@huawei.com>
2024-03-21 20:23:35 +08:00
liuzhijie
f55b0ca41a Optimize Array Fill & Stobjbyvalue Typedpath
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TBFL?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: Ie9b8a1be61f1d617ea4152e58c47ab9da4d7ee26
2024-01-04 11:28:44 +08:00
yaoyuan
61afc6feb7 ElementsKind-Part2
Enable Interpreter ElementsKind but with option as false
ISSUE: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8M1RU

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Ic2d0d4ecc1a0e08220aa2a2be4ad293ded725f07
2023-12-18 15:57:47 +08:00
hecunmao
47ae00d198 From 501c20cf69698cde5254bdf4f45c43ee6ddc09a4 Mon Sep 17 00:00:00 2001
From: hecunmao <hecunmao@huawei.com>
Date: Fri, 15 Dec 2023 16:40:25 +0800
Subject: [PATCH] JSStableArray::Splice modifies a COWArray
 issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ORN4
 Signed-off-by: hecunmao <hecunmao@huawei.com>

Change-Id: Ifaf7ed3d623dc871d4df91ee4ef2197212880ceb
2023-12-16 21:18:40 +08:00
hecunmao
7344969ff5 Array.prototype.splice get an Error result where argv modify the array
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8O6N4

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ifa54f85563c3b8055620de50e9ee8b67186ca252
2023-12-14 09:47:34 +08:00
hwx1163501
ba9ec46644 array.splice进入JSStableArray::Splice后,经过JSArray::ArraySpeciesCreate后,thisObjHandle不再是StableJSArray
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8MFFT
2023-12-07 12:33:41 +08:00
DaiHN
c89cc159e2 bug fix of JSStableArray::Reverse using std::reverse
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8GT7X?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I79edbe4a74860a4d1f6a38db30db77177ab24468
2023-11-15 21:43:07 +08:00
wupengyong
984d952d91 Reason:add array sort stablearray fast path
Description:add array sort stablearray fast path
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AJ71?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If57e67bf6a2c9c31e7054f406639dfe63db3253c
2023-11-01 11:19:04 +08:00
hwx1163501
8edfab5e9d 整改圈复杂度
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZFJP
2023-09-23 10:38:41 +08:00
yaochaonan
bfaa39a31e Optimize Object.keys, Array.foreach, Map, Set, WeakMap, WeakSet
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Z6NE?from=project-issue
Signed-off-by: yaochaonan <yaochaonan@huawei.com>

Change-Id: Ied4e891b35cb02f85df512f3339247a2a01fe73e
2023-09-11 16:32:50 +08:00
openharmony_ci
aa2cbd48b4
!4699 修复Array.prototype.with(), Array.prototype.toSpliced(),Array.prototype.toReversed()存在问题
Merge pull request !4699 from shen-zhebei/master
2023-09-01 07:51:07 +00:00
shen-zhebei
4af173b6d8 Fix array problems
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VXZ8wq

Signed-off-by: shen-zhebei <1246431727@qq.com>
Change-Id: Iae8ed9ab4fa45e8f94e1c6d069585293c442fd73
2023-08-29 10:01:29 +08:00
Onlynagesha
8a41bb695e Optimizes Array.prototype.reverse for stable arrays
Optimizes Array.prototype.reverse for stable arrays by eliminating
unnecessary Get/Set operations, replacing with raw TaggedType data manipulation.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VQSX

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I2ba6df75e6823a3b4bb5d78315525307fc746eb2
2023-08-29 09:29:23 +08:00
openharmony_ci
2f2e5289a6
!4614 Array.prototype.indexOf与Array.prototype.lastIndexOf实现stable array的性能优化
Merge pull request !4614 from Onlynagesha/dev-builtin-2
2023-08-21 13:04:33 +00:00
Onlynagesha
721d6147fa Optimizes Array.prototype.indexOf and Array.prototype.lastIndexOf
Optimizes the stable array case where elements are stored contiguously
by eliminating redundant type checks during comparison.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7PE80

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I95e3a4d9270f48ce18aff41a252f71c699ef0ce4
2023-08-21 17:37:52 +08:00
openharmony_ci
ae6079d190
!4640 opt array.reverse & bugfix
Merge pull request !4640 from maojunwei/array_opt
2023-08-21 07:39:05 +00:00
dov1s
397d2a06fc opt array.reverse
issue:I7U339

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I8f35e19dfcc898039749f19ab9b4b722d6f74f7b
2023-08-21 09:42:49 +08:00
openharmony_ci
1467f8f1fc
!4629 运行ABC文件过程中,函数panda::ecmascript::builtins::BuiltinsTypedArray::Set存在堆越界写漏洞
Merge pull request !4629 from 王笑佳/master
2023-08-19 10:04:13 +00:00
王笑佳
e1affc730c Fix 函数panda::ecmascript::builtins::BuiltinsTypedArray::Set存在堆越界写漏洞
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7TB6W

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-08-18 16:46:17 +08:00
dov1s
dc38dc6647 optimize array.slice
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7TBM5

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I7a7af9bc1ad35718bcf55f791d331ca9971fe38b
2023-08-17 19:39:03 +08:00
zha.wei
22ea93f87f description:合并冲突
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-08-14 11:59:07 +08:00
zha.wei
0d11cd9683 description:解决冲突
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-08-11 10:49:17 +08:00
wuwenlu
26784cd235 Add findLast and findLastIndex for Array.prototype and %TypedArray%.prototype
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-08-09 01:16:04 -07:00
查维
f0d930084a Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-09 02:29:46 +00:00
查维
ca768d783d Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-09 02:21:22 +00:00
查维
162ff9eb9c Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-09 02:18:36 +00:00
maojunwei
ef6fd9f3d7 Optimize Array.reduce
issue:I7QMTO

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I536f305d1c7a9b589e6085b476b818a5cc4c49d1
2023-08-08 16:19:40 +08:00
zha.wei
be5f97cacf description:add js_stable_array ut test case
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-26 16:41:48 +08:00
zha.wei
9a3ea6233f description:code review error fix
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-26 09:55:09 +08:00
zha.wei
def270e6fd description:ECMAScript 2023 支持Array.prototype.toSpliced方法
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-24 09:24:32 -07:00
zha.wei
1eecc5aff1 ECMA Script规范2023 array/TaggedArray.prototype.with
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-21 18:01:56 +08:00
zha.wei
96483175aa description:ECMA Script 2023规范-支持Array/TaggedArray prototype.toReversed
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-13 19:34:22 +08:00
zha.wei
f8e4c5ea4a description:ECMA 2022规范支持TaggedArray.At
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-06-28 11:38:24 +08:00