701 Commits

Author SHA1 Message Date
dov1s
bb8ce11745 move invokeentrypoint from ctx to vm
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBZPC3

Signed-off-by: dov1s <maojunwei1@huawei.com>
Change-Id: I1297b711cf912de2c0d010e2121358c12322155d
2025-04-09 14:53:39 +08:00
lijiamin2019
fcbbbaec20 Move constppol from EcmaContext to EcmaVM
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBW478

Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: I08ecd491ebf2ee6b786a735aab671e7a0fa028f8
2025-03-31 19:08:22 +08:00
xwcai98
d2b0ea8afc Remove EcmaContext (part 1)
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBQ63L

Signed-off-by: xwcai98 <caixinwei5@huawei.com>
Change-Id: I42bc9a0b0de76d664301947beb264b2ebd2bfa09
2025-03-06 16:05:11 +08:00
h00799777
4f1643a395 opt for cj&arkts interop
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBKI32

Signed-off-by: h00799777 <huangbingyao@huawei.com>
2025-02-14 20:48:53 +08:00
杨云飞
c445b130dd 处理ets_runtime仓冗余头文件
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBHYU3?from=project-issue

Signed-off-by: 杨云飞 <yangyunfei19@h-partners.com>
2025-01-17 17:04:43 +08:00
zbx
7dc62a0e67 Optimize Memory of Native Function
For non-builtin native function, the method field points to a constant
method template

Issue: IBH0VU

Signed-off-by: zbx <zhangboxiao1@huawei.com>
Change-Id: I80c7aee3716924be5363cc178f68913c0880bf7d
2025-01-14 18:33:10 +08:00
chentianyu
57380e4ffe Refactor and optimize GC mark
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBD7ZV

Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: Id12aa40872ecda570c3d42e88aece4873a52d1af
2024-12-31 14:56:51 +08:00
openharmony_ci
a083acd878
!10675 [BaselineJIT] reuse baselinecode cache in profiletypeinfo
Merge pull request !10675 from suyue/sy_mr1_reuse
2024-12-24 05:02:53 +00:00
wangchen
b44166d4b9 Adapt LdSendableLocalModuleVar
The Sendable function supports loading variables exported from this file.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBC6DV
Signed-off-by: wangchen <wangchen965@huawei.com>
Change-Id: Ie9122d7ce2692558b900cc6441e99c857b18c8ce
2024-12-23 10:09:57 +08:00
suyuehhh
0430477732 [BaselineJIT]reuse baselinecode
适配Bytecode offset

Adapt 5 call mode to check baseline code

reuse baselinecode cache in profiletypeinfo

trigger opt

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IBCL1Q
Change-Id: I26c6685ce549632334f365350add2e3fc0b25ddd
Signed-off-by: suyuehhh <suyue13@huawei.com>
2024-12-21 17:59:26 +08:00
openharmony_ci
52ddb82bd3
!9936 add Collecting Operators codes
Merge pull request !9936 from chengzhihao/master
2024-11-27 09:07:12 +00:00
chengzhihao
a236d2be28 add Collecting Operators codes
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAZFEV

Signed-off-by: chengzhihao <chengzhihao7@h-partners.com>
2024-11-05 11:47:39 +08:00
hecunmao
dcb9e55ec8 1**"test" Get Error Result
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB212T

Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I6b5d5a39e48cbdf6ce9b34bbdc45bf9d00f7309c
2024-11-04 22:20:03 +08:00
openharmony_ci
671bef820a
!9222 sync code
Merge pull request !9222 from fangting/master
2024-09-18 19:49:11 +00:00
fangting
d6a2a9dc25 蓝黄同步
Issue:#IAQAB1
Signed-off-by: fangting <fangting12@huawei.com>
2024-09-18 11:31:38 +08:00
openharmony_ci
ee2d73858b
!8953 Added ref detection for the napi call interpreter
Merge pull request !8953 from 邵益江/jsnapi_dfx
2024-09-11 20:41:12 +00:00
15651885392
3663fdf617 Close ICpath in ldprivateproperty and stprivateproperty
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IANU24?from=project-issue
Reason: Due to the imperfect realisation of IC-path in ldprivateproperty and stprivateproperty, when two object create by the same function, they will use the same profiletypeinfo. So it can't throw a typeError when C2 accessed the private property of C1 when run in pgo-int mode
Description: close the ICpath when handle ldprivateproperty and stprivateproperty temporarily
Signed-off-by: 15651885392 <xingshunxiang@huawei.com>
Change-Id: I829782a7b45ba2b556dce2ea3ad036708f329dec
2024-09-05 11:57:42 +08:00
shaoyijiang
baa8d6c63d Added ref detection for the napi call interpreter
Issue: IAMXFX
Signed-off-by: shaoyijiang <shaoyijiang@huawei.com>
Change-Id: I4b34608771f2513e8a6abacc62b022de12ad3732
2024-09-03 14:56:33 +08:00
qiuyu
f86405e0ca Optimize default ctor for derivative class
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IA8WK8

1. adapt interpreter for the new isa callruntime.SuperCallForwardAllArgs
2. adapt asm-interpreter for callruntime.SuperCallForwardAllArgs
3. adapt jit/aot for callruntime.SuperCallForwardAllArgs
4. adapt baseline jit for callruntime.SuperCallForwardAllArgs
5. remove the constraint for functions with zero icSlotSize so that
the default ctor for derivative class can be compiled into native code.

Signed-off-by: qiuyu <qiuyu22@huawei.com>
Change-Id: I346da77403de0d14f53532bc51c40a3ca27fc689
2024-08-25 18:07:36 +08:00
yy
9f6a0ccdd5 Modify code security specification alarm
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAL8A5?from=project-issue

Signed-off-by: yy <yejunwen2@h-partners.com>
2024-08-21 19:08:14 +08:00
openharmony_ci
d44cff52c2
!8580 Fix IC Slot
Merge pull request !8580 from 李晨帅/ic
2024-08-17 16:18:53 +00:00
lichenshuai
62712ea96f Fix IC Slot
修复16位 IC Slot 溢出的情景

Issue: #IA8ONB (ets_frontend)

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ifb93f571fe22c4056c1fa3993da61d502862b7f5
2024-08-17 14:15:50 +08:00
openharmony_ci
fc0fad40ad
!8690 fix code warning
Merge pull request !8690 from linxiang8/master
2024-08-15 12:06:12 +00:00
linxiang8
9849e792fc add some nullptr assert and free/close space/fd
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAJUVD
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: I977bc6e18b3da215808d531adb58f82229ff7908
2024-08-15 10:44:23 +08:00
fangting
902e4ff2c0 optimize compiler
optimize compiler

Issue:#IAJ541
Signed-off-by: fangting <fangting12@huawei.com>
2024-08-13 10:17:04 +08:00
Andrey Efremov
d8cf9a50f7 Optimize ArkJS VM build time
Issue: https://gitee.com/open_harmony/dashboard?issue_id=IACDZP

Change-Id: I729c3a2741cb2571d6f7184b2726e5f06eca802a
Signed-off-by: Andrey Efremov <efremov.andrey@huawei-partners.com>
2024-07-30 16:26:35 +08:00
openharmony_ci
8f30ab4098
!8262 isFrameEntry接口问题
Merge pull request !8262 from transparent123123/tzr_entry_frame
2024-07-25 19:56:12 +00:00
transparent123123
4c6a0f7290 IsEntry is wrong
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAEDJO

Signed-off-by: transparent123123 <tanzirui@huawei.com>
Change-Id: I4662a879387ce2b5d132bd52a83d3a2a0d7ae690
Signed-off-by: transparent123123 <tanzirui@huawei.com>
2024-07-23 01:54:12 -07:00
wu_zhang_da
efa26cb103 Revert "Disable worker aot optimization"
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAE7O5

This reverts commit ef2532024a1fd9435287a125ce53705ea2823200.

Change-Id: I5401b5c973bb83568dc568e0dfe4d9e9784a2412
Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
2024-07-22 16:36:37 +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
rentangyu
5560a3ab9e The aa startup mode is added
If the .so file fails to be loaded, the detailed error information is displayed

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

Signed-off-by: rentangyu <rentangyu@huawei.com>
2024-07-11 16:27:31 +08:00
openharmony_ci
1939dc2e35
!6739 Add compiledcode and fastcall flag in JSFunctionBase
Merge pull request !6739 from xiaoweidong/machinecode_flag
2024-07-09 20:10:04 +00: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
xiaoweidong
395bc2a0a9 Add compiledcode and fastcall flag in JSFunction
1. Judge aot and fastCall with jsfunction flag
2. Add aot/fast flag in JSFunction

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9D1U1
Change-Id: Ibe6be511c16f856cb5210ef7448d24e045c2156a
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-07-09 12:16:49 +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
wu_zhang_da
5e3c043907 Fix Aot Binding and Array.prototype.indexOf
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA9NNH

Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
Change-Id: I9e871497ead7efa70061b04782c882623d11881d
2024-07-01 16:34:58 +08:00
hzzhouzebin
adcae46b0c Revert "fix Aot Binding"
This reverts commit b3b9198e0a44052b42bfb6e739b6ce80e314b847.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA8I51
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I68c07d6f165cf30cf168d4dd11243a1c3129ead3
2024-06-26 16:45:38 +08:00
yangxiaoshuai2022
219d3c469a warning fix
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-06-21 17:13:58 +08:00
openharmony_ci
211b968251
!7739 Fix Aot Binding
Merge pull request !7739 from hzzhouzebin/fixAotBinding
2024-06-19 15:57:24 +00:00
hzzhouzebin
b3b9198e0a fix Aot Binding
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IA3Z8B
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I4f4143b25692c5c192b3ebea24ba75908abd0d6c
2024-06-18 22:37:35 +08:00
yangxiaoshuai2022
108e4e4e9f warning fix
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-06-17 19:21:06 +08:00
yangxiaoshuai2022
803530bfa9 fix warning of security
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-06-14 15:19:49 +08:00
openharmony_ci
aad409e815
!7689 Disable worker pgo profiler and aot optimization
Merge pull request !7689 from yingguofeng/master
2024-06-07 09:52:39 +00:00
yingguofeng@huawei.com
ef2532024a <Fix>(Aot): Disable worker pgo profiler and aot optimization
Issue: #I9VIJF
Change-Id: I30046d6a4c1d53c616634bbf20c510172342b775
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2024-06-07 16:00:46 +08:00
suyue
1c4a599bc8 [Baseline JIT] new features and bugfix(MR276-MR303)
!276 [BaselineJIT]baseline bugfix CreateemptyarrayImm16
* [BaselineJIT]baseline bugfix CreateemptyarrayImm16

!277 [BaselineJIT]baseline bugfix of stringId,slotId type
* [BaselineJIT]baseline bugfix of stringId,slotId type

!278 bugfix for stringId,slotId and levelId
* [baselineJit]bugfix for stringId,slotId and levelId

!279 [BaselineJIT]generate assembly for bytecode MOV_V*_V* directly
* [BaselineJIT]generate assembly for bytecode MOV_V*_V* directly

!280 [baselineJit]bugfix for index needed extend to int32/16 and add log
* [baselineJit]bugfix for index needed extend to int32/16 and add log

!281 [BaselineJIT]avoid push args on stack
* [BaselineJIT]avoid push args on stack

!272 [BaselineJIT] support exception handler
* [BaselineJIT] support exception handler

Change-Id: I57d84d30dad04c31ca163183aab67ea3e0d6911a

!283 [BaselineJIT] do not pass parameters on the stack
* [BaselineJIT] do not pass parameters on the stack

!282 [BaselineJIT] support return thisObject for NewObjRange
* [BaselineJIT] support return thisObject for NewObjRange

!285 [BaselineJIT]support profiler part2
* part23
* part22
* part21
* part20
* part19
* part18, support APPEND_SUFFIX_IMM16
* part17
* part16
* part15
* part14
* part13
* part12
* part11
* part10
* part9
* part8
* part7
* part6
* part5
* part4
* part3
* BaselineCallargs3Imm8V8V8V8 callRange
* callagr1 and callarg2
* BaselineCallArg0Imm8

Change-Id: Ib19febd1a506be1b7f5b08120cf7f8e0914df389

!286 [BaselineJIT]bugfix for the type of slotId
* [BaselineJIT]bugfix for the type of slotId

