Commit Graph

5652 Commits

Author SHA1 Message Date
wuzhefeng
979ffe634f Optimize Code Generation (Part-1)
Current code generator produces many redundant basic blocks, which
should be improved and optimized so as to reduce the size of the final
AOT-generated machine code's size and the compilation time.

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

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I6f718c86384ae1ac5a6031a908ce2bbe7807daef
2023-05-09 10:53:16 +08:00
openharmony_ci
86f8b30600
!4026 feat: disable backward cfi for arkcompiler
Merge pull request !4026 from Zhaotianyu/20230508cfi
2023-05-08 18:08:52 +00:00
openharmony_ci
3580072a86
!4024 Componentized check
Merge pull request !4024 from 任堂宇/master
2023-05-08 15:55:27 +00:00
Rtangyu
c05f1d3c22 Componentized check
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I71EFL

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2023-05-08 22:57:28 +08:00
arvinzzz
3775cebfc7 disable backward cfi for arkcompiler
Test: build

Issue: I71CPO

Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I4a9199758bb42c3e7b734fca839a20b8e281ab06
2023-05-08 22:19:38 +08:00
openharmony_ci
fc8d510053
!4022 Fix CrashCallback Crash if Method Cannot be Found
Merge pull request !4022 from 李晨帅/master
2023-05-08 13:40:10 +00:00
openharmony_ci
a39b98dc65
!4009 Optimize UpdateHotness
Merge pull request !4009 from 孙哲/work
2023-05-08 13:00:29 +00:00
sunzhe23
2505d71290 Optimize UpdateHotness
remove unused UpdateHotness, add TypeConvert/Constant convert

Issue: https://e.gitee.com/open_harmony/dashboard?issue=I703O9

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-05-08 17:56:47 +08:00
lichenshuai
3633a5471b Fix CrashCallback Crash if Method Cannot be Found
Avoid further CheckAndGetMethod() if method cannot be found.

Issue: #I71AWH

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I3be6cfb9c229668813d44573abd847f4095f5c56
2023-05-08 17:27:19 +08:00
openharmony_ci
19250ead51
!4019 Fix Mac Compile Error for ucontext
Merge pull request !4019 from 李晨帅/master
2023-05-08 07:26:32 +00:00
lichenshuai
c66ce524bb Fix Mac Compile Error for ucontext
In Mac, struct of ucontext is different, which causes compile error.
Disable CrashCallback for Mac.

Issue: #I713EB

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: If847fa1237ad6a3b2ba483b4ecf5acd740a8bfdb
2023-05-08 10:18:25 +08:00
openharmony_ci
e0e3c301ab
!4000 Support typeinfer for namespace
Merge pull request !4000 from huoqingyi/namespace
2023-05-06 11:30:34 +00:00
openharmony_ci
598b4b7427
!4017 Add memory tag for memory pool
Merge pull request !4017 from lukai/memTag
2023-05-06 07:40:42 +00:00
huoqingyi
19ade57ed9 Support typeinfer for namespace
Issue:
https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I6YMZV

Tests:
typeinfer test, aot test

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I7b23bad765e410ebbce9e574ee86034887dac2f0
2023-05-06 15:38:29 +08:00
openharmony_ci
cd0a9c2855
!4014 Eliminate Level Check in SubTyping Check
Merge pull request !4014 from dingding/eliminate_level_check
2023-05-06 06:43:34 +00:00
openharmony_ci
9b5cdfb325
!4005 Fix some AOT compiler bug
Merge pull request !4005 from weng-xi/async_fix
2023-05-06 06:35:35 +00:00
openharmony_ci
3fbe2aeaa6
!4013 Remove UpdateHotness From AOT SLowPath
Merge pull request !4013 from weng-xi/slowpath
2023-05-06 03:22:08 +00:00
openharmony_ci
6d0374ba31
!3968 Add Incremental mark interface
Merge pull request !3968 from 武万琦/master
2023-05-06 03:04:07 +00:00
openharmony_ci
baad67c61d
!3986 Support typeinfer for generics types [PART_2]
Merge pull request !3986 from huoqingyi/typegenerics
2023-05-06 02:53:47 +00:00
lukai
330cf2680f Add memory tag for memory pool
Add MemPoolCached for unused but has mapped memory

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I70L4J?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I3822120f71ef1eaa19a7d6dca0a91e1f3121607a
2023-05-06 02:13:40 +00:00
openharmony_ci
359787611e
!4001 Support AOT Function Name for DFX
Merge pull request !4001 from 李晨帅/master
2023-05-06 01:33:35 +00:00
openharmony_ci
1ec90df88e
!4010 Modifying Code Alarms
Merge pull request !4010 from hwx1163501/master
2023-05-06 01:32:05 +00:00
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