mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:57:35 +00:00
LibJS/JIT: Store the running ExecutionContext& in a dedicated register
This commit is contained in:
parent
5479bb6ac9
commit
e1e7e696ac
3 changed files with 8 additions and 2 deletions
|
@ -2061,6 +2061,10 @@ OwnPtr<NativeExecutable> Compiler::compile(Bytecode::Executable& bytecode_execut
|
|||
Assembler::Operand::Register(LOCALS_ARRAY_BASE),
|
||||
Assembler::Operand::Register(ARG2));
|
||||
|
||||
compiler.m_assembler.mov(
|
||||
Assembler::Operand::Register(RUNNING_EXECUTION_CONTEXT_BASE),
|
||||
Assembler::Operand::Register(ARG4));
|
||||
|
||||
compiler.reload_cached_accumulator();
|
||||
|
||||
Assembler::Label normal_entry {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue