mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
LibJS: Generate bytecode for array expressions
This commit is contained in:
committed by
Andreas Kling
parent
b8a5ea1f8d
commit
a1e5711a27
@@ -29,6 +29,8 @@ size_t Instruction::length() const
|
||||
{
|
||||
if (type() == Type::Call)
|
||||
return static_cast<Op::Call const&>(*this).length();
|
||||
else if (type() == Type::NewArray)
|
||||
return static_cast<Op::NewArray const&>(*this).length();
|
||||
|
||||
#define __BYTECODE_OP(op) \
|
||||
case Type::op: \
|
||||
|
||||
Reference in New Issue
Block a user