Commit Graph

79 Commits

Author SHA1 Message Date
yingguofeng@huawei.com
08fd62a8fb Perf(memory): Optimize memory for define class
Issue: #IAPMR7
Change-Id: Ie128d64a1454129ec322a9ec38a8b28a6bdf46b8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2024-09-20 11:24:57 +08:00
openharmony_ci
73f88d77ea
!9333 Reduce JSNativePointer size
Merge pull request !9333 from Gymee/reduce_jsnativepointer_size
2024-09-16 01:34:09 +00:00
Gymee
46cd1ebd6c Reduce size of JSNativePointer
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IARFBJ
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Id99ce459b5b378eba162308b09438ae4f220aff8
2024-09-14 16:35:21 +08:00
lijiamin2019
efc4d89c34 Fix the fail of getting function name
1.Fix the fail of getting function name

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

Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I27861bcc1f43f7a9204bd1aa1649eb58e0beea5d
2024-09-13 21:45:07 +08:00
hecunmao
100d8dab18 fix UT failed in rk3568
fix EcmaVm_001_Test,EcmaVm_002_Test,Ecma_Vm_013_Test fail in rk3568

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

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I3d679236d442bfeb3cba463d119b59608b061a8c
2024-09-02 14:09:14 +08:00
openharmony_ci
0e0466e408
!8624 Remove JSNativePointer in InternalAccessor
Merge pull request !8624 from Gymee/remove_overused_jsnativepointer_part1
2024-08-24 03:57:12 +00:00
openharmony_ci
d89dfcbe62
!8726 Adjust native size trigger gc strategy
Merge pull request !8726 from dingwen/stragery_br
2024-08-24 03:51:38 +00:00
Gymee
25d4d5d9ef Remove JSNativePointer in InternalAccessor
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJ4G8
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I85d4677b4aa7041c63ec0bb1592a6e6c2abb3785
2024-08-21 18:10:09 +08:00
dingwen
0d7dec6112 Adjust native size trigger gc strategy
Description:Adjust native size trigger gc strategy
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAKDJ7?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I297b251c0b32a512e0051c1be2bbd929318fe159
2024-08-18 10:47:47 +08:00
openharmony_ci
cd5b5a8e8b
!8682 Fix some tsan warning
Merge pull request !8682 from dingwen/tsan_br
2024-08-17 10:36:57 +00:00
l00799755
2a27085219 Move ExtraInfoMap to ProfileTypeInfo
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAFPQK
Description
Move ExtraInfoMap to ProfileTypeInfo

Signed-off-by: l00799755 <lujiahui4@huawei.com>
Change-Id: I0cf4f43ddc18b65a983950e9a005ebab39f13343
2024-08-15 16:04:20 +08:00
dingwen
480f315a47 Fix some tsan warning
Description:Fix some tsan warning
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJSW2?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I6a0e8c8a979407b19ecd0c882bea12d6827d03ec
2024-08-15 15:06:09 +08:00
openharmony_ci
70f6e887c4
!8625 optimize compiler
Merge pull request !8625 from fangting/master
2024-08-14 00:48:36 +00:00
fangting
902e4ff2c0 optimize compiler
optimize compiler

Issue:#IAJ541
Signed-off-by: fangting <fangting12@huawei.com>
2024-08-13 10:17:04 +08:00
zhuruigan
8b3ed4c6a9 Fix shared_object_factory codecheck
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJ71U?from=project-issue
Signed-off-by: zhuruigan <zhuruigan@huawei.com>
Change-Id: I8a492f3bc6289898ffc0c5b1efdacdd035282c87
2024-08-11 19:44:56 +08:00
dingwen
312d1ebd10 Add native size trigger gc in sensitive scene
Description:Add native size trigger gc in sensitive scene
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAIL9E?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I33dd9940fb7a3c6015b2cd53f198079f6afc5e5c
2024-08-10 14:54:41 +08:00
zhouguangyuan
a8a434c76a Alloca internal accessors in shared readonly space
Internal accessors are permanent live, and it only references to the "permanent live" object, so put all of them to readonly space.

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

Signed-off-by: ZhouGuangyuan <zhouguangyuan1@huawei.com>
Change-Id: I95d653a6927f7934bfc8bb0cc03ab3a00f1f2e22
2024-08-08 11:29:42 +08:00
xiongluo
00ddb98686 UT enable shared full gc
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAAM12

Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I5110adef96a07fd8926452941e6183bf86a03f0b
2024-08-04 19:12:16 +08:00
openharmony_ci
184eb5e766
!8182 Fix the crash of MarkValue in GC process
Merge pull request !8182 from 陆佳慧/ljh/extrainfomap
2024-07-26 08:12:43 +00:00
l00799755
e5f3d898a4 Fix the crash of MarkValue in GC process
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IADRYE
Description
Put the Map that stores ExtraProfileTypeInfo onto the heap

Signed-off-by: l00799755 <lujiahui4@huawei.com>
Change-Id: Ic2137b87fe888b0f524cb75c6bd827b9e7cfa428
2024-07-26 10:42:50 +08:00
chenlincl3
a1e281d7fb Optimize source_text_module field to cstirng
Issue:  https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IADOXR
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
2024-07-20 20:30:13 +08:00
yaochaonan
c9e8a199b2 Delete new bool
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IABWM6?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: If721c25fbd240ec0fa002008ace64a20b50603a1
2024-07-12 23:45:11 +08:00
yaochaonan
28325725ac Support Lazy Import
Issue: https://e.gitee.com/open_harmony/dashboard?issue=IAARFN

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I8ccd39ba22d71827eb93699d560165beb9d12ba9
2024-07-10 00:41:17 +08:00
lijiamin2019
4c8bf4d7bf Support sendable function
1.get functionKind and set method IsSharedBit
2.define sendable function.

Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IA947R

Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ia970e06569c37a98bccab696fbb9b2f9c1de51de
2024-07-07 16:50:46 +08:00
yingguofeng@huawei.com
642afe362a Fix(Aot): Application Aot optimization
1.Fix the IC slot conflict in definefunc bytecode: The cache of profileTypeInfo and profile
    define func info for PGO.
    2.The bc of defineclass supports cache of profileTypeInfo
    3.Aot compiler filters the invalid profileType.
    4.Getter/Setter supports force IC.
    5.Optimize profile ld/st/defineclass bytecode.
    6.Resolved the deopt caused by hclass cached.

Issue: #IA70NP
Change-Id: I3f1e9899ff23a1ed70dcb9df30b1c1388837cd69
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2024-06-27 19:04:32 +08:00
zhangyukun8
3ce238478b Fix GetMethodLiteral in jit mode
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9UVFK?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ibe69dee8872a46da10106ac06e436aaa869a02a8
2024-06-04 17:29:57 +08:00
zhaishimin
827e331db7 [JIT] reuse machine code and profile type info
Change-Id: Iee9ab6691c53b7beb3aaefe871b85a9a650f3911
2024-05-31 17:58:59 +08:00
openharmony_ci
d6de48e714
!7368 [新需求]: 新增Cell类型,并适配缓存ProfileTypeInfo以提升性能
Merge pull request !7368 from 李晨帅/Cell
2024-05-17 10:00:26 +00:00
chentianyu
c0973fce63 Support SharedGC ConcurentMark
Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: I476a1b4e349b53c960048890a776eaad7681bd03
2024-05-16 18:29:49 +08:00
openharmony_ci
c77bad01b5
!7349 modify sendable api and optimize napi performence
Merge pull request !7349 from weng-changcheng/napi_fix
2024-05-15 12:43:28 +00:00
lichenshuai
7112c43755 [新需求]: 新增Cell类型,并适配缓存ProfileTypeInfo以提升性能
之前,profileTypeInfo位于method,当前已被移动至function,此时如果重复definefunc,则会使得profileTypeInfo被清空。
因此,需要缓存profileTypeInfo以提升性能。
新增Cell类型,用于缓存profileTypeInfo。

Issue: #I9OZOF

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I151d78401ea7eba03426fd80fd3549a7f12effa0
2024-05-15 17:51:47 +08:00
wengchangcheng
fb6f055cda modify sendable api and optimize napi performence
1. use napi_wrap instead of napi_wrap_sendable
2. optimize napi_wrap performence

https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9ONY5

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I0e88c813033df423008dd0e62a8f5301126ea7bb
2024-05-15 09:21:10 +08:00
@han_177
702f3d5e1d modify code alarms
Signed-off-by: @han_177 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KY1E
2024-05-14 11:37:18 +08:00
openharmony_ci
560fa8db0a
!7344 bugfix of lazy loading hsp across thread
Merge pull request !7344 from DaiHN/module_lazyfix
2024-05-13 03:38:34 +00:00
lijiamin2019
25076981de Support sendable env
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I12c98e977e9338cbe811cdd65b8e6b80bc8f4872
2024-05-12 17:41:27 +08:00
DaiHN
282b2356ce bugfix of lazy loading hsp across thread
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9OKOK?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Ieb1b4ad4022e2e63d3e45456244bbd5ccab08271
2024-05-11 20:53:31 +08:00
liu-zelin
76cbb82b9d Add sendable napi
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9O3XT?from=project-issue
Signed-off-by: liu-zelin <liuzelin8@huawei.com>
Change-Id: I6f361f4e3dd454d14ac9ef22a924118c7a41844b
2024-05-10 12:01:04 +08:00
openharmony_ci
b248dc6cf4
!7034 Bugfix of import shared-module cross hap and dynamic-importing
Merge pull request !7034 from DaiHN/fixsendable4
2024-05-06 15:57:03 +00:00
DaiHN
6e91640974 Bugfix of import shared-module cross hap and dynamic-importing
issue:  https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9IFCJ?from=project-issue

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I05226456fc9ac316f81c7c973f5e116a7c108c83
2024-05-06 10:34:45 +08:00
wangzhaoyong
54d43120e5 add initialize for function flag
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I268d98bae70a8171c35dcfadddc3b2b9cc7287c9
2024-05-05 01:15:02 +08:00
yang-19970325
cd97b621fd Revert sendable json
This reverts commit f0037defe0.

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I0b5de6c93dbad968208c8246fc3dab7e08904e68
2024-04-24 19:58:59 +08:00
wengchangcheng
38db6db8ad modify napi performance
1. add env in JSNativePointer deleter
2. delete new NativeObjectInfo
3. delete NapiNativeCallbackInfo, use ark stackinfo instead

https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9IDMS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1acf0e9f26096319ef74ef20e108ac63c9c2c21c
2024-04-21 14:47:41 +08:00
openharmony_ci
7ff2267ae7
!6848 Support concorrent jit compile
Merge pull request !6848 from xiaoweidong/parallel_jit_5
2024-04-16 13:01:38 +00:00
DaiHN
c9c837d553 Bugfix of importing native module in shared-module
issue : c53148112e

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I8012abd5f5458d57141e6f5b4545380c998641d3
2024-04-15 21:01:39 +08:00
xiaoweidong
2aed02e4e4 [JIT] jit concurrent compile 2
1. Add alloc check in new share obj hook
2. get callsite from frame directly for jit
3. fix comments

Change-Id: I5232a29e8c84385cfdb805237f587cb4d8e982c2
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-15 14:04:05 +08:00
hzzhouzebin
a4f332df22 fix ut
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I9c9d2c569022b5f998b703ff10e5a10bf2480d47
2024-04-15 00:59:25 +08:00
openharmony_ci
8b376fa97a
!6724 SENDABLE_JSON support parse Sendable objects
Merge pull request !6724 from yangcheng/master
2024-04-09 10:13:38 +00:00
yangcheng
1bb9e5a818 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: yangcheng <yangcheng89@huawei.com>
2024-04-08 22:35:32 +08:00
yangcheng
f4c11b5fbd Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into master
Signed-off-by: yangcheng <yangcheng89@huawei.com>
2024-04-07 23:09:31 +08:00
DaiHN
03892a9864 Support shared module
issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I9BIE5

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I7cecbb668131d2279966749be68a02a6127f7ac9
2024-04-07 20:04:00 +08:00