Commit Graph

132 Commits

Author SHA1 Message Date
like
0ce648c3bb Support global builtins
Change-Id: I32d654446b87e0672ddcb09d63ba3f5286f00c73
Signed-off-by: like <zhenglike@huawei.com>

add flag

Change-Id: I2a05ec5ad43dd1d3819d5ec0da88fa5644f92be1
2023-11-16 22:28:52 +08:00
liuzhijie
b7a21e857d Dictionary to array for fills
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8C4I2?from=project-issue
Signed-off-by: liuzhijie <jay.lau2020.work@outlook.com>

Change-Id: Ie79be53b1ec05381ca6339edb0e94ddfc63d09ea
2023-11-13 14:29:15 +08:00
openharmony_ci
35edadd3c4
!5155 GC BugFix Layout sync
Merge pull request !5155 from yaoyuan/layoutSync
2023-11-06 15:54:41 +00:00
yingguofeng@huawei.com
d2ce6cc655 Feat(Aot/PGO/Runtime): Profile Transtion hclass type and aot
Issue: #I872U3
Change-Id: I148cdbc6ac95022cd8dc4a5ad19e526344bb82a3
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-11-06 22:15:31 +08:00
yaoyuan
64894a3a73 GC BugFix Layout Sync
Issue: I8DT4U

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Id4915b82ec4ae4ead274fb6c7c7d503092dbd8ac
2023-11-06 09:31:42 +08:00
openharmony_ci
0ac5ae7dcf
!5058 Modifying Code Alarms
Merge pull request !5058 from 韩靖/master
2023-11-01 01:12:42 +00:00
openharmony_ci
7cfbad1d2c
!5025 Support profiling elements size and allocating space for jsArray
Merge pull request !5025 from lukai/sizepgo
2023-10-26 14:30:15 +00:00
lukai
5e3dfec9e0 Support profiling elements size and allocating space
Profile elements size and allocating space for jsArray
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8A23P?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I63ffa87cfb9564ede5f9fe5f3902f7cd781da27b
2023-10-26 19:25:27 +08:00
openharmony_ci
95e94e807a
!5021 Impl for-of and for-in HIR lowering
Merge pull request !5021 from zhangyukun8/master
2023-10-26 11:01:29 +00:00
hwx1163501
67d79df533 modify code alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8B52D
2023-10-26 17:22:46 +08:00
zhangyukun8
cba971f0e7 Impl for-of and for-in HIR lowering
1.Inline getnextpropname HIR of for-in
2.profile iterator type of for-of
3.Inline getiterator and next(call) of for-of
4.Update detector when set prototype

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I89SMQ?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib18d8b9529c41ec435d5d2d97839d82c389267b6
2023-10-26 15:40:03 +08:00
openharmony_ci
30ae8f2926
!5027 Complete pr 4963 of properties add 8
Merge pull request !5027 from xiongluo/complete_properties_8
2023-10-24 14:28:42 +00:00
xiongluo
b7150160c2 complete pr 4963 of properties add 8
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I63896508ecfc2b6a426428cc2a17aa8eab0c57ee
2023-10-23 16:01:02 +08:00
wengchangcheng
6c330e6ca5 Add Debugger UnitTest framework
modify some code lint

Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I89IL1

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I5add83c69bdce7bcf9d98a810165b429881cf37e
2023-10-23 09:27:37 +08:00
openharmony_ci
dd98d99fa7
!4963 properties Add 8
Merge pull request !4963 from xiongluo/properties_8
2023-10-20 13:44:52 +00:00
xiongluo
3fa56c9186 change props grow step 8
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ie1f4e7e234e14d317b3ca3204dbe6922421efd70
2023-10-20 16:25:32 +08: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
yingguofeng@huawei.com
9965382154 Perf(interpreter): Performance optimization for pgo
Issue: #I82L5B
Change-Id: Iea2024a0ac47251c2a73da4765c047fb31bc214c
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-10-09 16:25:18 +08:00
zhangyukun8
6d6bab6309 Avoid Re-enter interpreter of BuiltinString.prototype.replace
1.Add property detector for symbols
2.Avoid Re-enter interpreter for replace and exec functions

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83B0E?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I9c5fb772717e958e0900f7e3a1fb8fa7d11fd8e1
2023-09-25 10:19:15 +08:00
openharmony_ci
fc0419dd68
!4895 Tweak some code
Merge pull request !4895 from Gymee/code_tweaks_part2
2023-09-24 08:26:14 +00:00
Gymee
b46258fca4 Tweak some code
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83URA

Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Icaecc20e0ee4390b2e766f6e4681dd900253b144
2023-09-23 22:39:02 +08:00
lichenshuai
f1c47e48b4 [Bug]: ASSERTION FAILED in GetProperty
修复Proxy取Element的方式并处理栈溢出问题。

Issue: #I83SE7

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ib04d02383f1475a9f7e8f07767eccbc43353a3e4
2023-09-23 17:03:28 +08:00
yaoyuan
e64c49c7fb Optimization on JsObject GetHash
With assumption that hash value can only be int32,
we use GetInt() instead of ToInt32() to avoid redundant conversion.

Issue: I82QTD

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I29f0b38f65e0e102795132dc31bf2c92e26cd8d6
2023-09-19 21:59:01 +08:00
openharmony_ci
d1fa8692b6
!4839 修复Trim的assert失败问题
Merge pull request !4839 from huangzhenghua/bugfix-assert
2023-09-19 07:18:27 +00:00
huangzhenghua
60d6628851 bugfix assert fail of Trim
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82K5Q
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I8c1a1066fe18f6b9e95fa1ae1b4fcbd0fc8e80e1
2023-09-19 14:14:05 +08:00
yingguofeng@huawei.com
7b633520b5 Refactor>(PGO): PGO refactor
Adjust the PGO collection model. Complete type data collection by traversing the ProfileTypeInfo of Method through asynchronous threads

Issue: #I7UVD6
Change-Id: Ieb94892698d7a15d948b762ba057e4c0cf6ca1d2
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-09-17 16:00:55 +08:00
dingding
6ba3e3f1db Fix Serialization of AOT PlainObject
1. Fix Serialization of AOT PlainObject.
2. Add UT.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I81P1A

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I78c6fd31de2af7c41e3e2775a7b9c37d47114dad
2023-09-16 09:42:04 +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
openharmony_ci
cba011bcc0
!4780 Fix AddPropertyByName tagged array extend bug
Merge pull request !4780 from dingwen/master
2023-09-11 07:28:48 +00:00
dingwen
d81259c9c7 Fix AddPropertyByName tagged array extend bug
Description:Modify tagged array extend strategy
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZQ8G?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Idb88a8911b9d87df39e7e1cccc08cb1a1ddf4beb
2023-09-11 11:53:43 +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
bi-hu
6a67d17820 Solution: When calling JSObject:: GetAllPropertyKeys, passing in an empty obj will cause a crash
Signed-off-by: bi-hu <bihu@huawei.com>
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZB9J
2023-09-07 15:24:17 +08:00
hzzhouzebin
fb81ab9a7f Widden classType for external file
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7WY7J
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I15b85c141635cdc17d03b914c9189233c3595bb4
2023-09-06 21:34:38 +08:00
zhangyukun8
c8dbdf9e9a Deal with the situation that .rodata section and
.rodata.cst8 section are at different sides of text secton
1.Dont expand array size when create array
2.Calcute rodata sections at both sides of text section

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7XLUD?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I8fe91f11c61c917aa336e6c7ac4fd64745b2189e
2023-08-31 20:20:06 +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
wuwenlu
36af307871 修改Array对象的原型__proto__,某些场景下arr[index]和arr.at(index)值不一致
Signed-off-by: wuwenlu <wuwenlu@kaihong.com>
2023-08-25 00:39:31 -07:00
yingguofeng@huawei.com
b6f7a7d25f Refactor(runtime):Optimize bitfield jshclass and layout attribute
Issue: #I7S1J9
Change-Id: If4925ef46c185afa7bece3d539065892752453b0
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-08-15 20:36:53 +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
yingguofeng@huawei.com
169977e926 Feat(Aot): PGO ArrayLiteral elemnetKind for array aot opt
Issue: #I7NYFW
Change-Id: I59ed5b9c377f2ce6bad2723795309099e015f8df
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-08-09 23:09:42 +08:00
lukai
d963324406 Fix: concurrent marking may use inconsistent hclass
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7QZU8?from=project-issue
When main-thread transitions an object to a new hclass, concurrent
marking could load an incosistent hclass.

Signed-off-by: lukai <lukai25@huawei.com>
2023-08-07 12:02:21 +08:00
zhangyukun8
25f6530062 Function ptr support pgo inline
1. Collect method id of calltarget when call js function
2. Load gt by method id from pgo
3. Set call insts' calltarget type
4. Fix process method bug
5. Support pgo-aot testcases
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NMOO?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>

Change-Id: Ib7e92ab1b529195367af16f923c2e620f40f8a36
2023-08-01 18:48:24 +08:00
openharmony_ci
c3e8074edf
!4477 Support pgo profile for getter/setter
Merge pull request !4477 from yingguofeng/master
2023-07-25 10:09:20 +00:00
yingguofeng@huawei.com
ecbc459cc8 Fix(Aot): ObjectLiteral adapter trackField
Issue: #I7NL4U
Change-Id: Ie9e5f2a269bdac7a7b95098ad21b8dd0d74388ed
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-25 09:56:53 +08:00
yingguofeng@huawei.com
9406361da4 Feat(interpreter): Support pgo profile for getter/setter
Issue: #I7KUXS
Change-Id: I460596c0ec5a02ad020841c7bbf93720c330e2d7
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-22 11:55:16 +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
openharmony_ci
d3f5f08846
!4410 Bugfix: In OrdinaryGetOwnProperty function, data accessor.value may not have property box
Merge pull request !4410 from yaochaonan/bugfix
2023-07-15 03:53:54 +00:00
openharmony_ci
9c7032212e
!4409 The caller of NewRuntimeCallInfo fails to promptly return an exception
Merge pull request !4409 from chenjingxiang/callinfo_return_br
2023-07-14 03:27:58 +00: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