1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 10:34:58 +00:00
serenity/Userland/Libraries/LibJS/Bytecode
Andreas Kling 4bdfe73895 LibJS: Add basic support for "continue" in the bytecode VM
Unlike the convoluted unwind-until-scope-type mechanism in the AST
interpreter, "continue" maps to a simple Bytecode::Op::Jump here. :^)

We know where to jump based on a stack of "continuable scopes" that
we now maintain on the Bytecode::Generator as we go.

Note that this only supports bare "continue", not continue-with-label.
2021-06-07 18:11:59 +02:00
..
ASTCodegen.cpp LibJS: Add basic support for "continue" in the bytecode VM 2021-06-07 18:11:59 +02:00
Block.cpp LibJS: Start fleshing out a bytecode for the JavaScript engine :^) 2021-06-07 18:11:59 +02:00
Block.h LibJS: Start fleshing out a bytecode for the JavaScript engine :^) 2021-06-07 18:11:59 +02:00
Generator.cpp LibJS: Add basic support for "continue" in the bytecode VM 2021-06-07 18:11:59 +02:00
Generator.h LibJS: Add basic support for "continue" in the bytecode VM 2021-06-07 18:11:59 +02:00
Instruction.cpp LibJS: Start fleshing out a bytecode for the JavaScript engine :^) 2021-06-07 18:11:59 +02:00
Instruction.h LibJS: Start fleshing out a bytecode for the JavaScript engine :^) 2021-06-07 18:11:59 +02:00
Interpreter.cpp LibJS: Compile ScriptFunctions into bytecode and run them that way :^) 2021-06-07 18:11:59 +02:00
Interpreter.h LibJS: Compile ScriptFunctions into bytecode and run them that way :^) 2021-06-07 18:11:59 +02:00
Label.h LibJS: Add basic support for while loops in the bytecode engine 2021-06-07 18:11:59 +02:00
Op.cpp LibJS: Add basic "if" statement support to the bytecode VM :^) 2021-06-07 18:11:59 +02:00
Op.h LibJS: Add basic "if" statement support to the bytecode VM :^) 2021-06-07 18:11:59 +02:00
Register.h LibJS: Print bytecode registers with format "$num" instead of "rnum" 2021-06-07 18:11:59 +02:00