Commit Graph

90 Commits

Author SHA1 Message Date
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
hzzhouzebin
fa9ea682c8 fix code review for shared check
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I352becaec9fecb9cca5fa00d32274e77a03617b3
2023-12-24 15:12:42 +08:00
Zhenyu Pan
d2ddf80032 Merge remote-tracking branch 'ets_runtime/master' into test2
Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I93bd738d08e7821daa0d9673e88c6c7415b543e8
2023-12-21 21:30:05 +08:00
lukai
14ba7fb177 Support private/static field of sendableClass
Support private/static field of sendableClass

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I715573a5bd5364c10df47ceee0790305adf7b863
2023-12-21 20:11:20 +08:00
yaoyuan
61afc6feb7 ElementsKind-Part2
Enable Interpreter ElementsKind but with option as false
ISSUE: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8M1RU

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Ic2d0d4ecc1a0e08220aa2a2be4ad293ded725f07
2023-12-18 15:57:47 +08:00
chentianyu
6a27f23b15 Add napi interface to create object with properties
Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: Ic5eb7299e9731a49a9e5edb35668892ff0b9840f
2023-12-13 10:09:11 +08:00
ginxu
3f8db81a3a Fix Deopt Threshold Failure
1. Move optimized and fastcall judgment from hclass to method.
2. Fix builtins stubs bug.

Isssue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8L2KT
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I26125037ad9631ee0992cf77fbc3f276d3453f66
2023-12-02 16:51:58 +08:00
openharmony_ci
818d009c7d
!5258 Refactor worker serialization
Merge pull request !5258 from dingwen/master
2023-12-01 06:26:27 +00:00
dingwen
8f5e2fa5b4 Implement serialize base class
Description:Implement serialize base class
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8GZGX
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: Ia03fc9cac949d73cafbd6a2603da053d2f886cd1
2023-12-01 09:02:26 +08:00
lichenshuai
e59f8abd80 [Bug]: 修复UnregisterOnProtoChain中protoDetailsValue可能为undefined导致后续崩溃的问题
在UnregisterOnProtoChain中,protoDetailsValue可能为undefined,导致后续崩溃。

Issue: #I8KLIQ

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ie2a9735d2a7c02c1a2e0bfcdd693c77a645ab4e4
2023-11-30 10:10:13 +08:00
hwx1163501
8f1eee7d15 modify code alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8JFZE
2023-11-27 15:28:44 +08:00
openharmony_ci
7b8c243877
!5266 modify code alarms
Merge pull request !5266 from 韩靖/master
2023-11-23 03:21:20 +00:00
yingguofeng@huawei.com
82336875e9 Fix(Aot): Support ldobjbyValue and string.length fastpath by pgotype
Issue: #I8HJDP
Change-Id: I80eb3096f8e3c40218ae1142194b5b5d4a5afb1d
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-11-22 18:16:32 +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
hwx1163501
dab1162a04 https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HCMJ
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HCMJ
2023-11-21 12:47:33 +08:00
yaoyuan
ebb0e6c19c Instanceof HIR lowering
ArkTools.IsAOTCompiled

Issue: I89N93

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I283f331caafb425bc3139b05e8fceeebd62d5d28
2023-11-17 17:52:49 +08:00
openharmony_ci
52a3e3cbb4
!5195 Fix(Aot): Class AOT deopt bugfix
Merge pull request !5195 from yingguofeng/master
2023-11-14 12:58:55 +00: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
4b37d7a251
!5199 Fix object's elements entering IC in dictionary-mode
Merge pull request !5199 from Gymee/fix_ic
2023-11-10 06:41:00 +00:00
yingguofeng@huawei.com
8fef64c0a6 Fix(Aot): Class AOT deopt bugfix
Issue: #I8F16D
Change-Id: I9226d15c8ac4da5452d98b3a5b23bb925bf3ac8f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-11-09 20:51:24 +08:00
Gymee
7deec0ee52 Fix object's elements in dictionary-mode entering IC
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8EX0Z
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Idc7f9a929b9fb341a801fc439a7e1424eff8a0da
2023-11-09 16:30:08 +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
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
h30044958
ac18d94139 Fix camera crash
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I89U02

Signed-off-by: h30044958 <herongpeng@huawei.com>
Change-Id: I0b8a45c09eae3d6dc1c7c087ba03d7b03a8c8eff
2023-10-24 17:08:13 +08:00
xiaoweidong
e8264d2fbe Opt object.create function
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I845M1

Change-Id: Ia574a8a92a5b0a9921f99cb20a0c2555af3acc70
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2023-10-07 14:09:48 +08:00
Onlynagesha
5c09c7621f builtin.cpp repetitive code cleanup
Merges repetitive code in builtins.cpp by moving X and X.prototype
property list to the corresponding builtins_X.h.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82Q57

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: Ie5c9704bb9aa03b81a04dd5642815447637839ad
2023-09-26 16:42:23 +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
weng-xi
591299cbaf AOT supports String.Length/charAt/charCodeAt
AOT's fast path supports String.Length/charAt/charCodeAt

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7XLSA
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Icb9ac96aae156205cf17722592c3fd04992a1aba
2023-09-01 09:26:18 +08:00
hwx1163501
83090f1f68 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7TV61
2023-08-18 09:13:57 +08:00
wu_zhang_da
c9eba669c0 CreateArray Optimization Based On ElementsKind
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7RKX8

Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
Change-Id: Ic84c0ac635103a59e2e212cb0c764a7ee13f6af9
2023-08-15 20:41:00 +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
lichenshuai
fdfbc7d143 未有效判断protoDetailsValue不为HeapObject的场景导致非法内存访问漏洞
仅在为ProtoChangeDetails时才设置HClass的ProtoChangeDetails。

Issue: #I7K7HN

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I7339e378e1cd5e5dec81740c855180485bca4782
2023-08-04 14:28:01 +08:00
yingguofeng@huawei.com
3b107f900a Feat(Aot): Track Double/Int field for aot compiler
Issue: #I7JI0Z
Change-Id: I24f762d505cf467e86d5a12f3fc78c9ecd4513f1
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-12 21:55:16 +08:00
openharmony_ci
037a580245
回退 'Pull Request !4343 : 回退 'Pull Request !4279 : Part1: AOT st/ldobjbyname use pgo type'' 2023-06-30 00:58:41 +00:00
openharmony_ci
f973ac6ae0
回退 'Pull Request !4279 : Part1: AOT st/ldobjbyname use pgo type' 2023-06-29 23:46:39 +00:00
weng-xi
00e1bf5c02 Part1: AOT st/ldobjbyname use pgo type
1. add pgo type infer pass
2. st/ldobjbyname use pgo type

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7EN3D
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I07f2b724b4b4aacac5effd85d93436338c77d1a9
2023-06-29 19:22:19 +08:00
yingguofeng@huawei.com
fb20da0b8f Feat(Aot): Part4 Load hclass info from ap for aot compiler
Issue: #I7EGRC
Change-Id: I2493cc4f22b5579f28a93433845481febf17effc
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-29 17:52:09 +08:00
openharmony_ci
880ef2dd83
!4292 Fix static class stobjbyname bug
Merge pull request !4292 from wpy111/master
2023-06-21 13:26:26 +00:00
wupengyong
6ef83139e0 Reason:fix static class stobjbyname bug
Description:fix static class stobjbyname bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7F041?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I379490801053cb640f630fc823cd717bb5971a9f
2023-06-21 15:46:28 +08:00
hwx1163501
6c48a46cae Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7EJSG
2023-06-21 14:40:04 +08:00
yingguofeng@huawei.com
c85c0e5238 Feat(Aot): PGO hclass dump Inheritance relationship and suppor poly
Issue: #I79QXC
Change-Id: Ia955bc33c78531daccfa5ae5b6ce1c047c3ae8b6
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-17 19:33:10 +08:00
wupengyong
5ea192ce03 Reason:Add class static ldobjbyname Hir
Description:Add class static ldobjbyname Hir
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7BFOS?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I62c513db97026820ee206cdc194561949fb3e7da
2023-06-09 16:07:48 +08:00
hwx1163501
213a901396 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7BJQV
2023-06-07 11:35:31 +08:00
wupengyong
efc0b12047 Reason:optimize fastcall
Description:optimize fastcall
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78093?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I1685c6b1341c82161d18e827f5449f90f7b1b634
2023-06-03 18:42:00 +08:00
dingding
a1a67b6381 Intruduce TSClassAnalysisPass
1. Intruduce a new pass: TSClassAnalysisPass to process ts class type.
2. Use initialized property analysis to guide lowering to eliminate ConvertHoleAsUndefind.
3. Add class TSHClassGenerator to generate ts hclass in BytecodeCircuitBuilder.
4. Add test cases.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ia47d01e9cab1355d8b87c809e53a427a5abded39
2023-05-26 16:45:32 +08:00
openharmony_ci
3a66b4b500
!4052 PGO support profile object number type field
Merge pull request !4052 from yingguofeng/test
2023-05-24 13:28:38 +00:00