Commit Graph

5718 Commits

Author SHA1 Message Date
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
openharmony_ci
6ede40bcc4
!3946 Add Value Numbering to eliminate Convert
Merge pull request !3946 from 孙哲/master
2023-04-24 11:13:29 +00:00
zhangyukun8
3c94be43f0 Fix suspendgeneratorfor testcase of AOT
CheckResumeInLoopBody fail to check multi-level-loops

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y4Y8?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib7b975f8b8fbe644667e587b500993858e015e06
2023-04-24 17:17:43 +08:00
openharmony_ci
1f486a2d04
!3977 Fix the bug that the Phi node is not generated
Merge pull request !3977 from weng-xi/no_phi
2023-04-24 08:20:25 +00:00
openharmony_ci
8a32f45414
!3915 Support typeinfer for generic types [PART_1]
Merge pull request !3915 from huoqingyi/typeliteral
2023-04-24 07:10:00 +00:00
songqi
718cf41274 Switch aot test suite frontend toolchain to es2abc
Issue: I6V3PD
Test: aot test
Signed-off-by: songqi <songqi32@huawei.com>
Change-Id: I041bc65a3a939b6324cfcaad79b7e852fe3585da
2023-04-24 14:25:19 +08:00
weng-xi
3e37a79f72 Fix the bug that the Phi node is not generated
If the loop head is the first bb block, the variables used in the head cannot correctly generate Phi node

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6Y4JU
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: I57927992e19ef9c53c598197609a17ba69b6f3ff
2023-04-24 11:14:09 +08:00
K0u1hw
38cf537f3e Description: Add Range Analysis Pass
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WSXJ
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: I32c205c659f0cffba34b845701614b1e9ec44b99
2023-04-24 10:52:18 +08:00
openharmony_ci
980751a4f4
!3970 docs modification for fix broken links issue
Merge pull request !3970 from DaiHN/doc_mod
2023-04-24 01:50:23 +00:00
openharmony_ci
209f1c91ab
!3966 Bugfix : c-interpreter 262 crash
Merge pull request !3966 from lukai/262bugfix
2023-04-23 11:39:04 +00:00
huoqingyi
34ddc47922 Support typeinfer for generic types [PART_1]
In order to support typeinfer for generic types, we first need to refactor
the process of extracting types and parsing types to handling negative numbers,
which represent formal parameters of generic types recorded in type literals in abc files.

Issus:
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UYLQ

Tests:
test262, typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I8197a93c81cc2b2335a418b0307b23880a0799e4
2023-04-23 14:19:11 +08:00
openharmony_ci
787e618f01
!3969 Add exception check for NewPromiseCapability
Merge pull request !3969 from Gymee/add_exception_check
2023-04-23 06:04:48 +00:00
DaiHN
cc2fe0f8ae docs modification
fix broken links issue
issue : #I6Y0MW

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Ic6488e933e0d6834cf4336115108029b4152e98c
2023-04-23 11:38:22 +08:00