Commit Graph

187 Commits

Author SHA1 Message Date
ginxu
2c9208ea02 Optimized UnsharedConstPool
Avoid repeated loading of unsharedConstPool

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9T7JL
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: Id62309fe96e131fd78663cf338041e6380197f7d
2024-06-03 12:49:40 +08:00
ginxu
dbcf14f97d Bugfix For Constant Taggedvalue Judgment
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9S458

Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I40aab053d1b095ee649740bce23ca16089f6f6b3
2024-05-27 10:53:50 +08:00
openharmony_ci
4de7bf8178
!7390 Fix Aot DefineFun TypePath bug
Merge pull request !7390 from weng-xi/fix_definefun_bug
2024-05-24 10:07:31 +00:00
openharmony_ci
aa107491b4
!6721 Add actual argv in frameArgs
Merge pull request !6721 from 刘智杰/actual_argv
2024-05-23 16:07:41 +00:00
liuzhijie
769ec316c0 Add actual argv in frameArgs
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9CQZB?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: Iee5823ea613b1bb4b6952bfc402ec54b700d88a9
2024-05-23 22:14:02 +08:00
openharmony_ci
b269fc5e58
!7484 Bugfix For Shimo Workload
Merge pull request !7484 from 许杰/char_convert
2024-05-23 10:18:46 +00:00
ginxu
f3b2689f79 Bugfix For Shimo Workload
Fixed the bug that the char type value in framevalue was not converted

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9RBMT
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I71ca7c3b62f23f0d6111334c3ca65c5e7c1f3270
2024-05-23 15:58:44 +08:00
dingding
9d15de8852 Inline some builtins of Object Function Reflect
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KXK4

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I4bfa2df0ca295fea3594639483d271a746c82153
2024-05-20 19:52:51 +08:00
weng-xi
03cd8f83e5 Fix aot defineFun typepath bug
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9PIKP
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I4b7dd1e05ae91f743e96ae73145f0ac3f9b6bcc8
2024-05-20 10:52:21 +08:00
liuzhijie
f15f4fcb24 Optimize AOT NewObjRange
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9H3R6?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I6cfb557949befdd22343f3d9a5ed69bd9eb8a1fb
2024-04-28 11:07:38 +08:00
huoqingyi
f02aef4974 Remove TSManager and TSTypes
With the enhancement of the ability of PGO types, TSManager and TSTypes are no longer needed in the AOT compilation phase. So let's remove them.

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

Tests:
ark_js_host_unittest, AOT pog test262  AOT workload

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I381017de86c3f8f74ed84edd848b986bcf85a4b5
2024-04-18 19:02:45 +08:00
linxiang8
58abf70f8e rebase pgo_type to master
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9EE0H
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: Iaaf1b480e4a6dbfaebafb5153fd9f3c3e1eefbd0
2024-04-08 18:59:44 +08:00
linxin
b628b761b0 on stack replacement
Signed-off-by: linxin <linxinyq@foxmail.com>
Change-Id: Ic55f7b25c6d7e7f38c2169db1065c3cd499c7bfe
2024-03-26 17:26:11 +08:00
liuzhijie
d78cd5110d ldobjbyname support "iterator operation"
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I98CT8?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>
2024-03-21 16:03:08 +08:00
openharmony_ci
30d94b3068
!6360 AOT support destructuring assignment
Merge pull request !6360 from 刘智杰/destructuring_assignment
2024-03-12 15:26:28 +00:00
openharmony_ci
b8d3beb336
!6432 fix IF_SUCCESS requires depend node
Merge pull request !6432 from herongpeng/master
2024-03-12 12:25:19 +00:00
liuzhijie
60989eb7eb AOT support destructuring assignment
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I95QHW?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I329953ca606df89697f0ce0aed0b5bc9a5bd3f4d
2024-03-12 20:07:15 +08:00
zhangyukun8
aa399ffad4 Schedule sequentially from START_ALLOCATE TO FINISH_ALLOCATE
1. remove side-effect of STORE and HEAP_ALLOC
2. Schedule sequentially from FINISH_ALLOCATE
3. use write barrier flag to lower STORE
4. lower STORE and HEAP_ALLOC after schedule

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I952IC?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Id7589e6686b0cb01724a3de62dede86935a4bc0c
2024-03-11 20:35:19 +08:00
h30044958
7bbf2eab26 fix IF_SUCCESS requires depend node
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I97H8Y

Signed-off-by: h30044958 <herongpeng@huawei.com>
Change-Id: Id4150f9e2e4982f728386e5232f71321d963a509
2024-03-11 15:35:55 +08:00
ginxu
6c071437e2 Refactor GetConstpool
1. Change the way to get constpool from the current jsFunc to the current frameargs.
2. Having the same constpoolId before and after inline will no longer generate a new getconstpool opcode.
3. Deleted some useless code

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I95U7D
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I225cd89f736acaa4670eb3f216348c013d13a818
2024-03-06 16:21:43 +08:00
liuzhijie
e7e86c344d AOT StringAdd support "string add number"
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I936HP
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I0f73a578af18eee93dd2439a970f245fc73c70e4
2024-03-01 14:24:30 +08:00
openharmony_ci
da5e0adaf3
!6122 ElementsKind-Part3 Prepare for AOT and switchOn
Merge pull request !6122 from yaoyuan/elementsKindSwitchOffButPrepareAOT
2024-02-21 01:48:37 +00: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
liuzhijie
1409ae1994 AOT CopyRestArgs & GetUnMappedArgs fastpath
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YW81?from=project-issue
Signed-off-by: liuzhijie <liuzhijie9@huawei.com>

Change-Id: I6ba60df33116b48790361a2bf2ad78477ad6d3bc
2024-02-19 15:30:18 +08:00
wu_zhang_da
fe2a661824 Sliced String Add Optimization
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8R6SC

Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
Change-Id: Id8ca981d6e7fa23954ba6d76e1fd5c5daa477747
2024-01-18 17:30:32 +08:00
zhangyukun8
9e2d24a6a1 Refactor inline accessor check
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8SDFC?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I3d252f32dd4ba4305f1d38e07ea029b2388bf7c1
2023-12-30 14:39:23 +08:00
weng-xi
47157ac405 Support loop hoist for TryLdGlobalByName
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I8RSIT
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: If784f048754bf1d92e586de2fce035274ff4f646
2023-12-28 14:41:51 +08:00
weng-xi
2b384bff97 AOT development branch code integration
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8PYAN
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iff4ddb646f7f9d6455ca2a3328ab3f94f9dd8757
2023-12-25 18:17:52 +08:00
openharmony_ci
935c840fe3
!5120 PGO TypedArray On Heap
Merge pull request !5120 from dingding/pgo_onheap
2023-11-29 09:54:37 +00:00
dingding
35c6df4867 PGO TypedArray On Heap
1. Profile TypedArray’s information about the on heap and guide AOT optimization.
2. Retire the option: compiler-opt-array-onheap-check.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I3623adc5314eaddb6469245c75aecff6d6e44552
2023-11-29 15:12:05 +08:00
lukai
66bf26a731 Use hintSize to calaculate growing capacity
HintSize collected by pgo is used to calaculate growing capacity.
TrackInfo filed of jsarray will be used as hintSize(taggedInt) in aot compiling.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8J6TX?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I706fb19ff5d00e8db324b0c55986fedf18538c10
2023-11-26 11:02:22 +08:00
sunzhe23
8165552d8d Add StoreBarrier for memory order and reorder array initialization
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8IZ4L

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-11-22 19:14:25 +08:00
openharmony_ci
e631f5b19d
!5269 Preallocate elements for jsarray
Merge pull request !5269 from lukai/presize
2023-11-22 08:17:17 +00:00
yycc
08bffb5060 Enable stringeq on JS
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8H97J
Description: enable stringeq on JS

Signed-off-by: yycc <yuyicen1@huawei.com>
Change-Id: If11c8d0e6dbcb3da12d9422f9f884d33afd842cf
2023-11-22 14:38:28 +08:00
linxiang8
badaa33515 fix transition class bugfix.
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: I10b4f8f8e21a801beb2904092054b4c4959faa36
2023-11-22 09:19:34 +08:00
lukai
32d92b7d25 Preallocate elements for jsarray
Using elements length from pgo to preallocate elements for jsarray
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HIRJ?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I6b103f282463f2fcd1a885f03ef4930e2f2f6e1b
2023-11-20 11:10:09 +08:00
openharmony_ci
31595b6126
!5214 支持 Builtin Global 对象的识别
Merge pull request !5214 from Lasting/like-11-09-InitializeBuiltin
2023-11-16 16:22:44 +00:00
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
yycc
59500c7a53 Implement UndefinedOrNullEQ
Issue: https://gitee.com/open_harmony/dashboard?issue_id=I8GOAP
Description: Lowering EQ when one input is Undefined or Null

Signed-off-by: yycc <yuyicen1@huawei.com>
Change-Id: I672268ad13c37c3a620ccefb2bd67d98dac60968
2023-11-16 15:02:30 +08:00
sunzhe23
4a35e6a8f4 Add some DFX method for GateAccessor and remove non-robust testcase pgo_forof_modify_iterator
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8EQC4

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-11-08 08:10:22 +08: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
sunzhe23
7dce51adc3 Refactor bytecode graph builder
There will be following changes:
1. LoopHeader IR will have more than two input
2. Add DepenedRelay for DeoptCheck
3. Refactor dead region elimination for 'BytecodeCircuitBuilder'
4. Fix live range analysis bug for try catch
5. Refactor gate generating for 'phi' 'merge' 'loopexit' and genenator gates
6. Refactor frameState generating, all merge(LoopExit) and side-effect gate will have frameState
7. Refactor loopAnalysis for 'BytecodeCircuitBuilder'
8. Add GetLoopInfo for GraphLinearizer's 'GateRegion'
9. Fix a LoopAnalysis bug
10. Fix a TypeInfer bug for infer namespace object
11. Remove dead StateSplit in state split linearizer pass

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

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-11-06 09:19:36 +08:00
zhangyukun8
46b1b13f09 Refator for-of IR
1. Reuse callbuiltin for for-of

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8BNSB?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ic8c348e04a4039a69dd47d525d6378039741750e
2023-10-30 16:38:42 +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
82159cd41e
!4870 GlobalValueNumbering
Merge pull request !4870 from zhouyong/my-gvn
2023-10-13 03:04:09 +00:00
Onlynagesha
5fff3c13e7 Optimizes AOT ldobjbyname for Builtin.prototype in TypeScript
Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I4cc373e0569c646858f2a409bc3e47fd01dab91e
2023-10-12 14:40:25 +08:00
Yong Zhou
9e52ecdc90 GlobalValueNumering implementation
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83EHP?from=project-issue

Change-Id: I471ed10b269c6b810d990acc6389878f7b418a8e
Signed-off-by: Yong Zhou <zhouyong44@huawei.com>
2023-10-11 20:21:06 +08:00
liuzhijie
4a2807e978 Bug Fix: 循环不变量判断错误
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I85INU?from=project-issue
Signed-off-by: liuzhijie <jay.lau2020.work@outlook.com>

Change-Id: I080f1f586051da2e57b6dcda064113ab445c69a1
2023-10-05 17:15:09 +08:00
h30044958
61f11ec850 fix wallet crash
fix photos ark_aot_compiler crash
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83S7G
Signed-off-by: herongpeng <herongpeng@huawei.com>

Change-Id: I22444bf3a9c5a3eca59a7f8003623864afb80e22
2023-09-26 09:54:25 +08:00
openharmony_ci
05738ea661
!4909 Modifying Code Alarms
Merge pull request !4909 from 韩靖/master
2023-09-25 09:20:16 +00:00