Commit Graph

129 Commits

Author SHA1 Message Date
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
hzzhouzebin
904babd2ef Fix concurrency check
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9BTOM
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: Ie1cd3eaf321f3e499cb364d281e4fc2340d8c328
2024-03-27 11:19:49 +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
bf169e59a3 Fix conflict
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9AW49
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I7eca14cb7bf907f1a3c1ff164a5fdb5d8c4ebf52
2024-03-23 01:12:12 +08: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
maojunwei
3d7c1508e2 bugfix array.map
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I99DTP

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: Idfc334d22ef83c5c983588fa3f8e97e85ac904b4
2024-03-18 14:06:40 +08:00
openharmony_ci
1073e9ebef
!6302 opt array.map
Merge pull request !6302 from maojunwei/arrayopt
2024-03-15 06:14:42 +00:00
maojunwei
0aab2028c1 opt Array.map
issue:I943QV

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I1cbca6b2c2711bf207475307ae346cf8ba9ea638
2024-02-29 20:41:11 +08:00
hecunmao
0029a3c6a1 BugFix: Fix Some Bug in JsstableArray
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8Z5HL

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ia8a672ca8a1923b0bc5408c2004f17fd7a84b541
2024-02-26 21:13:42 +08:00
yaoyuan
84489b5cff ElementsKind-Part3 Prepare for AOT and switchOn
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9129O

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I9c2022042748542fd909043143c31bb3112841b9
2024-02-19 19:18:11 +08:00
hwx1163501
d6ac25842b 异常问题加固part1
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8Y3CY
2024-01-30 09:47:06 +08:00
liushitong
8df093dc46 Modify code warning
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8UTG3

Signed-off-by: liushitong <liushitong@huawei.com>
2024-01-09 19:54:37 +08:00
liuzhijie
fa24840f40 Fix Array Fill Elements
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TPC1?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I6ca8eb72e409eabe0034b8c710f06842efe80fbe
2024-01-04 20:21:02 +08:00
openharmony_ci
5caf6fe681
!5778 Fix isOneByte ASSERT
Merge pull request !5778 from ChunyangWang/fix_isOneByte_assert
2024-01-04 11:32:15 +00:00
K0u1hw
752896650d Fix isOneByte assert
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8TJ04
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: Iaf9390a3c576cadff5a64b635b0b51561bf4804f
2024-01-04 14:05:15 +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
hecunmao
bb5ab2763b Array Fail Test Case 2
1.Proxy.IsArray Stackoverflower
2.Array.Filter does not crawl the prototype chain
2.[].concat(obj)  the called number is error

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ic6f4a620560055c2406000ed38aaa807ddb02584
2023-12-11 21:13:01 +08:00
hecunmao
8ba49865a8 array failure use case
1.BuiltinsTypedArray::Sort does not check whether callbackFnHandle is callable
2.Part of the Array.prototype[Symbol.unscopables] attribute is missing
3.splice changed the hole value to undefined value

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ic82e67467c5f8db59855850aa02d84497d24ed83
2023-12-11 02:58:26 +00: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
openharmony_ci
7fe3873b1f
!5337 Opt typedarray.set & subarray
Merge pull request !5337 from xiaoweidong/typedarray
2023-11-28 09:41:59 +00:00
xiaoweidong
083005fc62 Opt typedarray.set & subarray with ir
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8JFVB

Change-Id: I00f43db9be84fa68c9ab5b9550d512932f9c8ca3
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2023-11-28 14:07:19 +08:00
openharmony_ci
10b854c6c4
!5334 修复array的slices接口返回数组获取属性异常的问题
Merge pull request !5334 from 杨云飞/master
2023-11-27 08:35:07 +00:00
杨云飞
ececdbe31e 修复slices接口获取属性异常问题
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-27 15:32:52 +08:00
openharmony_ci
c6a7100636
!5283 array.map没有爬取原型链上的数据
Merge pull request !5283 from 韩靖/master
2023-11-25 09:33:02 +00:00
hwx1163501
e85ea344a5 array.map没有爬取原型链上的数据
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8I5ZZ
2023-11-25 11:37:57 +08:00
杨云飞
8d9f113f58 修复slice返回数字获取属性异常的问题
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-24 18:30:41 +08:00
openharmony_ci
6ce28d7b3c
!5255 修复获取array.slice()返回数组的属性描述符与预期不一致的问题。
Merge pull request !5255 from 杨云飞/master
2023-11-23 03:23:10 +00:00
杨云飞
1acc4bf01e 修复slice接口返回数组获取属性异常的问题
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-23 09:09:46 +08:00
杨云飞
ee21c1a1c6 修复slice返回数组获取属性异常问题
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-21 19:03:54 +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
openharmony_ci
d224a4cd38
!5209 array.shift()把hole都转换成undefined
Merge pull request !5209 from 韩靖/master
2023-11-14 13:12:52 +00:00
Han
e9f3c26a13 array.shift()把hole都转换成undefined
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8FGNL
2023-11-14 19:28:19 +08:00
杨云飞
dc3e0d3ccd 修复自定义类型继承数组,flat和flatmap返回数组instanceof特定情况下失败的问题
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-10 09:50:12 +08:00
openharmony_ci
dfb620b986
!5125 arraypop没有爬取原型链上的数据
Merge pull request !5125 from 韩靖/master
2023-11-05 09:00:25 +00:00
杨云飞
cc9b4257bb array.findindex()没有找原型链上的数据以及查找不到undefined元素下标
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-04 08:43:46 +08:00
hwx1163501
046c885213 array.pop没有爬取原型链上的数据
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8DCLK
2023-11-03 17:32:05 +08:00
杨云飞
87d5c49bdb 修复array的findIndex查找不到undefined元素下标的问题
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8D8UH

Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2023-11-03 09:40:44 +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
hwx1163501
7bf4ecb246 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82I7G
2023-09-19 19:27:47 +08:00
openharmony_ci
332e3d4d90
!4767 Optimize Object.keys, array,foreach, map.get
Merge pull request !4767 from yaochaonan/optimize
2023-09-12 03:08:48 +00: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
Onlynagesha
180e0a3f87 Fixes circular header dependency
Eliminates circular header dependency in some fundamental headers like
js_thread.h, js_tagged_value.h, etc.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZPL4

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I5a78073992b77643718abdc1e0813485c0e439bb
2023-09-08 19:05:41 +08:00