Commit Graph

5680 Commits

Author SHA1 Message Date
huoqingyi
336b0d5b1e Support parse generic types and generic instance types and add some tests
Issue:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YV2V

Tests:
typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: Idb1afc1f1e248daa2213ccebbd46eecc28ace52e
2023-05-05 22:19:54 +08:00
openharmony_ci
316e5366b9
!3993 pr3685 review fix
Merge pull request !3993 from yingguofeng/master
2023-05-05 09:57:44 +00:00
lichenshuai
e8e602a05a Support AOT Function Name for DFX
Use SetThreadInfoCallback() from DFX, which is called local instead of remote.

Issue: #I6ZGB6

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I275429fbf3faeb2ed56f3773b4dfd6534690c2c9
2023-05-05 17:28:13 +08:00
dingding
86ed7e81ef Eliminate Level Check in SubTyping Check
1. Use fixed length(WeakVector::DEFAULT_CAPACITY) supers array as default supers of hclass.
2. Eliminate level check if level is less than DEFAULT_CAPACITY.

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I81227d1e766f28621050e0c0c4c7893fff347af4
2023-05-05 17:19:00 +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
wu
ee76612f94 Add Incremental mark interface
Add incremental mark interface
Predict idle gc pause before running in idle time
Rectificate gc logs

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

Signed-off-by: wu <wuwanqi2@huawei.com>
Change-Id: Idcb192f10b927507059c1ce2129f2bff82bd8d6d
2023-05-05 15:24:47 +08:00
openharmony_ci
53356fbe6c
!3999 Bugfix on Array.Join
Merge pull request !3999 from chenjingxiang/arrayjoin
2023-05-05 02:49:20 +00:00
openharmony_ci
ef5b623f80
!3994 enable builtin-string-stub
Merge pull request !3994 from wanghuan2022/master
2023-05-04 12:08:21 +00:00
hwx1163501
9e09310869 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UZQM
2023-05-04 19:06:26 +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
openharmony_ci
22c0a26d0c
!4008 fix or avoid cocos application and some benchmark error
Merge pull request !4008 from ChunyangWang/fix_benchmark_llvm_error
2023-05-04 04:10:31 +00:00
K0u1hw
8cfd1d8062 Description: fix benchmark llvm error
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZY7N
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: Ibd9c1a23b1dc8afecea62e803106de3cd85bcb57
2023-05-04 11:05:29 +08:00
weng-xi
07984602dd Fix some AOT compiler bug
1. Wrong machine type for LoadElement gate
2. Async-lowering generate wrong value-selector in multi-layer loops

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZM7G
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: If8f15aa107906b052f9e82141b1b6f3a8d81d354
2023-05-04 09:06:12 +08:00
openharmony_ci
08d1bf1e21
!3940 Stub File ELF Format
Merge pull request !3940 from 吴璋达/stubelf
2023-04-28 07:56:33 +00:00
openharmony_ci
0912628d72
!4004 Modify char * to std::string
Merge pull request !4004 from lijiamin/master
2023-04-28 07:38:38 +00:00
lijiamin
57e5704165 Modify char * to std::string
Signed-off-by: lijiamin <lijiamin24@huawei.com>
Change-Id: I6504b1d519fb22da10c427f71e8a2078c1a457af
2023-04-28 14:36:43 +08:00
wuzhangda
4a7cd90fa0 Standardize the ELF format of the Stub File
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WNMU

Signed-off-by: wuzhangda <wuzhangda@huawei.com>
Change-Id: Ie2f8d692e5b2ad2361876dc29e1592577f643247
2023-04-28 12:58:09 +08:00
openharmony_ci
fc79e466cf
!3997 Add exception check for some instrunctions in asm interpreter
Merge pull request !3997 from Gymee/add_exception_check_asm
2023-04-28 02:46:41 +00:00
openharmony_ci
03842d383f
!3974 Support typeinfer for index signature
Merge pull request !3974 from huoqingyi/indexsign
2023-04-28 01:57:47 +00:00
openharmony_ci
a1b7168e4d
!3987 Fix FrameState ComputeLiveOut
Merge pull request !3987 from dingding/fix_compute_live_out
2023-04-27 14:02:56 +00:00
huoqingyi
fc7ee14ba3 Support typeinfer for index signature
Issue:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y21P

Tests:
typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: Ife6f1c034b19c0c95dae3d286626051f9196d06b
2023-04-27 21:33:35 +08:00
Gymee
45f6d09462 Add exception check for some instrunctions in asm interpreter
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZCJM
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I47d384e1aed0fb352bee112981457ad18214f6b7
2023-04-27 20:47:31 +08:00
openharmony_ci
939b62939c
!3998 bugfix for cocos aot compile
Merge pull request !3998 from lijincheng/resolve-import
2023-04-27 11:19:31 +00:00
dingding
71fa18c9fd Fix FrameState ComputeLiveOut
1.Fix FrameState ComputeLiveOut when mov alive null gate, should find define.
2.Fix error READ_ACC flag between RETURN and RETURNUNDEFINED
3.Add regression test case

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

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I2e3aa8b293abb63ed8f1f2cd42244d95a0c2081b
2023-04-27 19:16:57 +08:00
quiet-thought
71219d8972 Bugfix on Array.Join
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZEY4

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Ia87b9f9626bf6cdba1ff38cdd1e5a7af4a786a52
2023-04-27 17:25:50 +08:00
openharmony_ci
33ea0bf3d6
!3996 Fix the unexpected aligning behavior of struct EcmaRuntimeCallInfo in linux_x86 build
Merge pull request !3996 from Gongyuhang/master
2023-04-27 09:06:02 +00:00
lijincheng
b4704be3ea bugfix for cocos aot compile
1.Return hole into module environment when a import element is from a star export
  export entry which has bundle record Name.

issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZE6B
Signed-off-by: lijincheng <lijincheng13@huawei.com>
2023-04-27 17:00:48 +08:00
gongyuhang
dc7f16603f Fix the unexpected aligning behavior of struct EcmaRuntimeCallInfo in linux_x86 build
Add "alignas(sizeof(JSTaggedType)" for the last variable of struct EcmaRuntimeCallInfo.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZBUQ
Test: compile ark_js_vm of linux_x86, run .abc with this ark_js_vm
Signed-off-by: gongyuhang <gongyuhang7@huawei.com>
2023-04-27 14:20:02 +08:00
openharmony_ci
f9a8b44397
!3961 Fix cross thread access of debug info extractor
Merge pull request !3961 from lijiamin/previewer_debug
2023-04-27 02:23:28 +00:00
openharmony_ci
3bfa15e6bd
!3982 Refactor Scheduler,support hoist gate out of loop(Part-1)
Merge pull request !3982 from 孙哲/work
2023-04-26 14:34:30 +00:00
openharmony_ci
1eca9320ee
!3921 Switch aot test suite frontend toolchain to es2abc
Merge pull request !3921 from dakeQI/0412es2abc_aot
2023-04-26 14:31:04 +00:00
sunzhe23
ca5705b49b Refactor Scheduler,support hoist gate out of loop (Part-1)
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YH1O

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-04-26 19:58:04 +08:00
lijiamin
f61d01b250 Fix cross thread access of debug info extractor
Signed-off-by: lijiamin <lijiamin24@huawei.com>
Change-Id: I56b731a99acf7a96dd7625a721cc2e14ba8166ee
2023-04-26 17:59:53 +08:00
openharmony_ci
b693018387
!3988 optimization for numerical calculation
Merge pull request !3988 from ChunyangWang/optimization_for_numerical_calculation
2023-04-26 09:34:22 +00:00
K0u1hw
db3608d1aa Dsecription: optimization for numerical calculation
Details: 1. lower ldobjbyindex & stobjbyvalue for arraytypekind
         2. lower strict_eq for number type
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YX3L
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: I70e483fb5c52cb8be68c7d68f36f01f2621052cc
2023-04-26 16:22:05 +08:00
openharmony_ci
9f39781b96
!3989 Fix compilation error bug caused by async lowering
Merge pull request !3989 from weng-xi/async_fix
2023-04-26 08:04:32 +00:00
openharmony_ci
a377c711cf
!3984 Implement debug information framework (Part-3)
Merge pull request !3984 from Gargoyle.h/wzfmaster-dev
2023-04-26 07:40:37 +00:00
yingguofeng@huawei.com
f8e1dfe6a0 Fix(PGO): review fix
Issue: #6Z1N1
Change-Id: Id93ee5c6d9c86f8ac8fd8e51e14962c6ca770507
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-26 15:13:26 +08:00
weng-xi
73f97b0020 Fix compilation error bug caused by async lowering
When async-lowering generates the merge node before the loop, it does not generate a depend-selector.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YX8Q
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I08b018d5973f7fec8c4aa3b2598bf23e5d1b6f6e
2023-04-26 14:21:17 +08:00
wuzhefeng
6002abbef1 Implement debug information framework (Part-3)
To faciliate aot debuggging, we need to provide the ability of code
commenting, so we will add api of adding debug-information to our gate
compilation framework and pass the information to LLVM-IR. At last, the
generated machine code can be associated with specific code comments.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I6a1eef5588231f3aa31cc6b2efea9667d0eda929
2023-04-26 14:19:53 +08:00
openharmony_ci
dc961f65b5
!3967 Rename CLI params for jsvm and ark_aot_compiler
Merge pull request !3967 from hzzhouzebin/renameParam
2023-04-26 01:44:34 +00:00
openharmony_ci
370ab0e7cc
!3975 Bugfix on Promise.all for memory leak
Merge pull request !3975 from chenjingxiang/promiseall
2023-04-25 08:17:30 +00:00
openharmony_ci
58e3ab5f2b
!3980 Fix the code format problem
Merge pull request !3980 from hwx1163501/master
2023-04-25 07:51:54 +00:00
openharmony_ci
2b653650f2
!3944 Range Analysis For Int32 Value
Merge pull request !3944 from ChunyangWang/range_analysis
2023-04-25 07:32:27 +00:00
hwx1163501
eff5acc78a Fix the code format problem
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6YDIC
2023-04-25 14:00:00 +08:00
hzzhouzebin
0651538873 Rename CLI params for jsvm and ark_aot_compiler
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6XL7E
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I751d08d99e08acda7d0fea7094967029d1e19934
2023-04-25 10:58:34 +08:00
quiet-thought
3914d254ed Bugfix on Promise.all for memory leak
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y2WG

Signed-off-by: quiet-thought <chenjingxiang1@huawei.com>
Change-Id: Id0ffce897afc63bb19384d9669012fd18bad44ab
2023-04-25 09:47:39 +08:00
openharmony_ci
0140f8f663
!3893 Add function apply builtins ir
Merge pull request !3893 from wpy111/master
2023-04-24 15:24:46 +00: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
openharmony_ci
8782d5ace6
!3976 fix suspendgeneratorfor testcase of AOT
Merge pull request !3976 from zhangyukun8/master
2023-04-24 11:55:45 +00:00