Commit Graph

85 Commits

Author SHA1 Message Date
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
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
dd771f6f1e
!4670 Add ComputeElementCapacityHighGrowth
Merge pull request !4670 from maojunwei/array_opt
2023-08-25 09:40:30 +00:00
maojunwei
1bfe8ae21b Add ComputeElementCapacityHighGrowth
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VCIP

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I2196d72cf8d7a6fbef481321e7cff562b778c16a
2023-08-25 16:10:00 +08:00
hwx1163501
ba488524b3 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VR8O
2023-08-24 20:25:18 +08:00
openharmony_ci
f367dcb23a
!4651 修复Mac环境下js_stable_array.cpp的编译问题
Merge pull request !4651 from Onlynagesha/dev-builtin-2
2023-08-22 02:54:35 +00:00
Onlynagesha
208d39f709 Bugfix: Compilation issue in js_stable_array.cpp
Fixes a compilation bug on Mac platform.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7UXUJ

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: Ia5c1bd70a6e36b1e224b7524048c629510d95857
2023-08-22 09:57:37 +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
zha.wei
10a2fb5037 fix codecheck warnings magic number
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-08-09 11:39:47 +08: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
查维
8bbbd69fef
update ecmascript/js_stable_array.cpp.
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-09 02:23:04 +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
查维
038fe7a550
update ecmascript/js_stable_array.cpp.
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-07 08:36:22 +00:00
查维
3fe02da63a
update ecmascript/js_stable_array.cpp.
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-08-07 08:30:42 +00:00
zha.wei
5767287241 description:code review issue fix
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-26 17:51:13 +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
quiet-thought
3442c34d96 Bugfix on JSStableArray::FastCopyFromArrayToTypedArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NUZM

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I0f2f6c8e3c484d62e1bc53594641ca1bda1bd452
2023-07-25 20:44:21 +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
quiet-thought
88dc8aab97 Bugfix on BuiltinsArray::Join cicular reference problem
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NB0T

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Ie63a9f76b0dcdee0e9422b6fa8e8886a78256c96
2023-07-24 15:58:59 +08: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
hwx1163501
2785546c22 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7LOU0
2023-07-18 10:01:28 +08:00
zha.wei
ad4e4395f1 description:code check error fix
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-07-14 10:44:59 +08:00
quiet-thought
f596e410db The caller of NewRuntimeCallInfo fails to promptly return an exception
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7K7L6

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I69a5e2f415a51d7caf5aab5fdf7c2fe1de5da5c4
2023-07-14 10:18:21 +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
王笑佳
f2c60fbed0 Fix THROW_TYPE_ERROR_AND_RETURN Part 1
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7JU9Q

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-07-10 10:24:40 +08:00
查维
b8dea93bc9
update ecmascript/js_stable_array.cpp.
Signed-off-by: 查维 <zhawei@kaihong.com>
2023-07-06 05:49:07 +00: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
王笑佳
7e3170f617 函数panda::ecmascript::JSStableArray::Pop存在堆内存越界访问漏洞
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E784

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-06-19 10:39:24 +08:00
openharmony_ci
d6d1854875
!4240 Fix GetPropertyByIndex
Merge pull request !4240 from maojunwei/master
2023-06-16 09:17:30 +00:00
王笑佳
dc86ff3920 函数panda::ecmascript::JSTaggedValue::StrictEqual存在空指针异常拒绝服务漏洞
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7DLDS

Signed-off-by: 王笑佳 <wangxiaojia5@huawei.com>
2023-06-16 10:56:19 +08:00
maojunwei
96136b3428 Fix GetPropertyByIndex
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7D85R

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I87406d35d0fcdb1df15091d0c53dd220c1a5e7ec
2023-06-15 17:17:35 +08:00