LibJS: Fix some GCVerifier warnings

This commit is contained in:
Matthew Olsson 2024-04-05 13:47:41 -07:00 committed by Andreas Kling
parent f3096bd4a1
commit 8b8ada292e
Notes: sideshowbarker 2024-07-16 23:57:20 +09:00
4 changed files with 15 additions and 15 deletions

View file

@ -474,11 +474,11 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable& executa
{
dbgln_if(JS_BYTECODE_DEBUG, "Bytecode::Interpreter will run unit {:p}", &executable);
TemporaryChange restore_executable { m_current_executable, &executable };
TemporaryChange restore_executable { m_current_executable, GCPtr { executable } };
TemporaryChange restore_saved_jump { m_scheduled_jump, static_cast<BasicBlock const*>(nullptr) };
TemporaryChange restore_realm { m_realm, vm().current_realm() };
TemporaryChange restore_global_object { m_global_object, &m_realm->global_object() };
TemporaryChange restore_global_declarative_environment { m_global_declarative_environment, &m_realm->global_environment().declarative_record() };
TemporaryChange restore_realm { m_realm, GCPtr { vm().current_realm() } };
TemporaryChange restore_global_object { m_global_object, GCPtr { m_realm->global_object() } };
TemporaryChange restore_global_declarative_environment { m_global_declarative_environment, GCPtr { m_realm->global_environment().declarative_record() } };
VERIFY(!vm().execution_context_stack().is_empty());