Commit Graph

51 Commits

Author SHA1 Message Date
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
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
wengchangcheng
7a171ba5de Descriptor: Fix daily build error
Details: Add limits header to common.h

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I04e6a22ebe5fbd3ef48884692557a86e52c5bcb8
2023-01-06 09:40:10 +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
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
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
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
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00