!284 [BaselineJIT] enable other EXCEPTION macros
* [BaselineJIT] enable other EXCEPTION macros

!288 [BaselineJIT]baseline support update hotness part2
* [BaselineJIT]support distinguish upframe for current baseline frame
* [BaselineJIT]support BaselineSuspendgeneratorV8
* [BaselineJIT]baseline support update hotness part2

!289 [BaselineJIT] adapter UpFrame for baseline
* [BaselineJIT] adapter UpFrame for baseline

!291 [BaselineJIT] get baselineBuiltinFp by asm stub
* [BaselineJIT] get baselineBuiltinFp by asm stub

!292 [baselineJit]bugfix for builtin and replace return value with macro CHECK_EXCEPTION_WITH_ACC
* replace return value with macro CHECK_EXCEPTION_WITH_ACC part5
* replace return value with macro CHECK_EXCEPTION_WITH_ACC part4
* replace return value with macro CHECK_EXCEPTION_WITH_ACC part3
* replace return value with macro CHECK_EXCEPTION_WITH_ACC part2
* [baselineJit]bugfix for BaselineDelobjpropV8 and replace return value …

!293 [baselineJit]bugfix for arm64
* [baselineJit]bugfix for arm64

!294 replace return value with macro
* supplement CHECK_PENDING_EXCEPTION
* [baselineJit]replace return value with macro CHECK_EXCEPTION_WITH_JUMP…
* [baselineJit]replace return value with macro CHECK_EXCEPTION_WITH_VARACC

!296 [baselineJit]exception handler macro DISPATCH_LAST
* enable DISPATCH_LAST in UPDATE_HOTNESS
* DISPATCH_LAST part2
* [baselineJit]DISPATCH_LAST part1

!297 [baselineJit] support profile 补充
* [baselineJit] support profile in WideNewobjrangePrefImm16V8,

!295 bugfix for HandleReturn
* [baselineJit]bugfix for HandleReturn

Change-Id: I53c342fb00401e9acbef1cc178dea832e3defefd

!298 bugfix for interpreter
* [baselineJit]bugfix for interpreter

Signed-off-by: suyue <suyue13@huawei.com>
Change-Id: Ic77e5dc3bc4accc999f2ef2e07e562058dc88fbe

!300 [BaselineJIT]support js stack trace
* [BaselineJIT]support js stack trace

Change-Id: Ia2a8069577e9f9568d9b376be867320f2e0b52cf

!299 [baselineJit]Bugfix for arm64
* [baselineJit]Bugfix for arm64

Change-Id: Icce088dc3b42b183d794ea47998efc51d752854f

!301 [baselineJit]Bugfix for BaselineNewobjapplyImm16V8
* [baselineJit]Bugfix for BaselineNewobjapplyImm16V8,BaselineCloseiterat…

!302 [baselineJit]Bugfix for mov imm64 to reg in arm64
* [baselineJit]Bugfix for mov imm64 to reg in arm64

!303 [baselineJit]bugfix for RuntimeGetBytecodePcOfstForBaseline
* [baselineJit]bugfix for RuntimeGetBytecodePcOfstForBaseline

Change-Id: I67fdd8bf1c9da3d8f7a87d180689618f95771cea
2024-06-06 16:28:41 +08:00
openharmony_ci
7364f933d8
!7500 An exception was generated when throwing an exception. Procedure
Merge pull request !7500 from 贺存茂/ExceptionGenerationWhereThrow
2024-06-05 01:26:58 +00:00
openharmony_ci
f04f434c6c
!7622 warning fix
Merge pull request !7622 from yangxiaoshuai2022/warning_fix_0531
2024-06-04 11:51:01 +00:00
hecunmao
5548760e81 codecheck3
Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: I1a8a9dfaf8e6e39148745af53430de8ac32efde1
2024-06-04 14:22:05 +08:00
yangxiaoshuai2022
453ac80c3a warning fix
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-06-04 11:44:32 +08:00
hecunmao
9bfb684070 codeCheck
Signed-off-by: hecunmao <hecunmao@huawei.com>
Change-Id: Ifeabbd3eb9b9484ed9ff939c323c6bfe8923db96
2024-06-04 09:45:47 +08:00