Commit Graph

6698 Commits

Author SHA1 Message Date
openharmony_ci
e85c3fbb75
!4913 Cherry-pick !4555, !4637, !4638, !4648, !4653, !4665, !4688, !4699, !4737, !4747, !4811 to 4.0-Release
Merge pull request !4913 from 李晨帅/OpenHarmony-4.0-Release
2023-09-25 11:26:28 +00:00
openharmony_ci
88cf1687e2
!4911 fix Symbol.prototype [ @@toPrimitive ] bug【4.0release】
Merge pull request !4911 from zhangyouyou/OpenHarmony-4.0-Release
2023-09-25 08:50:02 +00:00
lichenshuai
adc9cc669c Cherry-pick !4555, !4637, !4638, !4648, !4653, !4665, !4688, !4699, !4737, !4747, !4811 to 4.0-Release
Cherry-pick

Issue: #I8453T

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib4639fe5a47adfc579d4439a9becd4b8b8ed619e
2023-09-25 16:27:42 +08:00
openharmony_ci
7e86ab8352
!4910 修改函数原型报错ASSERTION FAILED: superFunc->IsJSFunction()
Merge pull request !4910 from 韩靖/OpenHarmony-4.0-Release
2023-09-25 07:27:51 +00:00
openharmony_ci
0116683aac
!4908 Cherry-pick !4861 to 4.0-Release
Merge pull request !4908 from chenlincl3/cherry-pick-dts2
2023-09-25 07:27:14 +00:00
openharmony_ci
800b4e762f
!4907 Cherry-pick !4858 to 4.0-Release
Merge pull request !4907 from chenlincl3/cherry-pick-dts1
2023-09-25 07:26:30 +00:00
zhangyouyou
0fff9162bf fix Symbol.prototype [ @@toPrimitive ] bug
Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
2023-09-25 14:12:22 +08:00
openharmony_ci
8a5e9aed0b
!4901 Cherry-pick !4857 to 4.0-Release
Merge pull request !4901 from chenlincl3/cherry-pick-1695608359
2023-09-25 06:10:53 +00:00
openharmony_ci
5fa6cde9dd
!4906 cherrypick !4890 to 4.0release
Merge pull request !4906 from 贺存茂/cherry-pick-1695612399
2023-09-25 06:08:36 +00:00
openharmony_ci
63a80124d0
!4902 Cherry-pick !4871 to 4.0-Release
Merge pull request !4902 from 贺存茂/cherry-pick-1695609179
2023-09-25 06:07:24 +00:00
hwx1163501
1c2360b934 修改函数原型报错ASSERTION FAILED: superFunc->IsJSFunction()
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I843RS
2023-09-25 13:23:11 +08:00
chenlincl3
5543583504 【修复】解决运行abc文件时,BigInt::ToInt64和BigInt::BigIntToUint64存在非法内存访问
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83ZDR
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: I07526ce153a4adccb398f57bb8a826e8da95e31a
2023-09-25 13:17:46 +08:00
hecunmao
4161cabcbd fixed c9db168 from https://gitee.com/he-cunmao/arkcompiler_ets_runtime/pulls/4890
solve the problem ecmascript/base/json_stringifier.cpp:SerializeKeys to an error while add an attribute causes an error
modify ecmascript/base/json_stringifier.cpp:SerializeKeys ,Add a variable 'hasChangedToDictionaryMode' to check whether it is converted to dictionary mode after executing the get function
if is true ,then use the dictionary mode method to read the value

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

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I5631ef0ef3134299781d0d5cb3ac722150bdd8f6
2023-09-25 03:26:39 +00:00
chenlincl3
05e3ba42d7 【修复】解决运行abc文件时,函数 BigIntHelper::RightTruncate出现断言错误
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82X60
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: Iefec681254a1916fa68309f8ea33c132f3c6d95e
2023-09-25 11:22:16 +08:00
openharmony_ci
21838c889d
!4899 Cherrypick! 4896 to 4.0release
Merge pull request !4899 from 刘家华/cherry-pick-1695603590
2023-09-25 03:15:10 +00:00
openharmony_ci
641df47350
!4900 Cherrypick! 4869 to 4.0release
Merge pull request !4900 from 刘家华/cherry-pick-1695605015
2023-09-25 02:46:49 +00:00
hecunmao
d8ce28f519 fixed f98d685 from https://gitee.com/he-cunmao/arkcompiler_ets_runtime/pulls/4871
Fixbug src is undefined in runtime_stubs-inl.h:415: RuntimeStArraySpread

