mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +00:00
LibJS: NewClass bytecode instruction
This adds a the NewClass bytecode instruction, enough of it is implemented for it to show it in the bytecode (js -d).
This commit is contained in:
parent
3694b8b690
commit
f6028c2534
6 changed files with 37 additions and 1 deletions
|
@ -851,6 +851,7 @@ public:
|
|||
}
|
||||
|
||||
StringView name() const { return m_name; }
|
||||
RefPtr<FunctionExpression> constructor() const { return m_constructor; }
|
||||
|
||||
virtual Value execute(Interpreter&, GlobalObject&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
|
@ -872,6 +873,7 @@ public:
|
|||
|
||||
virtual Value execute(Interpreter&, GlobalObject&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
virtual void generate_bytecode(Bytecode::Generator&) const override;
|
||||
|
||||
private:
|
||||
NonnullRefPtr<ClassExpression> m_class_expression;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue