Commit Graph

73 Commits

Author SHA1 Message Date
ZitongLi
d92fc70791 bug fix of hot reload
Signed-off-by: ZitongLi <lizitong1@huawei.com>
Change-Id: If2bd2cc5f9c5a5fb0294441ce28a04701ca78e2b
2024-05-31 09:36:41 +08:00
ZitongLi
3b83d88d07 bug fix of hot reload
Signed-off-by: ZitongLi <lizitong1@huawei.com>
Change-Id: Id5130d2647f5b3927c7f47bb8c83e7b61aaf993a
2024-05-30 16:03:35 +08:00
ZitongLi
0e43b93866 fix UT of quick fix that using the new method name
Signed-off-by: ZitongLi <lizitong1@huawei.com>
Change-Id: I46376b4abc175ef8b2406efb3213265869d37ae0
2024-05-26 17:02:59 +08:00
lichenshuai
c9c64a8f3c [新需求]: 函数命名重构
为了支持开发者AOP的需求,开发者需要可以对代码进行插装,原有函数名的hash对开发者而言无法找到准确的函数
现在函数名之前增加scope信息,以支持开发者定位到函数。

Issue: #I9ICJX (arkcompiler_ets_frontend)

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: I11d4dbc51b33f45f06054f3dca1d3f72f0721a80
2024-05-26 17:02:59 +08: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
openharmony_ci
1b47b2f725
!7311 Fix Debug disfunction after Applychange triggered
Merge pull request !7311 from Yellow-Sky-Proton/fix_applychange_debug
2024-05-14 02:18:21 +00:00
hanweiqi
e143f39edc Support Cold Reload: Update func_main_0
Signed-off-by: hanweiqi <hanweiqi3@huawei.com>
2024-05-11 13:23:14 +08:00
huangtianzhi
217b45cd15 Fix Debug disfunction after Applychange triggered
Notify loadmodule when applying code patch

Issue:#I9O3WB

Signed-off-by: huangtianzhi <huangtianzhi1@huawei.com>
2024-05-10 11:45:47 +08:00
hanweiqi
111bece6eb Coldreload Change Implement in IR
Signed-off-by: hanweiqi <hanweiqi3@huawei.com>
2024-05-09 15:01:14 +08:00
openharmony_ci
dc2e914e46
!7218 ColdReload 涉及模块化时,获取数据异常
Merge pull request !7218 from hanweiqi/master
2024-05-05 14:39:42 +00:00
hanweiqi
c8b1631472 Support ColdReload
Signed-off-by: hanweiqi <hanweiqi3@huawei.com>
2024-05-05 21:18:16 +08:00
@han_177
9ea7521009 修改告警
Signed-off-by: @han_177 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9KXRO
2024-05-04 18:22:49 +08:00
Aleksandr Emelenko
e3145be899 Fix possible deadlock because of incorrect usage of ManagedCodeBegin method.
Fix all other places where we can get rid of this method.

Issue: #I9IRF4

Signed-off-by: Aleksandr Emelenko <emelenko.aleksandr@huawei.com>
Change-Id: I7851695c07e8e57cb729c15abc592fc9ea66a696
2024-04-22 17:51:44 +03:00
ZitongLi
2818ec8c41 fix code check
Signed-off-by: ZitongLi <lizitong2506@gmail.com>
Change-Id: I6c56eb188ccae5b531bc35a8de40e57b7a3580fd
2024-04-15 11:15:18 +08:00
ZitongLi
e9d43225aa [BugFix] Fix the cpp crash of hot reload.
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9GD16?from=project-issue
Signed-off-by: ZitongLi <lizitong2506@gmail.com>

Change-Id: I03f8a2cdf5caa455783310450884fcc06315be32
2024-04-13 20:20:16 +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
wengchangcheng
b8b1775b12 share constpool between vm
1. move shared constpool to Runtime
2. delete vm in JsPandaFileManager

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I11cbbeefa72981f07f5513e81ec054acdd4fc9a5
2024-04-03 19:08:44 +08:00
wengchangcheng
85c131274b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I279823311968eb6174bb20be0b98245ca6a259c5
2024-03-13 22:10:40 +08:00
lijiamin2019
8dc6042fd0 Bugfix of HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ifd714db479a2cad66dacd9ccc0e3ee771a360105
2024-03-12 14:57:41 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
lijiamin2019
b955d66912 Bugfix of HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I12b5cb2e283efaaed987cd282868bcab23c61a43
2024-03-06 19:15:45 +08:00
Aleksandr Emelenko
5a48b9b5e7 [Suspend/Resume] Added mutator scopes and native scopes in the corresponding methods of the VM.
Changed JS thread state just after creation (now it is in NATIVE state before execution of the bytecode)

Issue:#I91O3N

Change-Id: I410c5c4a47a05e6e3b79cc41374431d1e9188503
Signed-off-by: Emelenko Aleksandr 00537379 <emelenko.aleksandr@huawei.com>
2024-02-27 20:32:15 +08:00
DaiHN
74d945a502 adapt esmodule
issue : https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I92GZ8

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Ib706d0ab9747a15c02e11be2b2b6fdcbd540e271
2024-02-23 16:05:03 +08:00
DaiHN
0c26b1f8f4 Merge remote-tracking branch 'origin/dev_shareheap' into mmmmmmmmm
Change-Id: I38c4372c3c9622ad43b890391fe5197ffac13dd6
2024-02-23 15:47:47 +08:00
lijiamin2019
82b1a38088 Move module from Method to JSFunction
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I8d9572c14310dba0a8496161d49c7ecfd14a74b3
2024-02-23 15:32:01 +08:00
DaiHN
f09abc4fa1 Support importing obj in Sendable Class
issure : https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I91CQ6

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I16cda3c6d3fa2571d2be2f951c604297cac851aa
2024-02-20 19:47:50 +08:00
lijiamin2019
e36eb338cd share method,constpool,classliteral
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ieb0a205bb341f09b6e5304ab66e2ce2e04725bb2
2024-02-07 21:36:41 +08:00
lijiamin2019
ff588ba20a Move MachineCode and ProfileTypeInfo from Method to JSFunction
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I90fd102f058d161055dd61cd92d7abed3e248d4b
2024-01-26 11:12:36 +08:00
lukai
3e3909b8c9 Implement some shared Allocation interface in objectFactory
1. Implement some shared Allocation, such as newSEmcaHClass,
   newSFunction.
2. Adapt intialization of object to shared space.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I84cf67d020f8797c44d83957cf95b3e4b504051a
2024-01-25 21:56:33 +08:00
lijiamin2019
47c99236d8 Optimize efficiency of HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ie98f54160ea94096ad86cc1477f2b21a82a12335
2023-12-28 11:20:56 +08:00
lijiamin2019
01ff276627 Bugfix of HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I4c6eba7f78975e1cdbb34e4f2040ee8444ef59ca
2023-12-12 16:13:20 +08:00
lijiamin2019
cf89e0d68f Optimize HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Id65a3d31e780a8fb5e7650b56edb7b583b5d51f9
2023-10-30 16:56:01 +08:00
lijiamin2019
cc4fcf00a8 Set stage of HotReload by enum class
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I7bcc1f0d0da5137e489d7efa360311887199337e
2023-10-25 11:19:28 +08:00
lijiamin2019
7a38717731 Execute patch func_main_0 for HotReload
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I12e11097ab46f811841486db18baac60d2a0e355
2023-10-19 20:35:48 +08:00
wengchangcheng
59fae0812a Fix compiler fail
Fix standalone build fail

Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I869QD

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ie9349d8d22a7f0b6ccd40ce2ff36cf947580302e
2023-10-09 13:53:57 +08:00
lijiamin2019
78a1abc663 Move module from Function to Method
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I440bb8dad9b46dd6582750a3665bcc0c586fd1e0
2023-09-20 16:49:17 +08:00
yaochaonan
07dda02b9a Revert "Refactor module, modify unreasonable hierarchical[Part 2]"
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I829U7?from=project-issue
This reverts commit 7e605984a9.

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ie2d52b853e03feae706237dfceb48db1c5256147
2023-09-18 15:50:38 +08:00
Onlynagesha
180e0a3f87 Fixes circular header dependency
Eliminates circular header dependency in some fundamental headers like
js_thread.h, js_tagged_value.h, etc.
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7ZPL4

Signed-off-by: Onlynagesha <orina_zju@163.com>
Change-Id: I5a78073992b77643718abdc1e0813485c0e439bb
2023-09-08 19:05:41 +08:00
DaiHN
7e605984a9 Refactor module, modify unreasonable hierarchical[Part 2]
issue : #I6K6UK

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I860181b413258c2d3c2abd761173d3cf233e5fe3
2023-08-29 21:15:01 +08:00
lijiamin2019
e60f1c9c04 Fix for super rebind this
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ibfe3aa530ef1f324ec3c82cafe52df345a8aa170
2023-08-03 17:10:50 +08:00
xiongluo
467c023aef fix code check
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I7643b362a6561fbe1671e1d1d7df69594b848270
2023-06-11 18:34:01 +08:00
xiongluo
b3bbcbf573 fix code check and realm parameter
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I71a9206f553eebdf4af791d34d0f9401776a70be
2023-06-11 16:18:18 +08:00
liu-qiang12
f14ab3c325 add cachedconstpools from vm to context
Signed-off-by: liu-qiang12 <liuqiang254@huawei.com>
https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UHGV
Change-Id: I50ee2e980840982cd40d8e1f0369e3d103af5734
2023-06-11 16:17:47 +08:00
liu-qiang12
4443a8a95d add listnode and icu
Signed-off-by: liu-qiang12 <liuqiang254@huawei.com>
https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UHGV
Change-Id: I705e82670483f784d997425c64282e425994849d
2023-06-11 16:17:47 +08:00
lijiamin2019
143ea1ba02 Bugfix of GeneratePatchInfo
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I25eb10c06026093ac903fae384a30044043756ac
2023-05-16 12:25:46 +08:00
g00416891
b4054bf631 Refactor loadedJSPandaFiles for memory leak
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6J2G8?from=project-issue

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ia8b70f4a0d0bdd67c82369c699b5687b949559c2
2023-04-07 14:57:06 +08:00
zhuhan
9f25fd333a qiuck fix
Signed-off-by: zhuhan <zhuhan10@huawei.com>
Change-Id: I35b4ffe6049fcb57f7277b77f07c76bc7ffe10ed
2023-04-04 11:32:52 +08:00
hwx1163501
3ebfd422b4 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6OSGM
2023-03-21 11:27:53 +08:00
weng-xi
f6f65e167c Add the ClassLiteral class
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ITCC
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iff5e4baaf5d71816b40015565fade48d2cf22fee
2023-03-07 09:34:33 +08:00
g00416891
13abd35e5d Modify LoadPatch interface with base buffer for gc bug
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6IF2K?from=project-issue

Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ib356ae7b59c8046c61a6e51dce26a72ea49c52d1
2023-02-28 16:36:32 +08:00