modify the assert function call  in runtime_stubs-inl.h:415: RuntimeStArraySpread
delete the judge 'src->IsUndefined() && src->IsNull()'  in calling  assert
add an if statement to handle the case of src is Undefine and src is Null

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

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I49c4be25d62fa97e3c4d8a2ae0b3adf621d2aa64
2023-09-25 02:33:00 +00:00
chenlincl3
a669829566 fixed 86a8114 from https://gitee.com/f932565568/arkcompiler_ets_runtime/pulls/4857
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8302V

Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: Id9935eb4f331a417b86663bf17a6540c12fb42e4
2023-09-25 02:19:21 +00:00
刘家华
ccd5682810 Merge branch 'OpenHarmony-4.0-Release' of gitee.com:openharmony/arkcompiler_ets_runtime into cherry-pick-1695603590
Signed-off-by: 刘家华 <liujiahua12@huawei.com>
2023-09-25 02:07:46 +00:00
openharmony_ci
80b085b2b6
!4893 Cherry-pick !4876 to 4.0-Release
Merge pull request !4893 from 李晨帅/cherry-pick-1695476872
2023-09-25 02:00:09 +00:00
openharmony_ci
79f9bfb993
!4892 Cherry-pick !4886 to 4.0-Release
Merge pull request !4892 from 李晨帅/cherry-pick-1695476294
2023-09-25 01:57:52 +00:00
openharmony_ci
f36df2b6b2
!4894 Cherry-pick PR4877 to 4.0release
Merge pull request !4894 from chenjingxiang/OpenHarmony-4.0-Release
2023-09-25 01:50:53 +00:00
openharmony_ci
148aa27338
!4897 cherrypick !4849 to 4.0release
Merge pull request !4897 from 贺存茂/cherry-pick-1695537627
2023-09-25 01:47:47 +00:00
liujiahua
028255113c fixed 9c65aae from https://gitee.com/liujh1997/arkcompiler_ets_runtime/pulls/4869
BuiltsinMath的atanh函数传入BigInt参数,不能抛出准确的错误,进入到后续函数中
添加抛出错误函数,准确定位错误
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I839MQ
Signed-off-by: liujiahua <liujiahua1997812@163.com>

Change-Id: I6b949ec2aea11fa2efe725ef004168bb0886a8cd
2023-09-25 01:23:35 +00:00
liujiahua
c8b2a2a6c3 fixed e00b517 from https://gitee.com/liujh1997/arkcompiler_ets_runtime/pulls/4896
CreateObjectWithExcludedKeys类型混淆,无法处理Proxy类型
CreateObjectWithExcludedKeys类型混淆,增加对于proxy的处理
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83T14
Signed-off-by: liujiahua <liujiahua1997812@163.com>

Change-Id: I4e66e6dd5c27727fc7ba6518a29f9c4ff869c4b4
2023-09-25 00:59:51 +00:00
hecunmao
08539eac3c fixed 059023f from https://gitee.com/he-cunmao/arkcompiler_ets_runtime/pulls/4849
DTS2023090811437 PR commit Fix ObjectFastOperator::SetPropertyByIndex,StubBuilder::SetPropertyByIndex

Modify ObjectFastOperator::SetPropertyByIndex,Jude if jsType equal to  JS_TYPED_ARRAY then return JSTaggedValue::Hole()
Modify StubBuilder::SetPropertyByIndex

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I81P6X
Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I55736fb183a2aa954f3df43350bde6027342f455
2023-09-24 06:40:27 +00:00
chenjx-huawei
32935e01f6 Cherry-pick PR4877 to 4.0release
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83UFT

Signed-off-by: chenjx-huawei <chenjingxiang1@huawei.com>
Change-Id: I89be7c2d24b6884349aceb02f6635ad8bdf264b3
2023-09-23 22:22:37 +08:00
lichenshuai
775628db6c fixed 43e9ba1 from https://gitee.com/lichenshuai/ark_js_runtime/pulls/4876
[Bug]: ReplaceAllElements重定义漏洞

数组长度被更改后,进行越界判断。

Issue: #I83GH5

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I2c41c496a8b185172cf62d510518c6e516dbebaf
2023-09-23 13:47:52 +00:00
lichenshuai
ef1df73fbc fixed f1c47e4 from https://gitee.com/lichenshuai/ark_js_runtime/pulls/4886
[Bug]: ASSERTION FAILED in GetProperty

修复Proxy取Element的方式并处理栈溢出问题。

Issue: #I83SE7

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib04d02383f1475a9f7e8f07767eccbc43353a3e4
2023-09-23 13:38:16 +00:00
openharmony_ci
c10ca4f197
!4833 [Bug]: UT HProfTest用例失败问题修复
Merge pull request !4833 from wanghuan2022/cherry-pick-1695030613
2023-09-18 12:36:51 +00:00
wanghuan2022
4effa86380 fixed 468cc25 from https://gitee.com/wanghuan2022/arkcompiler_ets_runtime/pulls/4644
[Bug]: UT HProfTest用例失败问题修复

desc: UT HProfTest用例失败问题修复

solu:
在使用FileStream初始化文件流前需要保证传入的文件路径存在

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

