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:
parent
b8a5ea1f8d
commit
a1e5711a27
Notes:
sideshowbarker
2024-07-18 12:35:46 +09:00
Author: https://github.com/gunnarbeutner
Commit: a1e5711a27
Pull-request: https://github.com/SerenityOS/serenity/pull/7927
6 changed files with 71 additions and 0 deletions
|
@ -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: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue