mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibJS: Support array rest elements in the bytecode interpreter
This commit is contained in:
parent
7983324639
commit
57b9a228ab
4 changed files with 172 additions and 77 deletions
|
@ -9,67 +9,68 @@
|
|||
#include <AK/Forward.h>
|
||||
#include <LibJS/Forward.h>
|
||||
|
||||
#define ENUMERATE_BYTECODE_OPS(O) \
|
||||
O(Load) \
|
||||
O(LoadImmediate) \
|
||||
O(Store) \
|
||||
O(Add) \
|
||||
O(Sub) \
|
||||
O(Mul) \
|
||||
O(Div) \
|
||||
O(Mod) \
|
||||
O(Exp) \
|
||||
O(GreaterThan) \
|
||||
O(GreaterThanEquals) \
|
||||
O(LessThan) \
|
||||
O(LessThanEquals) \
|
||||
O(AbstractInequals) \
|
||||
O(AbstractEquals) \
|
||||
O(TypedInequals) \
|
||||
O(TypedEquals) \
|
||||
O(NewBigInt) \
|
||||
O(NewArray) \
|
||||
O(NewString) \
|
||||
O(NewObject) \
|
||||
O(GetVariable) \
|
||||
O(SetVariable) \
|
||||
O(PutById) \
|
||||
O(GetById) \
|
||||
O(PutByValue) \
|
||||
O(GetByValue) \
|
||||
O(Jump) \
|
||||
O(JumpConditional) \
|
||||
O(JumpNullish) \
|
||||
O(JumpUndefined) \
|
||||
O(Call) \
|
||||
O(NewFunction) \
|
||||
O(Return) \
|
||||
O(BitwiseAnd) \
|
||||
O(BitwiseOr) \
|
||||
O(BitwiseXor) \
|
||||
O(BitwiseNot) \
|
||||
O(Not) \
|
||||
O(UnaryPlus) \
|
||||
O(UnaryMinus) \
|
||||
O(Typeof) \
|
||||
O(LeftShift) \
|
||||
O(RightShift) \
|
||||
O(UnsignedRightShift) \
|
||||
O(In) \
|
||||
O(InstanceOf) \
|
||||
O(ConcatString) \
|
||||
O(Increment) \
|
||||
O(Decrement) \
|
||||
O(Throw) \
|
||||
O(PushLexicalEnvironment) \
|
||||
O(LoadArgument) \
|
||||
O(EnterUnwindContext) \
|
||||
O(LeaveUnwindContext) \
|
||||
O(ContinuePendingUnwind) \
|
||||
O(Yield) \
|
||||
O(GetIterator) \
|
||||
O(IteratorNext) \
|
||||
O(IteratorResultDone) \
|
||||
#define ENUMERATE_BYTECODE_OPS(O) \
|
||||
O(Load) \
|
||||
O(LoadImmediate) \
|
||||
O(Store) \
|
||||
O(Add) \
|
||||
O(Sub) \
|
||||
O(Mul) \
|
||||
O(Div) \
|
||||
O(Mod) \
|
||||
O(Exp) \
|
||||
O(GreaterThan) \
|
||||
O(GreaterThanEquals) \
|
||||
O(LessThan) \
|
||||
O(LessThanEquals) \
|
||||
O(AbstractInequals) \
|
||||
O(AbstractEquals) \
|
||||
O(TypedInequals) \
|
||||
O(TypedEquals) \
|
||||
O(NewBigInt) \
|
||||
O(NewArray) \
|
||||
O(IteratorToArray) \
|
||||
O(NewString) \
|
||||
O(NewObject) \
|
||||
O(GetVariable) \
|
||||
O(SetVariable) \
|
||||
O(PutById) \
|
||||
O(GetById) \
|
||||
O(PutByValue) \
|
||||
O(GetByValue) \
|
||||
O(Jump) \
|
||||
O(JumpConditional) \
|
||||
O(JumpNullish) \
|
||||
O(JumpUndefined) \
|
||||
O(Call) \
|
||||
O(NewFunction) \
|
||||
O(Return) \
|
||||
O(BitwiseAnd) \
|
||||
O(BitwiseOr) \
|
||||
O(BitwiseXor) \
|
||||
O(BitwiseNot) \
|
||||
O(Not) \
|
||||
O(UnaryPlus) \
|
||||
O(UnaryMinus) \
|
||||
O(Typeof) \
|
||||
O(LeftShift) \
|
||||
O(RightShift) \
|
||||
O(UnsignedRightShift) \
|
||||
O(In) \
|
||||
O(InstanceOf) \
|
||||
O(ConcatString) \
|
||||
O(Increment) \
|
||||
O(Decrement) \
|
||||
O(Throw) \
|
||||
O(PushLexicalEnvironment) \
|
||||
O(LoadArgument) \
|
||||
O(EnterUnwindContext) \
|
||||
O(LeaveUnwindContext) \
|
||||
O(ContinuePendingUnwind) \
|
||||
O(Yield) \
|
||||
O(GetIterator) \
|
||||
O(IteratorNext) \
|
||||
O(IteratorResultDone) \
|
||||
O(IteratorResultValue)
|
||||
|
||||
namespace JS::Bytecode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue