Commit Graph

401 Commits

Author SHA1 Message Date
openharmony_ci
6c358a7528
!4107 Optimize Fastcall
Merge pull request !4107 from wpy111/master
2023-06-03 13:45:26 +00: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
yingguofeng@huawei.com
bfc478a38b Feat(Aot): PGO extension supports hclass dump
Issue: #I78U0R
Change-Id: If7079aeb03cc265b68487f4997fc20d35626fe7f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-01 19:54:22 +08:00
yingguofeng@huawei.com
cca4ba8fe4 Feat(PGO): PGO Support profile number type of object field
Issue: #I739C3
Change-Id: Ie57b6174d7b68121e81b72ffd8d71ec1b0d5f80f
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-05-24 15:36:53 +08:00
wupengyong
e0134a4d57 Reason:fix some fastcall bug
Description:fix some fastcall bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I774L6?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ib6f2b02a25a95d42814042c21bc45390f44c6107
2023-05-23 19:44:02 +08:00
openharmony_ci
8405bfc442
!4007 Add fast call and change calling conversion to cc
Merge pull request !4007 from wpy111/master
2023-05-18 12:44:43 +00:00
wupengyong
c0fa165ab0 Reason:add fast call and change calling conversion to cc
Description:add fast call and change calling conversion to cc
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6TTCX?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I7c35619d73a4d961799232bc22b78b6513f65e71
2023-05-18 19:23:25 +08:00
hwx1163501
22fe6190c6 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7163U
2023-05-18 17:05:50 +08:00
openharmony_ci
62bc967118
!4054 Fix crash when create Array OOM happend
Merge pull request !4054 from maojunwei/OOMcrash
2023-05-16 11:03:58 +00:00
dov1s
c9dbebb690 Fix crash when create Array OOM happend
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I73AX4?from=project-issue

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I01d0195c18484c2f71ec755e29691c42bc5ff31d
2023-05-15 19:11:29 +08:00
ginxu
2ac472acd9 Support Inline Deopt
1. Add frameStateChain op for inline deopt.
2. Modify the deopt logic to support multiple interpreter frames.
3. Fixed some bugs that occurred when inline was enabled.
4. Support trace inline function tools.
5. Add some testcases.
6. Add some inline condition which some scenarios that might occur inline are filtered.

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

Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I30127640fcd150c3c3badf2dd5c805a7b6733c42
2023-05-13 10:46:38 +08:00
dingding
dbb6738ad6 Imporve AOT Debugging Tools
1. Add stress deopt.
2. Add VTable verifier.
3. Tracing BC supports typed path.
4. Add options for several pass.
5. Add options to select compiler methods or skip compiler methods.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Iffdd54b5cb34efe93cbec77ea4a9aa2feb8fbcbd
2023-05-09 07:11:57 +08:00
wupengyong
c1aa7ecd82 Reason:add function apply builtins ir
Description:add function apply ir
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y5E4?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: Ie5ade286a56c5237175476a6a0b915558b87c454
2023-04-24 21:03:55 +08:00
hzzhouzebin
0e4d77adaf Extract the classes in aot file manager
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WV9V
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I2a07ed1f94707beabc149fd6abe15f4a85d848c6
2023-04-20 22:54:52 +08:00
openharmony_ci
120458550a
!3726 Add JSTypedArray::FastCopyElementToArray IR
Merge pull request !3726 from dingwen/master
2023-04-20 06:19:49 +00:00
dingwen
3b790c57c8 Add JSTypedArray::FastCopyElementToArray IR
Description:FastCopyElementToArray IR
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6N8LA?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: If7c93396059012d0a25cd71bdfd397cc71016542
2023-04-20 10:12:54 +08:00
zhangyukun8
31ce788466 Fix newobj error after deopt
1.get an error argc in constructorjscall in newobjrange after deopt
2.replace ConstructorJSCallWithArgv with JSCallNewWithArgv

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VZAF?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Icc57cb71a4292dfd2ad4d7ab98cc6f64cf4b5a44
2023-04-18 17:15:56 +08:00
openharmony_ci
c71c5b83b9
!3877 async generator & for-await-of aot adapt
Merge pull request !3877 from maojunwei/async_aot
2023-04-17 01:59:51 +00:00
dov1s
946c4b08f1 Async generator & for-await-of AOT adapt
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6T82W

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I27db458545b09d50a71c92640f4e8e4c2dfd4277
2023-04-14 16:57:16 +08:00
zhangyukun8
12a011287b Fix async function reentergenerator failed when deopt happened
suspendgenerator and resumegenerator should be in pairs both in
AOT and asm-interpreter
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VMXN?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>

