LibJS: Generate bytecode for array expressions

This commit is contained in:
Gunnar Beutner
2021-06-08 23:06:52 +02:00
committed by Andreas Kling
parent b8a5ea1f8d
commit a1e5711a27
6 changed files with 71 additions and 0 deletions

View File

@@ -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: \