1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibJS: Add a way to replace references to registers in Bytecode

This commit is contained in:
Hendiadyoin1 2022-10-22 20:19:16 +02:00 committed by Linus Groh
parent f5e7fa4d0e
commit fd6e75fd01
3 changed files with 115 additions and 0 deletions

View file

@ -109,6 +109,7 @@ public:
String to_string(Bytecode::Executable const&) const;
ThrowCompletionOr<void> execute(Bytecode::Interpreter&) const;
void replace_references(BasicBlock const&, BasicBlock const&);
void replace_references(Register, Register);
static void destroy(Instruction&);
protected: