mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibJS: Convert Instruction::execute in bytecode to ThrowCompletionOr
This allows us to use TRY in these functions :^).
This commit is contained in:
parent
de90d54be0
commit
8108fc7f9c
6 changed files with 238 additions and 294 deletions
|
@ -95,7 +95,7 @@ public:
|
|||
Type type() const { return m_type; }
|
||||
size_t length() const;
|
||||
String to_string(Bytecode::Executable const&) const;
|
||||
void execute(Bytecode::Interpreter&) const;
|
||||
ThrowCompletionOr<void> execute(Bytecode::Interpreter&) const;
|
||||
void replace_references(BasicBlock const&, BasicBlock const&);
|
||||
static void destroy(Instruction&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue