1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibJS/JIT: Store the running ExecutionContext& in a dedicated register

This commit is contained in:
Andreas Kling 2023-11-06 15:22:45 +01:00
parent 5479bb6ac9
commit e1e7e696ac
3 changed files with 8 additions and 2 deletions

View file

@ -43,11 +43,12 @@ void NativeExecutable::run(VM& vm, size_t entry_point) const
VERIFY(entry_point_address != 0);
}
typedef void (*JITCode)(VM&, Value* registers, Value* locals, FlatPtr entry_point_address);
typedef void (*JITCode)(VM&, Value* registers, Value* locals, FlatPtr entry_point_address, ExecutionContext&);
((JITCode)m_code)(vm,
vm.bytecode_interpreter().registers().data(),
vm.running_execution_context().local_variables.data(),
entry_point_address);
entry_point_address,
vm.running_execution_context());
}
#if ARCH(X86_64)