Commit Graph

108 Commits

Author SHA1 Message Date
openharmony_ci
8d0c4157e9
!9316 add bound check for ConvertRegionUtf8ToUtf16
Merge pull request !9316 from zhouguangyuan0718/master-fix-convert-2
2024-09-14 11:50:32 +00:00
zhouguangyuan
cb362d2f90 add bound check for ConvertRegionUtf8ToUtf16
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAR8ZY
Signed-off-by: ZhouGuangyuan <zhouguangyuan1@huawei.com>
Change-Id: Ia74e4e7667af6dbc4b06afadcf1b407fca2a7dc9
2024-09-13 21:02:59 +08:00
hewei
1f49cf34ff Optimize jsapi encodeInto
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAL8WP

Signed-off-by: hewei <hewei215@huawei.com>
Change-Id: Ica2189d0f330f5ce6652e499a3d0506bca9013f8
2024-09-11 09:38:01 +08:00
韦国庆
f459a59f61 modifying an alarm
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAN9V6
Signed-off-by: weiguoqing <weiguoqing2@huawei.com>
2024-08-29 10:41:34 +08:00
openharmony_ci
eebd872c8c
!8664 optimize double2ecmastring
Merge pull request !8664 from duoml/double2string_opt
2024-08-24 15:48:39 +00:00
duomingliang
fd204178a0 optimize double2ecmastring
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJODL
Description:
optimize double2ecmastring, not use std::string

Change-Id: Ifb0ba983f6327e093ca1b4940361f347fd2f9636
Signed-off-by: duomingliang <duomingliang@huawei.com>
2024-08-21 11:22:53 +08:00
openharmony_ci
c06fef1949
!8597 rewrite IsUtf8EqualsUtf16 function
Merge pull request !8597 from 马昌友/master
2024-08-20 19:37:06 +00:00
machangyou
e4cdc3f18e rewrite IsUtf8EqualsUtf16 function
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAIWCC
Signed-off-by: machangyou <machangyou@huawei.com>
2024-08-19 09:55:19 +08:00
xusen
b5199d519c Ason add ut
Ason add ut

Issue:      https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJIVO
Signed-off-by: xusen <xusen15@huawei.com>
2024-08-13 20:32:03 +08:00
xusen
dd097c5b40 Ason json_parse.cpp add ut
Ason json_parse.cpp add ut

Issue:    https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAIHD9
Signed-off-by: xusen <xusen15@huawei.com>
2024-08-07 15:59:42 +08:00
Andrey Efremov
d8cf9a50f7 Optimize ArkJS VM build time
Issue: https://gitee.com/open_harmony/dashboard?issue_id=IACDZP

Change-Id: I729c3a2741cb2571d6f7184b2726e5f06eca802a
Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
2024-07-30 16:26:35 +08:00
wupengyong
956effcf4a Fix GetUtf8Length when get \0 length
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAF5RW?from=project-issue
Test: Build & Boot devices

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: If5bac1d81320fccd4821569a369c4e3bfc2c2e7a
2024-07-25 09:44:34 +08:00
chenjx-huawei
b019d7c7d4 DecodeURIComponent not return exception timely
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA6ZOO

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I2c9a2d94b8e1fde834818dd02b8f3de74a48e432
2024-06-21 10:02:56 +08:00
chenjx-huawei
d4615f36b7 Bugfix JSON.stringify when value type is JSNativePointer
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9V17F?from=project-issue

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I5b6ee80f2ed5dc34195f1e90e8899b4cec3c7f6f
2024-06-05 00:15:49 +08:00
qijinquan
37bcab81c1 fix : code check
Signed-off-by: qijinquan <qijinquan@kaihong.com>
2024-05-15 19:32:26 +08:00
qijinquan
5390135543 Merge branch 'master' into base_tests 2024-05-15 17:13:43 +08:00
dov1s
be7afd5746 Opt Number.toFixed
isuue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9K3A4

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I5f546b41b9dca9d80fc0608da4a505200765f14f
2024-04-29 19:03:07 +08:00
qijinquan
b0b793146e fix:base/test Refactoring
Signed-off-by: qijinquan <qijinquan@kaihong.com>
2024-04-29 15:08:07 +08:00
yang-19970325
cd97b621fd Revert sendable json
This reverts commit f0037defe0.

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I0b5de6c93dbad968208c8246fc3dab7e08904e68
2024-04-24 19:58:59 +08:00
yang-19970325
ad56146fcd fix code review
Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: Ic87225c03646df2ac81ace6699bd4aacbee387ad
2024-04-14 23:14:06 +08:00
yang-19970325
d731ec8de3 Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I5e12850f4130d555683cd52dd6aa0665899dd146
2024-04-14 23:11:38 +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
maojunwei
a393556b69 fix dtoa ut fail
Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: Ia262de1a740b7c66fd978490a162f83e76fe98b1
2024-04-01 16:56:45 +08:00
dov1s
1fbd86c756 opt DoubleToString
issue:issue:#I9BP84

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I4701f0c0e2cca61b0ad143dbab1c630f8ee6c49f
2024-03-30 15:55:58 +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
Panferov Ivan
a5e918efd2 Optimize JSON Parse builtin
Change-Id: I5f8afddf7faead9b9d5121f3c4ed6684531918f4
Signed-off-by: Panferov Ivan <panferov.ivan@huawei-partners.com>
2024-03-01 17:33:57 +08:00
Aleksandr Emelenko
5a48b9b5e7 [Suspend/Resume] Added mutator scopes and native scopes in the corresponding methods of the VM.
Changed JS thread state just after creation (now it is in NATIVE state before execution of the bytecode)

Issue:#I91O3N

Change-Id: I410c5c4a47a05e6e3b79cc41374431d1e9188503
Signed-off-by: Emelenko Aleksandr 00537379 <emelenko.aleksandr@huawei.com>
2024-02-27 20:32:15 +08:00
zhangyouyou
fa37c2d084
update ecmascript/base/tests/number_helper_test.cpp.
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-02-21 07:32:31 +00:00
zhangyouyou
faf29073f7
update ecmascript/base/tests/number_helper_test.cpp.
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-02-21 07:17:09 +00:00
zhangyouyou
0b83eedff5 修改跨平台用例结果不一致,修改UT
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-02-21 14:50:08 +08:00
lichenshuai
a3925edae9 [Bug]: decodeURI对部分输入参数无法正常抛出异常
在IsValidUTF8中添加最小值的检验。

Issue: #I91SXC

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Id23ff32b2af239a535ec7fd900df5c524f897ea7
2024-02-18 16:05:49 +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
zhangyouyou
1fa6bc2c5c fix Number.prototype.fix and toExponential toPrecision bug
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2024-01-17 09:49:13 +08:00
yaochaonan
a8354fecbd Support dynamicImport use variable string input, and concat OhmUrl in runtime
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8OMNO?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I47fa9deadf34196c1cf9a59a1fd171ea0561e669
2023-12-27 18:46:50 +08:00
openharmony_ci
5a25f33f57
!5551 add Mac UT and Omit failure cases
Merge pull request !5551 from fangting/master
2023-12-21 09:42:02 +00:00
wanghuan2022
de481b48a6 [Bug]:修复heapprofiler如果遇到中文时,IDE概率会解析失败的问题
desc: 修复heapprofiler如果遇到中文时,IDE概率会解析失败的问题

solu:
由于中文大多是多字节的utf8编码,当heapprofiler上报采样数据时,可能会从中间截断,导致数据不满足utf8编码,从而解析出现问题;
解决方法是把所有中文字符以\u{unicode码点}形式表示,这样转换后都是单字节字符,即使截断也不会有问题

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

Signed-off-by: wanghuan2022 <wanghuan80@huawei.com>
Change-Id: Ibf75d336261026f0ec6ca556dbfc2176a22c8ce7
2023-12-20 18:11:20 +08:00
fangting
5e45e80ab1 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: fangting <fangting12@huawei.com>
2023-12-20 02:49:23 +00:00
fangting
0375140f4d add mac UT and omit fail testcases
Signed-off-by: fangting <fangting12@huawei.com>
2023-12-20 10:45:09 +08:00
zhouwenxuan
33f73f8c89 Optimize access control ark_unittest compilation time.
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8O9JB

Signed-off-by: zhouwenxuan <zhouwenxuan1@huawei.com>
Change-Id: I678964badec4e346ccb34440e85bb63066cb9cbc
2023-12-15 18:51:24 +08:00
yanpeng
16dc0d13c0 fix regress-955.js problem
Signed-off-by: yanpeng <yanpeng51@huawei.com>
2023-12-05 19:37:48 +08:00
ginxu
b41ec68832 JSON Parse Refactor
1. Recursive framework changed to loop framework.
2. Optimize json Array and Object creation.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8IXV8
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I5e369babad6ad0a3f710e1616cc48f9d1dd7158d
2023-11-24 16:43:00 +08:00
huangfeijie
1387d7eede issue:https://gitee.com/openharmony/commonlibrary_ets_utils/issues/I83868
support TerminateExecution in Taskpool
Throw the exception when find the temination flag

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2023-10-31 16:44:57 +08:00
xwcai98
842847ee14 Refactoring JsonParser
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7YZRC

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: Iea91deb4251a349f45d52ee96002c381d4950bf5
2023-09-11 15:34:03 +08:00
g00416891
f536dc7338 Code Review for Builtins Array &BufferArray
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I4335220f59764dcd8cf2533f1ee946dfd97c10db
2023-07-18 17:03:12 +08:00
wuwenlu
70fa8fe91d cause property for Error objects
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-07-04 00:26:03 -07:00
hwx1163501
bb12007e69 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7G6OB
2023-06-27 14:18:20 +08:00
yaochaonan
fe105a6c1d Bugfix: DoubleToString
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E8AY?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I7f3ba80d0897c6f6d9aad955d2919ae86c93cd6f
2023-06-17 21:02:10 +08:00