1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

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
Notes: sideshowbarker 2024-07-18 12:35:46 +09:00
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: \