Commit Graph

126 Commits

Author SHA1 Message Date
openharmony_ci
e66c06a338
!4514 Fix some aot bug
Merge pull request !4514 from weng-xi/fix_aot_bug
2023-07-26 07:11:19 +00:00
weng-xi
c346054491 Fix some aot bug
Fix some aot bug

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NXUR
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Ib7708639b1c35fdac6ac6385ed116b1eafeee587
2023-07-26 11:00:49 +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
yingguofeng@huawei.com
a3f1d03902 Fix(Interpreter): Optimize Int overflow in Interpreter
Issue: #I7M1FX
Change-Id: I56bd3edd0a9a05d54805edd3f113d2423e90f4f8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-18 16:21:43 +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
Rtangyu
819ed0d9ce Fix bug: JS object binding function loses data after exceeding 1029
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7JNDN

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2023-07-08 18:10:12 +08:00
openharmony_ci
a05e77f16a
!4362 增加wide指令的ProfileCall fastpath支持
Merge pull request !4362 from yingguofeng/master
2023-07-06 13:07:44 +00:00
yingguofeng@huawei.com
e59e99f29e Feat(Aot): Support fastpath for Wide intruction profilecall
Issue: #I7I3EQ
Change-Id: Ibc8e225943d0a0fbeaaf487830701a503eccf015
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-07-06 17:24:23 +08:00
xiongluo
d04a78f195 support multi context
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: If708bb8d514503105e965226532dad41c12d73d7
2023-07-03 21:30:19 +08:00
hwx1163501
a823d103ab Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7GSXJ
2023-07-03 15:12:50 +08:00
yingguofeng@huawei.com
cac9aaf2c1 Feat(Aot): Support int div and Fix pgo number type bugfix
Issue: #I7EKNN
Change-Id: Id5c9e922fb313a757f44b284a1a9bc4e5dc16a82
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-19 15:29:03 +08:00
openharmony_ci
aca4fa9894
回退 'Pull Request !4251 : Support int div and Fix pgo number type bugfix' 2023-06-19 07:04:36 +00:00
openharmony_ci
7d536a911c
!4251 Support int div and Fix pgo number type bugfix
Merge pull request !4251 from yingguofeng/test1111
2023-06-19 06:24:55 +00:00
openharmony_ci
ea2aed6cbf
!4259 PGO bugfix on equal & Bugfix on logical error in fastmod in stub
Merge pull request !4259 from yaoyuan/master
2023-06-19 02:16:48 +00:00
yingguofeng@huawei.com
344ad132f6 Feat(Aot): Support int div and Fix pgo number type bugfix
Issue: #I7DILY
Change-Id: Id5c9e922fb313a757f44b284a1a9bc4e5dc16a82
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-06-19 09:47:49 +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
yuanyao
fdf0caab9d PGO bugfix on equal & logical error in fastmod in stub
Issue: I7E7I5

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I6511627409cff707c47e975c58aaeb8595f45ea6
2023-06-17 11:22:56 +08:00
openharmony_ci
d6d1854875
!4240 Fix GetPropertyByIndex
Merge pull request !4240 from maojunwei/master
2023-06-16 09:17:30 +00:00
openharmony_ci
b8ea746e55
!4244 Bugfix on ObjectFastOperator::SetPropertyByIndex
Merge pull request !4244 from chenjingxiang/object_setproperty
2023-06-16 02:55:36 +00:00
maojunwei
96136b3428 Fix GetPropertyByIndex
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7D85R

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: I87406d35d0fcdb1df15091d0c53dd220c1a5e7ec
2023-06-15 17:17:35 +08:00
quiet-thought
875ae27c9b Bugfix on ObjectFastOperator::SetPropertyByIndex
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7DGCK

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: I4e392c8e31b81cca192aaaeb1d2f2c7797a08605
2023-06-15 15:40:15 +08:00
yuanyao
0e2ad00d3c AOT-Optimization Add Math Mod to Number Speculative Pass & Some PGO BugFix
Improve the performance of mod & pgo bugfix & stub bugfix
Issue: I7DBKM

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I3d330c462b1694e2037323adcb719cf67e49dd65
2023-06-14 16:19:30 +08:00
sunzhe23
f525b1d995 Remove Load/StoreElement elementsLength check
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7C16C

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-06-08 18:50:14 +08:00
ginxu
56f3afc091 Add Function Call Timer Tools
1. Support print funcntion call time.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7AH1O
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I9d6680852f7d497d13a127544fdb8331806bd480
2023-06-04 11:12:04 +08:00
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
openharmony_ci
fe69c3eee3
!4159 Fix Multiplication -0 Bug
Merge pull request !4159 from 李晨帅/master
2023-06-01 11:33:43 +00:00
lichenshuai
754a47b63b Fix Multiplication -0 Bug
Fix the case when a negative number multiplies with 0.

Issue: #I79Y5V

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Icbbd9dad0402441d281301b9bff6bfa1e4771ea1
2023-06-01 16:47:49 +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
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
xiongluo
cf451e377d constant string optimization
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ieabea29874752fed615b0a911cf4118e791663eb
2023-05-08 17:07:03 +08:00
weng-xi
1bff96723a Remove UpdateHotness From AOT SLowPath
For the bytecode that requires IC, AOT will perform the UpdateHotness operation,
which increases the size of the 'an' file

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I70BJX
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I95598449157fdff5d9952738bf6b4fed74c51483
2023-05-05 16:56:11 +08:00
wanghuan
62b052937a enable builtin-string-stub
desc: enable builtin-string-stub

solu: make FlattenString interface to IR and enable builtin-string-stub

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZACR
Signed-off-by: wanghuan <wanghuan80@huawei.com>
Change-Id: I31ea1999d94c8ba9a8fc663c8284a00930e957ad
2023-05-04 16:26:21 +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
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
yingguofeng@huawei.com
e28bd8ecf6 Perf(aot): nbody optimization
1. Inc overcheck change to sadd_overflow
2. Optimize ValueWithBarrier

Issue:#I6S62N

Change-Id: I8ec283cba223f13df7d5fd7b676f93a642eea17e
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-04 16:56:47 +08:00
openharmony_ci
47e1932b58
!3844 [Inline Call part3] Remove Aot Function Env Arg
Merge pull request !3844 from 许杰/inline_call_part3
2023-03-31 07:01:00 +00:00
xujie
14878d00f9 [Inline Call part3] Remove Aot Function Env Arg
1. Remove env in aot call signature.
2. Remove env in optimizedJSFunctionFrame.
3. Modify x64 and arm64 asm bridge.

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

Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: I5fbb63c662d82a41073e2ff4456fdc42fb651f6a
2023-03-31 09:36:42 +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
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
zhangyukun8
62a3e35295 AOT support js stacktrace
1. add pcOffset into stackmap before call In AOT
2. parse stackmap to find pcOffset before any OptimziedJSFunctionFrame
3. remove use code of stubs in AOT
4. add testcase for js stacktrace of AOT

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

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib21646b7319628fb425ac8ce489dc2370a347b81
2023-03-03 10:08:54 +08:00
dingding
c9a5a51ed0 Rename AOT to TS in HClass Related Scenarios
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6D1GL

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: Iec475c2f9887ff38699bd225bd948cf4b09a20e6
2023-02-06 12:50:01 +08:00
dingding
e4feca21b9 Fix AOT IC bugs
1.Fix wrong initial value when using AOT hclass in NewObjectStubBuilder.
2.Fix wrong BitFiled in StubBuilder::IsAOTHClass.
3.Fix holder to receiver in StubBuilder::StoreICWithHandler.
4.Fill the missing flags in AOT branch of ObjectOperator::AddPropertyInternal.
5.Fix checkReceiverHoleEntry wrong compare(not equal -> equal) in StubBuilder::SetPropertyByName.
6.Add corresponding test case.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I1e4f6085f579610e5209300cab6ff9dc5ae49c79
2023-02-06 09:29:47 +08:00
yuanyao
327112583c RegExp enables $1..$9 global cache
Description:
    enables RegExp.$1 ... .$9
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6BTMN

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I78055455669e5f326a1b5aa8c199c24ce1fd44d7
2023-02-03 09:52:03 +08:00
openharmony_ci
1f021b6cb1
!3425 Fix updatehotnesscounter in asm interpreter
Merge pull request !3425 from zhangyukun8/master
2023-01-18 03:39:03 +00:00
zhangyukun8
99b7d31b1f Fix updatehotnesscounter in asm interpreter
Save hotnessCounter before call asm js function

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6AK0I?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ic9bb334fe2dfefabc2628df3a2629f86aabeaf66
2023-01-17 18:56:29 +08:00
openharmony_ci
abdb8b236f
!3348 Fix AOT bug of hasOwnProperty
Merge pull request !3348 from weng-xi/fix_bug_of_compatibility
2023-01-15 03:30:20 +00:00
weng-xi
8f1fda94e3 Fix AOT bug of hasOwnProperty
1. change the logic of load/store operations when use AOT HClass
2. Supplement ut case
3. Add two new IC handlers
4. Add removeAOTFlag method to arktools
5. Add accessor flag to AOT HCLASS

Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I692NO
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I9ca7e329b77e83b6c5a2c98525d551b5b4a1a9a4
2023-01-14 14:49:52 +08:00
openharmony_ci
d1abf4cc2a
!3386 Add fastpath of InstanceofIR JSCallDispatch
Merge pull request !3386 from lvfuqing/master
2023-01-13 02:23:07 +00:00