Commit Graph

88 Commits

Author SHA1 Message Date
YuliCheng
7bfcdbae0a Fix bug, if Try FastPath can't find a property, use
JSTaggedValue::HasProperty

Signed-off-by: YuliCheng <chengyuli1@huawei.com>
Change-Id: Ie4d915560c693bd092405feae39cd4c791ed9d68
2024-05-25 10:35:17 +08:00
openharmony_ci
5efbed6fb7
!6694 [新需求]: ArkTS bitvector支持
Merge pull request !6694 from liujia178/bitVector
2024-05-17 15:04:43 +00:00
liujia178
912623c7c3 Add BitVector Containers
Issue:I9CB36

Signed-off-by: liujia178 <liujia178@huawei.com>
2024-05-17 18:31:21 +08:00
Gymee
67d7fe0243 Fix code style
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9P72Q
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ie6943ffc145142d53273821db893be3f6eb5547c
2024-05-17 10:57:26 +08:00
YuliCheng
9b3d14dd51 Bugfix Napi Optimization PR cause compile failure
Signed-off-by: YuliCheng <chengyuli1@huawei.com>
Change-Id: I201ab95710321f7910365684484bed2a84332fac
2024-05-17 09:20:22 +08:00
openharmony_ci
518d1fa44c
!7241 NAPI Optimization - Get(Has, delete)Property
Merge pull request !7241 from YuliCheng/Refactor
2024-05-14 11:02:23 +00:00
YuliCheng
6a72dec572 Rafactor Get, Has, Delete property
Add Napi Try Fast for Get, Has property refer to Napi Refactor Part1

TryFastGet(Has,Delete)Property only work when key is number or string and not dictionarymode otherwise return JSTaggedValue::Hole

Signed-off-by: YuliCheng <chengyuli1@huawei.com>
Change-Id: Ie9ab165802495cd5f3144d860eeef81437a7491a
2024-05-13 19:31:20 +08:00
zhanheng
a0090ce8c6 fix ide heapdump
Signed-off-by: z00522183 <zhanheng2@huawei.com>
Change-Id: I1860c2a354012fdfd6c39cb36a5f871fec1a2cbc
2024-05-11 12:28:40 +08:00
openharmony_ci
f084535aea
!7142 [新需求]: string IR fast path 性能优化
Merge pull request !7142 from 李晨帅/stringIR
2024-04-29 17:55:32 +00:00
lichenshuai
aad3aa62c4 [新需求]: string IR fast path 性能优化
当前,对于"string".length,"string"[0]这类写法,IR中的GetPropertyByName会返回hole,导致走SlowPath,从而CallRuntime,产生耗时。
因此,对于这类情况,需要进行优化。

Issue: #I9JQE5

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I1631cd06b9e3cdda3a026524c36dcc9ff625faae
2024-04-29 16:11:09 +08:00
openharmony_ci
1e03338592
!6719 Optimize string regexp fastpath
Merge pull request !6719 from yaochaonan/match
2024-04-25 12:32:11 +00:00
yaochaonan
911a7c1b37 Opt string regexp
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9CRLW?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I5c61752f3be923a4d9c48086613afcff5d0d3512
2024-04-25 16:51:36 +08:00
yaoyuan
c532bb0be0 NAPI Optimization - Get and Set Named Property
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9ID0L

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Id99b1a6a539d1d98b2a4bdc764ef491ba0f41f49
2024-04-21 15:36:25 +08:00
yangcheng
1bb9e5a818 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: yangcheng <yangcheng89@huawei.com>
2024-04-08 22:35:32 +08:00
yangcheng
81d2b46e54 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: yangcheng <yangcheng89@huawei.com>
2024-04-07 15:53:00 +08:00
yangcheng
ee51090484 support SENDABLE_JSON parse return sendable object
Signed-off-by: yangcheng <yangcheng89@huawei.com>
2024-04-06 15:43:22 +08:00
hzzhouzebin
93b2fdb032 New API for SharedArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9D0L7
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I4625ed4531180b4a6db45d65c0ebaa7482a88a83
2024-04-02 07:56:43 +08:00
openharmony_ci
d0896b61f3
!6571 Fix of import function failed across thread under certain circumstances
Merge pull request !6571 from DaiHN/sendable_module_fix
2024-03-23 15:42:33 +00:00
DaiHN
bbbbd13688 Fix of import function failed across thread under certain circumstances
issue : I997OU
1. Fix of import function failed across thread under certain circumstances
2. support cjs/json/native so in LazyExecuteModule

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Id27da5b215582543a3f639d59365488dd33c2628
2024-03-23 20:37:01 +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
wengchangcheng
3332c54774 Merge remote-tracking branch 'openharmony/dev_shareheap' into dev_shareheap
Change-Id: I0f297a336b2bcd5d4065f99d3de6d02e58cbe036
2024-03-16 23:04:40 +08:00
Gymee
1a26c88329 Support BigInt in Sendable object
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I98ZHH
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ief90140eaf019ff85eb657964b0e8a0e37d5ee68
2024-03-16 11:31:05 +08:00
wengchangcheng
65984f4aa8 Merge remote-tracking branch 'openharmony/dev_shareheap' into dev_shareheap
Change-Id: If69df3b9dfd9910c1dab772726ebeb486080a1ed
2024-03-16 10:12:19 +08:00
lukai
6edb976190 Fix some bugs for sendable
1. Fix unsafe memory access after thread state transtion.
2. Fix unsafe heap iterate due to unintialized object.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I98ZB3?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ia2417010800393a14e6c03dbe25d1a6f78bee8e8
2024-03-15 18:51:39 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
lichenshuai
6b71e0b044 [Bug]: CreateDataProperty快速路径导致static未走define语义
对于static的情况,走define语义。

