1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

LibJS/Bytecode: Implement initial support for super member expressions

This commit is contained in:
Luke Wilde 2023-05-15 18:45:16 +01:00 committed by Andreas Kling
parent 00493687f2
commit b15128c45b
5 changed files with 137 additions and 31 deletions

View file

@ -1130,6 +1130,19 @@ public:
void replace_references_impl(Register, Register) { }
};
class ResolveSuperBase final : public Instruction {
public:
explicit ResolveSuperBase()
: Instruction(Type::ResolveSuperBase)
{
}
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
void replace_references_impl(BasicBlock const&, BasicBlock const&) { }
void replace_references_impl(Register, Register) { }
};
class GetNewTarget final : public Instruction {
public:
explicit GetNewTarget()