Change-Id: I6b7deca870a484beda3ef2b16eecb962b7ff4afd
2023-04-14 11:34:57 +08:00
g00416891
b4054bf631 Refactor loadedJSPandaFiles for memory leak
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6J2G8?from=project-issue

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ia8b70f4a0d0bdd67c82369c699b5687b949559c2
2023-04-07 14:57:06 +08:00
yingguofeng@huawei.com
a6ddc25b6e feat>(compiler): PGO type profiler
1、PGO Support type profiler for asm interpreter
    2、Optimization function call profiler
    3、ap version promote to 0.0.0.2
    4、Adaptor number speculative phase supporting pgo type

link #I6JPH4

Change-Id: I18043c4f99af93e5ba6eb2e895039fe0edfe5b4e
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-03-30 20:39:06 +08:00
openharmony_ci
d2e52df1b3
!3731 ToNumber IR
Merge pull request !3731 from xliu/ir_test
2023-03-29 01:25:39 +00:00
xliu
98b9524791 ToNumber IR
Description:
Add JSTaggedValue::ToNumber IR
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6NJ0G

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I999a034065d74911d70a7ecef79fc615beaac99d
2023-03-28 20:58:12 +08:00
dingwen
fa6d1cde91 Optimize FromCharCode C++ interface
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6OVYD?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I73b35dbe413c19eece63ec8e1a1409c01aaf5447
2023-03-27 10:05:53 +08:00
dingding
3ca6bf157d AOT VTable Part2 && Part3
Part2: AOT generates assembly code for object property access which based vtable.
Part3: Maintain or break TS SubTyping info during runtime.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I68dfce35f6f9f80b749ea7b88c72541e824774d7
2023-03-17 13:25:20 +08:00
openharmony_ci
bfcabe231b
!3590 AOT Supports VTable [PART_1]
Merge pull request !3590 from weng-xi/hclass_part
2023-03-17 03:52:47 +00:00
weng-xi
73f39aa7f3 AOT Supports VTable [PART_1]
1. Add fours fields to jshclass [LEVEL, SUPERS]
2. Add VTable class
3. Adjust type parser and TSHClass generation logic
4. Extended the weakvector class
5. Add SubtypeingOperator class

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I6FVAJ
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I6640f3719fa067f505befd0f2cb0efb99d179dfc
2023-03-16 19:07:49 +08:00
dingding
67791cca8f Fix AOT RuntimeOptCopyRestArgs
The variable actualRestNum in RuntimeOptCopyRestArgs computed mistakely and may out of uint32_t range.
The Bug causes the startup of cocos application crash with OOM error.
Add minimal regression test case.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ie7118a9cc83514e9e0c23c5c6c2bed53dd53c1c2
2023-03-15 14:22:28 +08:00
openharmony_ci
bdb2d0554f
!3665 optimize updatehotnesscounter
Merge pull request !3665 from csf0216/mydev
2023-03-14 04:52:26 +00:00
wangmin
b7def4abb9 Optimize updatehotnesscounter
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6JDUJ
Signed-off-by: wangmin <wangmin85@huawei.com>
Change-Id: I57d127641a212244730266de2fa48152542b3a5a
2023-03-14 09:07:57 +08:00
openharmony_ci
08fc882953
!3701 bugfix 262 cases of for-await-of
Merge pull request !3701 from maojunwei/bugfix_forawaitof_262
2023-03-13 13:06:06 +00:00
maojunwei
80b0eed438 bugfix 262 cases of for-await-of
issue:https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I6KAG4?from=project-issue

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I9410513b0b4b49f72f0ab3e659a0ac19e5cd7e2d
2023-03-13 18:38:28 +08:00
yuanyao
4d5073d14f DFX Add Barrier Check
Description
Add Barrier check to verify the object set to heap
Issue
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6LLN3

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: Icdad9156b6a479d50cf0772be5468358d3fda365
2023-03-12 11:16:59 +08:00
openharmony_ci
e41d222e6e
!3654 Add the ClassLiteral class
Merge pull request !3654 from weng-xi/class_literal
2023-03-07 02:34:10 +00:00
weng-xi
f6f65e167c Add the ClassLiteral class
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ITCC
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iff5e4baaf5d71816b40015565fade48d2cf22fee
2023-03-07 09:34:33 +08:00
xujie
a7e31a9987 [Inline Call part1] Env Refactor
1. Remove env slot from optimizedJSfunctionframe.
2. Use env vreg to pass in circuit ir graph.
3. Remove some discarded interface and fast some bc lowering associated with env.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I34d65b59e103e9c8d3b203dbf82b8f2bea7e9feb
2023-03-04 16:12:22 +08:00
openharmony_ci
a56c31c6ed
!3546 PGO profdump tool
Merge pull request !3546 from yingguofeng/master
2023-02-27 10:16:04 +00:00
yingguofeng@huawei.com
47134bfb20 feat(PGO): Add profdump tool
1、profiler translate from binary to text
    2、profiler translate from text to binary
    3、PGO profiler code refactoring

link #I6E38H

Change-Id: Id6988af126d32937ecc8aaa4c617a638ac4795b4
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-02-27 14:02:31 +08:00
wengchangcheng
92d3f56507 Fix some bugs and JSMutableHandle use error
1. fix some bug report by compiler warning
2. don't cast JSHandle to JSMutableHandle

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0df90295dd7a01f59c6e39027afe419a8b4e0322
2023-02-27 11:00:36 +08:00
openharmony_ci
e96e72b4d1
!3628 Fix Ld/StObjByValue not call RequireObjectCoercible
Merge pull request !3628 from dingding/fix_RequireObjectCoercible
2023-02-25 08:26:07 +00:00
dingding
f40abb913b Fix Ld/StObjByValue not call RequireObjectCoercible
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6HOII

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Ia5ecc9f588c30ce848fe77cc12fbb464ba92a45c
2023-02-25 10:46:05 +08:00
maojunwei
b4ebf86687 Fix AsyncGenerator
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AAHY?from=project-issue

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I4e2b4eec4c9ac1346f8b6d7f6d13a6818c83f5d3
2023-02-23 18:43:29 +08:00
Zhenyu Pan
371cc39185 Isolate c interpreter on Android
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6BIFV

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I95508293d67b257f1a14e2ef1cad36d4dc3f9cd9
2023-02-15 14:08:35 +08:00
Gymee
5842e37fcd Support CallRutime instrunction
Issue: #I6E167
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Iac0a70a7857947388e2a49c627d11b99d7c535b8
2023-02-14 18:45:28 +08:00
wengchangcheng
324e8f79c5 Descriptor: Support async/await in taskpool
Details: Trigger concurrent callback before return

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I6DC6E

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6377d90157f0452446e932f8c4c1d14ff22c3109
2023-02-14 18:44:43 +08:00
lichenshuai
4eae26af2b Fix GetOwnPropertyKeys Bug
Fix the case when obj is not JSObject in GetOwnPropertyKeys.

Issue: #I6EX3R

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I2ba0ece77280ece2e7c773c10f30c4dc3a42f8c9
2023-02-14 14:49:36 +08:00
wuzhangda
66f8591771 Deopt Dump
Add deopttype to Deoptimizier::Dump and cpu-profiler information.

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

Signed-off-by: wuzhangda <wuzhangda@huawei.com>
Change-Id: Icbc9d8d96c950c3f3603153189048477ee672be1
2023-02-06 17:21:09 +08:00
g00416891
9ab112f3b6 Add UT for multi-hap hot reload and codecheck fix
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ie1bdcde8dadf5f0d610675297a2e3ae08847d614
2023-01-30 16:08:55 +08:00
dingding
b74caf0dd9 Replace IsInterpretedFrame() by IsJSFrame() in GetBytecodeOffset() and GetPc()
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I0b4640c632f7e322b5c1e0bdcb01b457aa2b29c8
2023-01-16 14:20:58 +08:00