Issue: #I8XNRO

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I271926b42288035e14c63763f207d52a3358dad6
2024-02-28 16:43:49 +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
wengchangcheng
0ed9f00a08 Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I73e06e67e44d7bd2492ba0615c2ac62b4979ef36
2024-02-19 00:14:55 +08:00
hzzhouzebin
dd29d39e22 Support IC checking for shared
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I90UVW
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I2921dbbe09a84eb3251bdcbd817a74a2927a2d28
2024-02-17 15:33:19 +08:00
hzzhouzebin
a1308124c3 Move EcmaString & StringTable on Shared Heap
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YVTQ
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I04d16d68f38be1679f206a782ef76b9d34142589
2024-02-07 23:13:44 +08:00
hwx1163501
7e6b8095cf modify code alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I90E4E
2024-02-02 09:06:44 +08:00
杨云飞
3d46f60485 异常未及时返回part3
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2024-01-26 11:28:00 +08:00
linxiang8
aab77c075a fix track-field
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YDH2
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: I7353d785709222b26308118d4cebf242090cadb4
2024-01-23 20:41:32 +08:00
杨云飞
bc467ba51c 处理异常未及时返回
Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2024-01-23 10:50:13 +08:00
yanpeng
1fc917f876 修改JSTypedArray::FastElementGet当IsDetachedBuffer时不抛出异常,返回undefined
Signed-off-by: yanpeng <yanpeng51@huawei.com>
Change-Id: I4d381190e3cd6758f93542699ad9f62c9f5b8357
2024-01-05 18:04:50 +08:00
wupengyong
09e16fc34a Reason:add propertycache clear success Assert
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8SFH1?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I22066c1969d773a0595ecbac9809c8ddef7599bf
2023-12-30 16:07:02 +08:00
hzzhouzebin
85f30d1a11 Add UT for shared checking
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8QUU0
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I8ac4ca085e95b066543ead9b52ff894395ce2902
2023-12-25 13:52:06 +08:00
hzzhouzebin
e322adfc46 fix codecheck for shared checking
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I38006a4209957d630f713cc8f4a60783f94845dc
2023-12-24 16:53:19 +08:00
hzzhouzebin
444db026e8 Revert Immutable
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: Ic45423dee3c8d54b1e6eb82cfbd8312a95090382
2023-12-24 15:13:16 +08:00
hzzhouzebin
fa9ea682c8 fix code review for shared check
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I352becaec9fecb9cca5fa00d32274e77a03617b3
2023-12-24 15:12:42 +08:00
Zhenyu Pan
d2ddf80032 Merge remote-tracking branch 'ets_runtime/master' into test2
Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I93bd738d08e7821daa0d9673e88c6c7415b543e8
2023-12-21 21:30:05 +08:00
hzzhouzebin
de7ac06d42 Add Immutable check
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: Idbec4b97ad6374cc89a7f39372b9e95f238e4c88
2023-12-21 20:11:20 +08:00
hzzhouzebin
db88ac8312 Add type checking when update share-obj
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I5144757bc7fd75ba2bbbabe8f05e53ea11764db2
2023-12-21 20:11:20 +08:00
hzzhouzebin
b2d2469dfc remove share-obj's read check and seal share-obj
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I3fe3d8a9de08dc2d82998679f97a831b9d8e40fa
2023-12-21 20:11:20 +08:00
hzzhouzebin
5b838d0963 Add shared checking for non-ic secnario
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I44afc653c23bc8ffef224c7e82d501820ba871a6
2023-12-21 20:11:20 +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
K0u1hw
bfeb03a429 Dump ReadOnly Crash As Info Level
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8OERN
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: Iebd78e181f9312ce79dd6f96ce05bc156fe7f3e0
2023-12-14 15:08:25 +08:00
openharmony_ci
cbc70b1b1e
!5518 Print Detail For ReadOnly Property JSCrash
Merge pull request !5518 from ChunyangWang/log_for_read_only
2023-12-12 14:31:23 +00:00
K0u1hw
ad17ee80e9 Print Detail For ReadOnly Property JSCrash
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8NUHZ

Signed-off-by: K0u1hw <wangchunyang15@huawei.com>
Change-Id: I23e2959e2f42dae1e84b4a09b5765fdd9b1ccee2
2023-12-12 20:28:44 +08:00
openharmony_ci
313a711d12
!5458 Bugfix AddPropertyByName
Merge pull request !5458 from maojunwei/bugfix
2023-12-08 03:34:00 +00:00