Signed-off-by: wanghuan2022 <wanghuan80@huawei.com>
Change-Id: Ibfd951f7f94774becc45ae077154c08c88f05941
2023-09-18 09:50:15 +00:00
openharmony_ci
9bbd871e0c
!4714 Judge js method by IsNativeWithCallField in cpuprofiler when get method info
Merge pull request !4714 from suchongwei/cherry-pick-1693315300
2023-08-30 02:19:20 +00:00
Chongwei Su
768d760ea7 fixed 0fc9dc4 from https://gitee.com/su-chongwei/ark_js_runtime/pulls/4700
Judge js method by IsNativeWithCallField in cpuprofiler when get method info

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

Signed-off-by: Chongwei Su <suchongwei@huawei.com>
2023-08-29 13:21:40 +00:00
openharmony_ci
e99d9939f5
!4705 cherry-pick pr4672 into monthly
Merge pull request !4705 from lukai/cherry-pick-1693225967
2023-08-29 07:12:27 +00:00
openharmony_ci
eeb940936a
!4689 CpuProfiler give up get function info when function hclass is nullptr
Merge pull request !4689 from suchongwei/cherry-pick-1693034227
2023-08-29 01:58:22 +00:00
lukai
fc85c46cbc fixed 153010d from https://gitee.com/lukai25/ark_js_runtime/pulls/4672
Bugfix:utf16 json parse

In some special scenes, json parse will lead to crash
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7VMR0?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I2e6dfdf7813fb663faa72e57a0a302c77000444e
2023-08-28 12:32:48 +00:00
scw
6c378a00a1 fixed fe3a1a5 from https://gitee.com/su-chongwei/ark_js_runtime/pulls/4668
CpuProfiler give up get function info when function hclass is nullptr

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

Signed-off-by: scw <suchongwei@huawei.com>
2023-08-26 07:17:09 +00:00
openharmony_ci
d066507f8e
!4622 Eliminate HeapObject Check on the Elements of JSArray based on ElementsKind
Merge pull request !4622 from dingding/heapobject_check
2023-08-15 02:08:52 +00:00
openharmony_ci
71b6977d86
!4627 Bugfix on JsonParser::ParseNumber when strNum is less than double minimum
Merge pull request !4627 from chenjingxiang/json_parser_number_br
2023-08-14 13:26:28 +00:00
quiet-thought
bb87bddcdb Bugfix on JsonParser::ParseNumber when strNum is less than double minimum
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/pulls/4626

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I78969fd5a774f7cabf532f08b7ba9ad4378fd9d3
2023-08-14 19:34:05 +08:00
openharmony_ci
6d04866bfe
!4427 ECMA Script 2023规范-支持Array/TaggedArray prototype.toReversed
Merge pull request !4427 from 查维/master
2023-08-14 07:24:41 +00:00
zha.wei
22ea93f87f description:合并冲突
Signed-off-by: zha.wei <zhawei@kaihong.com>
2023-08-14 11:59:07 +08:00
openharmony_ci
4106c914da
!4608 Bugfix on JsonParser::ParseNumber when strNum is larger than double maximum
Merge pull request !4608 from chenjingxiang/json_parser_number
2023-08-12 10:17:39 +00:00
openharmony_ci
7b5de2906f
!4464 ECMA Script 2023-支持TypedArray.prototype.toReversed方法
Merge pull request !4464 from 查维/master
2023-08-12 09:54:59 +00:00
openharmony_ci
9ad2b493d2
!4603 opt array.concat
Merge pull request !4603 from maojunwei/tmp2
2023-08-12 09:27:02 +00:00
openharmony_ci
a9112d8e61
!4619 Bugfix on BuiltinsAtomics::HandleWithBigInt64 not timely return exception
Merge pull request !4619 from chenjingxiang/bigint_return_exception_br
2023-08-12 09:06:18 +00:00
openharmony_ci
e42be753ef
!4623 Fix typo
Merge pull request !4623 from 杨阳/fix_typo11
2023-08-12 08:47:42 +00:00
openharmony_ci
1b8c04a161
!4617 Bugfix on RuntimeStubs::RuntimeInstanceofByHandler return exception
Merge pull request !4617 from chenjingxiang/c_instanceof_ic_return_exception_br
2023-08-12 08:20:13 +00:00
openharmony_ci
dfec8997ab
!4570 TakeHeapSnapShot数组相关性能优化
Merge pull request !4570 from wanghuan2022/master
2023-08-12 08:16:22 +00:00
wanghuan2022
8b0934b43a TakeHeapSnapShot数组相关性能优化
desc: TakeHeapSnapShot数组相关性能优化

solu:
1.增加captureNumbericValue开关,对于数组内部elements遍历访问时用此开关控制是否生成number相关的node和edge;

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

Signed-off-by: wanghuan2022 <wanghuan80@huawei.com>
Change-Id: I1cc334268ddbf386e86c06c8569d9e6744b3dcc1
2023-08-12 14:25:41 +08:00