1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:37:44 +00:00

LibJS: Move bytecode interpreter's inner loop to its own function

This commit is contained in:
Andreas Kling 2023-09-26 16:41:42 +02:00
parent 951a85992b
commit 9fe38245b2
2 changed files with 23 additions and 15 deletions

View file

@ -92,6 +92,8 @@ public:
void visit_edges(Cell::Visitor&);
private:
void run_bytecode();
CallFrame& call_frame()
{
return m_call_frames.last().visit([](auto& x) -> CallFrame& { return *x; });