Commit Graph

83 Commits

Author SHA1 Message Date
yaochaonan
afd9688da8 Bugfix str.append will change pointer
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA5LFR?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I1e45923564a54a79337fe13f4549f918fd122923
2024-06-14 20:20:24 +08:00
yaochaonan
e18370eb6f Bugfix inputString have utf16
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA5BAS?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I31305c5c4b47015f5b16e92741324f6b83d547c1
2024-06-14 09:24:02 +08:00
openharmony_ci
8e542b7c9a
!7522 Optimize HostResolveImportedModule
Merge pull request !7522 from yaochaonan/convert
2024-06-09 10:49:51 +00:00
yaochaonan
9cb9420f16 Optimize HostResolveImportedModule
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9S6IW?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I14a6d3c825f5253b021550fab78dd01a4a8e7493
2024-06-07 14:25:04 +08:00
openharmony_ci
c229d7ab0e
!7651 优化代码性能
Merge pull request !7651 from 马昌友/master
2024-06-06 11:51:44 +00:00
xwcai98
172d8828bc Opt string.localeCompare
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9S5VE

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: Idc1aa1068e7918d3c218630aee1bfb333e8219a9
2024-06-06 09:52:10 +08:00
vb6174
833582215e Optimized the code performance of the arkcompiler library
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9UHWT

Signed-off-by: vb6174 <zhangyunhu@huawei.com>
2024-06-05 17:45:36 +08:00
@han_177
702f3d5e1d modify code alarms
Signed-off-by: @han_177 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KY1E
2024-05-14 11:37:18 +08:00
@han_177
96375fed10 修改告警:确保无符号整数不溢出
Signed-off-by: @han_177 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KXXD
2024-05-10 18:27:47 +08:00
zhangyouyou
4a5a0511f7 修改startWith处理utf16结果异常问题
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-04-24 10:09:09 +08:00
zhaojunxia
5850205dd5 modify ecma_string IsSubStringAtSpan
Signed-off-by: zhaojunxia <zhaojunxia@kaihong.com>
2024-04-12 16:53:29 +08:00
wengchangcheng
cd9a13a65a Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I8ce481ad36b98b1db52a131c433bf1bcb54bc3e0
2024-03-15 11:04:25 +08:00
Panferov Ivan
fc1ad1d126 Add check for empty strings. Optimize json parse builtin
Change-Id: Ida8d3039fd0a9abb11fa969493a1f6ba3cf3018b
Signed-off-by: Panferov Ivan <panferov.ivan@huawei-partners.com>
2024-03-14 18:14:50 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
chenjx-huawei
6d92e411f7 Optimize String.prototype.startsWith
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I948HZ

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: Ia13d2a47ea7f3c7cad0102680fdad31e6f96485b
2024-03-06 11:50:19 +08:00
wupengyong
c31ef65703 Reason:optimize string substring
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93NXN?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I24834da373f7d2512ace96e2f863a9d981c84eb9
2024-02-26 10:16:45 +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
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
huangtianzhi
4b7dfad83e Fix Debugger socket disconnects when decoding invalid unicode
Replace invalid codepoint by the replacement code, instead of encoding
it in UTF8

Issue: #I90MM4
Test: Build, Boost & Debug

Signed-off-by: huangtianzhi <huangtianzhi1@huawei.com>
2024-02-02 14:36:27 +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
liushitong
8b5794bc50 Modify code warning
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8UTG3

Signed-off-by: liushitong <liushitong@huawei.com>
2024-01-09 16:55:08 +08:00
yanpeng
16dc0d13c0 fix regress-955.js problem
Signed-off-by: yanpeng <yanpeng51@huawei.com>
2023-12-05 19:37:48 +08:00
yanpeng
621fcb9e69 fix some regress test
Signed-off-by: yanpeng <yanpeng51@huawei.com>
Change-Id: Ia0e02941344c67ee4b59459058e9fd8264a0a78d
Signed-off-by: yanpeng <yanpeng51@huawei.com>
2023-11-17 11:24:04 +08:00
DaiHN
c8aa4db942 Optimization of computing short-integer string's hash code
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83SNR

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I81a050d7f43fb60ce185685433ca9eceafd967d2
2023-11-02 20:01:52 +08:00
hecunmao
8bd96c2e70 BugFix: Number.parseInt(x,10) get an error result if x>=2147483648&&x<=4294697294
modify in EcmaString::ToInt , Modify the condition of return true ,Return true if n is less than the maximum integer value

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8BH22

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I28aeb80b1ef52a1501c1afdf60356f45be36a59a
2023-10-28 11:03:27 +08:00
openharmony_ci
2aae12f134
!4924 Optimize for-in loop
Merge pull request !4924 from zhangyukun8/master
2023-10-13 09:02:55 +00:00
zhangyukun8
eef37db2c3 Optimize for-in loop
1. Add EnumCache for simple properties and no-elements properties
2. Add fastpath for non-special objects
3. Avoid duplicated copy for slowpath
4. Transition hclass when detele prop in TS

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I84DMO?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I81648b44cc83a907c50ec90c9e8de3bbb104cef8
2023-10-12 10:00:43 +08:00
wupengyong
df45bf8b44 Reason:optimize string split and fix slicedString bug
Description:optimize string split and fix slicedString bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I84LJG?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I6ff124fb81f6e72384e6df0fe1cbb89836e73c4a
2023-10-12 09:47:01 +08:00
openharmony_ci
0e309bc050
!4834 fix flat string
Merge pull request !4834 from wpy111/master
2023-09-19 04:32:28 +00:00
wupengyong
6485b2a9a8 Reason:fix flat string
Description:fix flat string
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82DDI?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I8be0a9dd92eaeaa536363c0ec343f19776c9ed76
2023-09-18 19:17:26 +08:00
hwx1163501
feb2838f86 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I827RQ
2023-09-18 16:20:29 +08:00
openharmony_ci
98c9446759
!4732 优化Number.parseInt函数
Merge pull request !4732 from zhixinaa/ParseInt_StringToElementIndex
2023-09-18 04:02:36 +00:00
wupengyong
8d6b209dee Reason:fix js_stackInfo.cpp compile
Description: fix js_stackInfo.cpp compile
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I823GI?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Icd6e5343bf473995a63c471be09f32286ea1f473
2023-09-18 10:28:43 +08:00
zhixinaa
80beec904c Optimise Number.parseInt
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7XSO8

Change-Id: I9947a357b4a83277e618b1834a11c27afc87aa46
Signed-off-by: zhixinaa <1696730989@qq.com>
2023-09-18 09:10:44 +08:00
wupengyong
101d458e5f Reason:Add string fromCharCode ir
Description:add string fromCharCode ir
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I81HYS?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If65c4ff2b1f2f23dd3bd8e6220a714590c574b23
2023-09-16 11:38:34 +08:00
wupengyong
cb258789b8 Reason:Fix bug for slicedString
Description:Fix bug for slicedString
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZHTB?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If18961f4910af5800d8deb722532cc8e66ce75b8
2023-09-10 22:23:43 +08:00
wupengyong
fa4b637a68 Reason:Add SlicedString to optimize string.substring
Description:Add SlicedString to optimize string.substring
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7XUDH?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I4bb78eb5f66c480e160567704bca53c200dde74c
2023-09-05 19:45:47 +08:00
rentangyu
d49eac3009 运行ABC文件过程中,函数panda::ecmascript::EcmaString::FlattenNoGC存在空指针异常拒绝服务漏洞
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VZER

Signed-off-by: rentangyu <rentangyu@huawei.com>
2023-08-26 11:37:27 +08:00
xwcai98
bc6dfeff11 EcmaString::Concat bug fix
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VF5X

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: I401abcd5a477c61911b9af04c3da80679f2f692b
2023-08-23 17:52:43 +08:00
hwx1163501
47d704f25f Optimize string-related function
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7V3ZK

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: Iab38c79b7cfc49a4d02e03226f2bf8634ff8b1a3
2023-08-23 11:14:22 +08:00
hwx1163501
b59da810e0 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7S5SX
2023-08-10 17:35:58 +08:00
xiongluo
d622c14fca opt string table
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I6f10e8fcb0f9120c2cdba929b9731e4286a6ab8a
2023-08-01 22:05:57 +08:00
openharmony_ci
43bfd3480f
!4100 deregister module through dynamic import
Merge pull request !4100 from DaiHN/register
2023-07-10 03:20:26 +00:00
openharmony_ci
3545040542
!4369 Rectification of safety problems
Merge pull request !4369 from 韩靖/master
2023-07-10 02:55:47 +00:00
DaiHN
835ed2bb26 deregister module through dynamic import
issue: #I77Q59

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I83f5825c2003923a3ad1b5dcc011c350ff470df4
2023-07-09 21:31:21 +08:00
yaochaonan
0e846f3aa1 Bugfix memcmp size is wrongly set in stringEqual function.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7J6CA?from=project-issue
Signed-off-by: yaochaonan <yaochaonan@huawei.com>

Change-Id: I034cbb0e2b4d9e3497d8fd20e9a368f4385e7c7f
2023-07-07 10:28:10 +08:00
hwx1163501
54510590fc Rectification of safety problems
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7IC7Y
2023-07-06 17:24:49 +08:00
yaochaonan
6f54fefe44 Bugfix: TrimRight
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E8AV?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ia0486402792189353f8d335a1ef7ee520f6d8e46
2023-06-20 14:20:22 +08:00
yaochaonan
e0ae1b1c59 Bugfix TrimRight
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E8AV?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ic240d904d32dd5f3375254f7a65405f0af10051d
2023-06-19 21:11:06 +08:00
xiongluo
cf451e377d constant string optimization
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ieabea29874752fed615b0a911cf4118e791663eb
2023-05-08 17:07:03 +08:00