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
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
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
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
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
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
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
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
wangyue
9c9fd70e2c
jit && dfx
...
Signed-off-by: wangyue <guowanlong@huawei.com>
Change-Id: I4010825e9e665a5c5d6ed45aedb05e0e0bef2098
2024-06-01 14:06:52 +04:00
cly
0bbd5aab4c
[BaselineJIT]adapt new properties and bugfix for BaselineJIT
...
!270 [BaselineJIT] fix bug about return result
* [BaselineJIT] fix bug about return result
!273 [BaselineJIT] support baseline option independently
* [BaselineJIT]support baseline option independently
!274 [BaselineJIT]baseline gc bugfix
* [BaselineJIT]baseline gc bugfix
!271 [BaselineJIT]BaselineJIT support profile
* [BaselineJIT]BaselineJIT support binary opration profile
* [BaselineJIT]BaselineJIT support profile
!265 [baselineJit]Enable aarch64 macro assembler
* [baseline jit]refactor bugfix patch
* [baselineJit]Bugfix for baseline jit call interpreter in aarch64
* [baselineJit]Enable aarch64 macro assembler
Change-Id: I5ab9f9e988b08b01ca5a0dc9051a1b45a11844c3
Signed-off-by: w00443755 <wangzhilei2@huawei.com>
2024-04-29 11:25:49 +08:00
Like
8463dad7ca
privateproperty lowering
...
Signed-off-by: Like <zhenglike@huawei.com>
Change-Id: Idd4affbc9d1ea861d8ef1168ce5f36ee9ef495e7
2024-04-23 14:20:59 +08:00
w00443755
e68673a13f
enable baseline compiler
...
add baseline builtins
Change-Id: Ib8d7c392c62e21eab19b17e45c0fafb499cbbed9
support running baseline compiler by option --compiler-force-baseline-compile-main=true
Change-Id: I7c7337faf9fad39ccffb2de28d46403e2f6cb22b
baseline jit part3
Change-Id: I36e8dd6a6fa6fffb738029a8620bbcd01df1e017
baseline part4
Change-Id: Ib45bcf7255a85aa48f864a6021adf819927e6a13
baseline part5 move baseline into compiler folder
Change-Id: Ia8781c95ae00c4f300e7267a6da0078b5d04e4c8
!185 support BaselinePrologue
* support BaselinePrologue part3
* support BaselinePrologue part2
* support BaselinePrologue
!187 [BaselineJit] support load baseline builtins
* [BaselineJit]support load baseline builtins
!186[BaselineJIT] workaround for baselinejit support install code
* install code part3
* install code part2
* baseline jit support intall code
!188 [BaselineJit] support CallBuiltin
* [BaselineJit] baseline support CallBuiltin
!189 [BaselineJIT]implement StackOffset class
* [BaselineJIT]implement StackOffset class
!190 [BaselineJIT]refactor BaselineAssembler and MacroAssembler
* [BaselineJIT]refactor BaselineAssembler and MacroAssembler
!191 [BaselineJIT] refactor class BaselineCompiler
* [BaselineJIT] refactor class BaselineCompiler
!192 [BaselineJIT] callbuiltin support new parameter type
new parameter type: int32_t,SpecialParameter,VirtualRegister
!193 [BaselineJIT]modify BaselineLoadObjByName function
* [BaselineJIT]modify BaselineLoadObjByName function
!194 [BaselineJIT] support new builtins
* [BaselineJIT] add BaselineTryLdGLobalByNameImm8ID16, BaselineStToGlobalRecordImm16ID16, BaselineLdaStrID16
!196 [BaselineJIT]bugfix for BaselinePrologue, align the rsp
* [BaselineJIT]bugfix for BaselinePrologue, align the rsp
!197 [BaselineJIT]bugfix for StackOffsetDescriptor
* [BaselineJIT]bugfix for StackOffsetDescriptor
!198 [BaselineJIT]workaround for helloworld testcase, helloworld can run successfully
* workaround for helloworld testcase, helloworld can run successfully
!200 [BaselineJIT]adapt profile collection
* [BaselineJIT]adapt profile collection
!201 [BaselineJIT]refactor baseline jit
* [BaselineJIT]refactor baseline jit
!203 [BaselineJIT]support trigger BaselineJITCompile and call baselinecode async
* [BaselineJIT]support trigger BaselineJITCompile and call baselinecode async
!202 [BaselineJIT]enable update hotness
* [BaselineJIT]enable update hotness
!205 [BaselineJIT]adapt JSCallDispatch interface
* [BaselineJIT]adapt JSCallDispatch interface
Change-Id: I4efce4346f985c7e074d7fc4bbfe3b081272e950
!195 [Baseline JIT] bytecode to builtin funs
* !206 enable bytecode builtins and call CHECK_PENDING_EXCEPTION
* [Baseline JIT] builtins:StobjbynameImm9Id16V8,StobjbynameImm16Id16V8,S…
* [Baseline JIT] builtins:CopyrestargsImm8,LdlexvarImm4Imm4,StlexvarImm4…
* [Baseline JIT] builtins: LdsuperbyvalueImm8V8,LdsuperbyvalueImm16V8,St…
* [Baseline JIT] builtins: DelobjpropV8,AsyncfunctionawaituncaughtV8,Cop…
* !204 enable bytecode builtins
* [Baseline JIT] builtins: DefineclasswithbufferImm8Id16Id16Imm16V8,Defi…
* [Baseline JIT] builtins: LdthisbynameImm8Id16,Definegettersetterbyval…
* [Baseline JIT] builtins: Callarg0Imm8,SupercallspreadImm8V8,ApplyImm8V…
* !199 enable bytecode builtin func
* [Baseline JIT] builtins: StrictnoteqImm8V8,StricteqImm8V8,Istrue,Isfal…
* [Baseline JIT] builtins: NegImm8,NotImm8,IncImm8,DecImm8,IsinImm8V8,In…
* [Baseline JIT] builtins: And2Imm8V8,Or2Imm8V8,Xor2Imm8V8,ExpImm8V8,Typ…
* [Baseline JIT] builtins:LessImm8V8,LesseqImm8V8,GreaterImm8V8,Greatere…
* [Baseline JIT] builtins:Add2Imm8V8,SUB2_IMM8_V8,MUL2_IMM8_V8,DIV2_IMM8…
* [Baseline JIT] builtins:CreateobjectwithbufferImm8Id16,Createobjectwit…
* [Baseline JIT]builtins:Createemptyobject,CreateemptyarrayImm8,Createem…
* [Baseline JIT] builtins:GetiteratorImm16,Asyncfunctionenter,Createasyn…
* [Baseline JIT] builtins:ldsymbol,ldglobal,Poplexenv,Getunmappedargs,Ge…
* [BaselineJIT] builtins: add base class
!209 handle opcode in baseline compiler
* handle opcode in baseline compiler
!210 [baseline jit]: add baseline stub call signature target kind info
* [baseline jit]: add baseline stub call signature target kind info
!212 [BaselineJIT]baseline builtin bugfix
* [BaselineJIT]baseline builtin bugfix
!207 [BaselineJIT]support BaselineBuiltinFrame
* [BaselineJIT]support BaselineBuiltinFrame
!214 [BaselineJIT]baseline builtin bugfix of using JSCallDispatch
* [BaselineJIT]baseline builtin bugfix JSCallDispatch
Change-Id: Id67b991df5dee753a38c284234d15b02f0d8a091
!215 [BaselineJIT]bugfix for StackOffsetDescriptor
* [BaselineJIT]bugfix for StackOffsetDescriptor
!216 [baseline jit]update bytecode builtins
* [baseline jit]update bytecode builtins
!213 [BaselineJIT]support BaselineReturn and BaselineReturnundefined
* [BaselineJIT]support BaselineReturn and BaselineReturnundefined
!218 [BaselineJIT]baseline builtin
* [BaselineJIT]baseline builtin:ldfunction,ldthis,asyncgeneratorresolvev…
!217 parse baseline-jit bytecode v1.0
* parse bytecode in baseline-jit
!220 [BaselineJIT]baseline refactor ParameterIndex
* [BaselineJIT]baseline refactor ParameterIndex
!223 [BaselineJIT]get function and method from stack, avoiding method is used after call
* [BaselineJIT]get function and method from stack, avoiding method is us…
!224 [BaselineJIT]bugfix for compiling x64.release
* [BaselineJIT]bugfix for compiling x64.release
!226 [BaselineJIT] adapt gc for BASELINE_BUILTIN_FRAME type
* [BaselineJIT]adapt gc for BASELINE_BUILTIN_FRAME type
!222 [BaselineJIT] parse baseline builtin args
* [BaselineJIT] parse baseline builtin args:part 2
* [BaselineJIT] parse baseline builtin args
!229 parse baseline-jit bytecode v2.0
* [BaselineJIT] parse bytecode v2.0
!230 [BaselineJIT] remove including undefined_function file
* [BaselineJIT] remove including undefined_function file
!228 handle byte opcode of jmp v2
* [baseline jit]handle opcode of jmp V2
[BaselineJIT]rebase bugfix
Change-Id: I078298849139317dfa89fb139979c1b7d938b344
!231 [BaselineJIT] fix bugs about reading bytecode
* [BaselineJIT] fix bugs about read bytecode
!232 [BaselineJIT] fix bug about processing arguments in stub
* [BaselineJIT] fix bug about processing argument in baseline-stubs
!233 handle int64_t type in CallBuiltin
* [baseline jit]handle int64_t type in CallBuiltin
!234 [BaselineJIT] fix bug for StToGlobalRecordImm16ID16
* [BaselineJIT] fix bug for StToGlobalRecordImm16ID16
!235 [BaselineJIT] fix bugs about args type
* [BaselineJIT] fix type of args that passing to builtins
!236 [BaselineJIT] do not pass constpool to builtins
* [BaselineJIT] do not passing constpool to builtin
Change-Id: I8c46d70527a3fedd841d28ac1908a02d4a66edeb
!237 [baselineJit]Bugfix for sp used in JSCallDispatch and incorretc type
* [baselineJit]Bugfix for sp used in JSCallDispatch and incorretc type
Change-Id: I3f42ecd06266a20b2b145cfe98bcbd97a2848bab
[BaselineJIT] dump_test bugfix
Change-Id: I97d21960ca98cd1a6fc9b1e81b647ff9d8d5d0c2
[BaselineJIT]codecheck fix
Change-Id: I93eb02e45b70f4a5bfee84fec0c8e2cdc765d348
code check bugfix part2
Change-Id: I8680dd2c098193705709691fa78e8e6f3ad8cd6c
bugfix for review
Change-Id: I49b28e109530b9f8b403ba22ba39948e02834021
[BaselineJIT]change file folder
Change-Id: I1f46110a804f17270badcff7cdeb2058ca164161
[BaselineJIT]bugfix for review part2
Change-Id: I190406652697f9b17ac6c84dd706262046dbb5f7
!238 [BaselineJIT] fix more than 6 args builtins
* [BaselineJIT] fix more than 6 args builtins
!239 [BaselineJIT] fix bug in parsing CALLTHISRANGE_IMM8_IMM8_V8
* [BaselineJIT] fix bug in parsing CALLTHISRANGE_IMM8_IMM8_V8
!240 [BaselineJIT] fix bug and add NewobjrangeImm8Imm8V8,NewobjrangeImm16Imm8V8
* [BaselineJIT] fix bug and add NewobjrangeImm8Imm8V8,NewobjrangeImm16Imm8V8
!241 [BaselineJIT] fix bug of ldnan, ldinfinity
* [BaselineJIT] fix bug of ldnan, ldinfinity
!242 [BaselineJIT] return JSCallDispatch result
* [BaselineJIT] return result of JSCallDispatch for baselinecode
!245 [BaselineJIT] fix builtins return value
* [BaselineJIT] fix builtins return value
!244 [BaselineJIT] save result to acc
* [BaselineJIT] save result to acc
!243 Bugfix for StlexvarImm4Imm4
* [baselineJit]Bugfix for StlexvarImm4Imm4
!246 [BaselineJIT] remove ldfunction
* [BaselineJIT] remove ldfunction
!248 [BaselineJIT] save result of DEFINECLASSWITHBUFFER_IMM8_ID16_ID16_IMM16_V8
* [BaselineJIT] fix return
!247 [baselineJit]Bugfix for Stlexvar and Ldlexvar
* [baselineJit]Bugfix for Stlexvar and Ldlexvar
!249 [BaselineJIT] Revert "!242[BaselineJIT] return JSCallDispatch result"
* Revert "!242 [BaselineJIT] return JSCallDispatch result"
!251 Bugfix for BaselineCreateobjectwithexcludedkeysImm8V8V8
* [baselineJit]Bugfix for BaselineCreateobjectwithexcludedkeysImm8V8V8
!252 [baselineJit]Bugfix for notException branch
* [baselineJit]Bugfix for notException branch
!250 [BaselineJIT] save result to acc in JSCallDispatch for baselinemethodcode
* [BaselineJIT] save result of JSCallDispatch to acc for baselinecode
!254 [BaselineJIT] fix type bug
* [BaselineJIT] fix type bug
!255 [BaselineJIT] fix bug of LDAI_IMM32
* [BaselineJIT] fix bug of LDAI_IMM32
!253 Bugfix for Poplexenv
* [baselineJit]Bugfix for Poplexenv
!256 [BaselineJIT] fix pc & refractor jscalldispatch for baseline-jit
* [BaselineJIT] fix pc of baseline-jit & refactor jscalldispatch for baseline-jit
!257 [BaselineJIT] replace indirectly jscalldispatch with jscalldispatchforbaseline
* [BaselineJIT] replace indirectly jscalldispatch with jscalldispatchforbaseline
!258 [BaselineJIT] fix using shl2 builtin bug
* [BaselineJIT] fix using shl2 builtin bug
!259 Bugfix and enable BaselineIstrue and BaselineIsFalse
* [baselineJit]Bugfix and enable BaselineIstrue and BaselineIsFalse
!260 [BaselineJIT] fix bug about passing FUNC parameter
* [BaselineJIT] fix bug about passing FUNC parameter
!261 [BaselineJIT] support passing parameters by stack and fix offset param bug
* [BaselineJIT] support passing parameters by stack and fix offset param bug
!263 [BaselineJIT] fix parameters bug of LdobjbyvalueImm16V8 & StobjbyvalueImm16V8V8
* [BaselineJIT] fix parameters bug of LdobjbyvalueImm16V8 & StobjbyvalueImm16V8V8
!262 Bugfix for jump offset
* [baselineJit]Bugfix for jump offset
!264 [BaselineJIT] fix intermediates v8 parameters bug
* [BaselineJIT] fix intermediates v8 parameters bug
Change-Id: I8bf4fdf7621770a1976925423de23693570365c9
!267 [BaselineJIT] fix bug of BaselineInstanceofImm8V8
* [BaselineJIT] fix bug of BaselineInstanceofImm8V8
!269 [BaselineJIT] support NEWOBJRANGE_IMM16_IMM8_V8 & fix calling DefineMethod runtimeStub
* [BaselineJIT] support NEWOBJRANGE_IMM16_IMM8_V8 & fix calling DefineMe…
!268 [BaselineJIT]support update hotness
* [BaselineJIT]enable update hotness part2
* [BaselineJIT]support update hotness
Change-Id: I24b02a9e015df7263b1e9d7210377add0bfc558c
CI bugfix
Change-Id: I2d5aef07a1f14b3c64585790cff99d64be0d6396
Signed-off-by: w00443755 <wangzhilei2@huawei.com>
2024-04-21 17:58:55 +08:00
luobinghao
9f1a4193fc
aotfilemanager to ecma_vm
...
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93VWQ
Signed-off-by: luobinghao <luobinghao@huawei.com>
Change-Id: Ief1039da35f816f41fe3015406c5cfa797baafbc
2024-02-28 15:22:26 +08:00
luobinghao
918df80092
llvm litecg相关目录整理
...
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I92XQ0
Signed-off-by: luobinghao <luobinghao@huawei.com>
Change-Id: I10587767b64128da8f1abc04a625027561956c9d
2024-02-22 15:46:20 +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
xiongluo
e0a80d811f
fix code check and format
...
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I222befc3ea02049f7f97f932a641753533dd8d52
2023-06-11 16:18:18 +08:00
liu-qiang12
09ee91dec2
add aotfilemanger from vm to context
...
Signed-off-by: liu-qiang12 <liuqiang254@huawei.com>
https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6UHGV
Change-Id: Idfabd557b8ad5cb79c538f15224d22a8ac800e0f
2023-06-11 16:17:47 +08:00
wupengyong
c0fa165ab0
Reason:add fast call and change calling conversion to cc
...
Description:add fast call and change calling conversion to cc
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6TTCX?from=project-issue
Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I7c35619d73a4d961799232bc22b78b6513f65e71
2023-05-18 19:23:25 +08: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
hzzhouzebin
0e4d77adaf
Extract the classes in aot file manager
...
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WV9V
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I2a07ed1f94707beabc149fd6abe15f4a85d848c6
2023-04-20 22:54:52 +08:00
zhangyukun8
ff796ce366
Implement __llvm_deoptimize to void relocate deopt hander
...
1.implement __llvm_deoptimize in Aot module, __llvm_deoptimize funciton is to call runtime function
2.add asm bridge frame to avoid unnecessary fpdelta calculation
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6NSFQ?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ibb559ae877633c63fd8cc7efee5770ba88597f9c
2023-03-18 14:48:24 +08:00
zhangyukun8
62a3e35295
AOT support js stacktrace
...
1. add pcOffset into stackmap before call In AOT
2. parse stackmap to find pcOffset before any OptimziedJSFunctionFrame
3. remove use code of stubs in AOT
4. add testcase for js stacktrace of AOT
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6GXRR?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib21646b7319628fb425ac8ce489dc2370a347b81
2023-03-03 10:08:54 +08:00
dingding
396b1382b9
Add IsJSEntryFrame()
...
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I5b21a07a2f0ba00bdd21497f1c8f1d50a1e9eb46
2023-01-16 16:06:42 +08:00
dingding
b74caf0dd9
Replace IsInterpretedFrame() by IsJSFrame() in GetBytecodeOffset() and GetPc()
...
Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I0b4640c632f7e322b5c1e0bdcb01b457aa2b29c8
2023-01-16 14:20:58 +08:00
zhangyukun8
21a4d386f5
adapt aot cpuprofile
...
1.update leaveframe before call no gc runtime
2.keep atomicity when construct frames
3.rewrite checking isInsideStub and isInsideAot
4.deal with entry frame for cpuprofile
5.add folder stackmap
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I61SM9?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I329f19a88bcf8e7f7d31606bfa51c822e32df9b8
2022-11-28 21:44:52 +08:00
wuzhangda
b78f4deb57
Merge branch 'master' of https://gitee.com/openharmony/arkcompiler_ets_runtime into king_br1
...
Change-Id: I14ffe2aa922b866bb6599fb81da57a093e5eb99f
Signed-off-by: wuzhangda <wuzhangda@huawei.com>
2022-10-14 20:02:34 +08:00
wuzhangda
63c3384e7b
Add testcases for convering comparison operator if-branch's combinations.
...
Signed-off-by: wuzhangda <wuzhangda@huawei.com>
Change-Id: I99f0462615598819ea96d03f90e383c0910e80c4
2022-10-14 16:12:46 +08:00
zhangyukun8
5731e8b2fc
Store this into frame for asm interpreter
...
1.Add thisObj in AsmInterpretedFrame
2.impl ldthis&stthis for asm interpreter
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5S5AO?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ifeacdc96f16cdadf446b8ad9b14db506675647d9
2022-09-21 10:17:00 +08:00
zhangyukun8
09e48ff1dc
move this to interpreted frame state
...
1.store thisObj in InterpretedFrame
2.impl ldthisxxx&stthisxxx instructions
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5RCSI?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ifcb3bd1de74f27b4940c37621629f85f8917a9e1
2022-09-16 10:56:07 +08:00
wengchangcheng
447847cb1d
Merge remote-tracking branch 'origin/master' into wcc_0808
...
Change-Id: I1566e28d02d931b390ac5d7c3cb11c3485aed5de
2022-08-30 19:19:34 +08:00
getingke
c9121f3bcb
fixed for benchmark runMandreel
...
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Id3d4555275239ee804f2360884e31f6080dc54c2
2022-08-27 16:04:10 +08:00
wengchangcheng
ab13a0da91
Descriptor: support first level instruction
...
Details:
1. Add old Opcode defines
2. Add new inst handler of throw & wide & deprecated
3. Modify interpreter for new inst
4. Modify typeinfer for new inst
5. Modify asm interpreter for new inst
6. Modify aot circuit builder for new inst
7. Translate old inst to first level inst
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If9e0b60cafc32a662a5fb1676887939d5a2b9ebf
2022-08-24 14:12:42 +08:00
g00416891
e7e344e150
Modify JSMethod to Method
...
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I2f18e1cd8c163a2839bbf2b3da4e40d385f5094a
2022-08-23 15:23:06 +08:00
g00416891
9f8cbcc303
Move ConstantPool from JSFunction to JSMethod
...
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I40dda1e44a831be6682f7fdacac21337af1bcd2d
2022-08-17 18:58:42 +08:00
songzhengchao
78f9a726af
Implement lightweight FrameIterator::Adance
...
AsmInpterpret frenqently call FrameIterator Adance, while don't need
visit stackmap, only get Frame.
thus we should provide lightweight FrameIterator Adance
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LOQT
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ibf52869fa0ed3016f9d592d73593483e3973a4f5
2022-08-11 16:50:15 +08:00
songzhengchao
d713542e3d
fix code review
...
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Ia2b6620447bba5c8532e41335d096a1678fcd54a
2022-08-07 15:20:12 +08:00
songzhengchao
0452a86a15
Merge remote-tracking branch 'szc/optstackmap'
...
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: Iee6d16f54813708919316405cffa43f1a5f2505a
2022-08-05 09:12:50 +08:00
songzhengchao
7b5b8f367b
Implement efficient ARK STACKMAP to replace llvm stackmap
...
1 find module fuctions in funcEntryDes by ModuleSectionDes
2.add ArkStackMapBuilder and ArkStackMapParser class in order to
framework is more clearer
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/pulls/1871
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I58d937dcc6de133969fa4e3d4c9e202ab852a48a
2022-08-02 19:30:14 +08:00
songzhengchao
8bc7b075aa
Implement efficient ARK STACKMAP to replace llvm stackmap
...
1 LLVM STACKMAP record callsite info(GC info & deopt info) which is relative to absolute address. When Loding Ark Vm, load LLVM STACKMAP and relocate callsite info and build Hash which key is callsite function and value is record callsite info. Processing these operattions is time-consuming and takes about 10ms on hardward platform.
2 stub.m contains LLVM STACKMAP Section, may be different on different compilation.
We design efficient ARK STACKMAP , which is PIC and size is more smaller and conform to HASH characteristics. On Compilation phase, we generate ARK STACKMAP to reduce time on device platform
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/pulls/1871
Signed-off-by: songzhengchao <songzhengchao@huawei.com>
Change-Id: I1e5c05a0465963e996894d15a4947d2f8f17dc28
2022-08-02 14:18:16 +08:00
yingguofeng@huawei.com
d37f9efec9
Description:UpdateDerivedObjectInStack Crash In Asan version
...
Resolution:Stack overflow when Stack address store in heap
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5JPG4?from=project-issue
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I93869e94b91354030c4b299d683dfa7e0d78d702
2022-08-02 10:04:34 +08:00
getingke
aa53513749
fixed for review comment by wuzhefeng
...
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: I12529447bab2ba255c11f63be3018b5c3a80de2e
2022-07-25 19:52:37 +08:00
getingke
bd01554b2c
fixed for aarch64 gc bug
...
Signed-off-by: getingke <getingke@huawei.com>
Change-Id: Iaf610561fc2ee1d49169e0ff48031d5b534c53d9
2022-07-25 19:52:37 +08:00
lijincheng
1365fe05de
Bugfix for Aot Error Found In Test262
...
1.Handle the situation which constant gate is at the end of current block
2.Handle import/export in Multiple files for TSAOT
3.Handle try-catch-finally
4.Handle conditionJump with only one successor
5.Handle try block without instructions which can throw exception
6.Handle LoopBack Verify Error
7.Add UT case for try-catch-finally
8.Handle getModule Error in Aot compile
9.Handle block endwith Constant gate
10.Bugfix for NewObj returnValue Error when need to throw Exception
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5F6JT
Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-07-22 14:52:21 +08:00
openharmony_ci
db7df3f5bb
!1673 cpuprofiler adaptation assembly and modify static member variables and static local variables
...
Merge pull request !1673 from 王犇/master
2022-07-14 01:01:13 +00:00
zhangyukun8
b789fafc2f
Add stackoverflow check of asm interpreter
...
1. check rsp stackoverflow
2. add calltype testcase
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DJR0?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib7f2f32588eaed74e6aff5b9c1ad37c39c81509e
2022-07-13 10:54:53 +08:00
wangben
f1249996cf
CpuProfiler adaptation assembly
...
Modify static member variables and static local variables
Signed-off-by: wangben <wangben15@huawei.com>
2022-07-12 16:26:32 +08:00