1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibJS/JIT: Compile the GetImportMeta instruction

This commit is contained in:
Simon Wanner 2023-10-29 23:53:30 +01:00 committed by Andreas Kling
parent c0c40110c1
commit cd18bc9d55
2 changed files with 13 additions and 1 deletions

View file

@ -1541,6 +1541,17 @@ void Compiler::compile_import_call(Bytecode::Op::ImportCall const& op)
check_exception();
}
static Value cxx_get_import_meta(VM& vm)
{
return vm.get_import_meta();
}
void Compiler::compile_get_import_meta(Bytecode::Op::GetImportMeta const&)
{
native_call((void*)cxx_get_import_meta);
store_vm_register(Bytecode::Register::accumulator(), RET);
}
void Compiler::jump_to_exit()
{
m_assembler.jump(m_exit_label);