# # Autogenerated by generate-bytecode-expectations. # --- wrap: no test function name: test --- snippet: " var test; (function() { class A { constructor(...args) { this.baseArgs = args; } } class B extends A {} test = new B(1, 2, 3).constructor; })(); " frame size: 9 parameter count: 1 bytecode array length: 38 bytecodes: [ /* 93 E> */ B(CreateRestParameter), B(Star2), B(Mov), R(closure), R(1), /* 93 S> */ B(FindNonDefaultConstructorOrConstruct), R(1), R(0), R(7), B(Mov), R(2), R(5), B(Ldar), R(7), B(Mov), R(1), R(3), B(Mov), R(0), R(6), B(Mov), R(8), R(4), B(JumpIfTrue), U8(12), B(ThrowIfNotSuperConstructor), R(4), B(Ldar), R(6), /* 93 E> */ B(ConstructWithSpread), R(4), R(5), U8(1), U8(0), B(Star4), B(Ldar), R(4), /* 93 S> */ B(Return), ] constant pool: [ ] handlers: [ ] --- snippet: " var test; (function() { class A { constructor(...args) { this.baseArgs = args; } } class B extends A { constructor(...args) { super(1, ...args); } } test = new B(1, 2, 3).constructor; })(); " frame size: 11 parameter count: 1 bytecode array length: 50 bytecodes: [ /* 128 E> */ B(CreateRestParameter), B(Star3), B(Mov), R(closure), R(1), B(Mov), R(3), R(2), /* 140 S> */ B(LdaSmi), I8(1), B(Star6), /* 140 E> */ B(FindNonDefaultConstructorOrConstruct), R(closure), R(0), R(9), B(Mov), R(3), R(7), B(Ldar), R(9), B(Mov), R(1), R(4), B(Mov), R(0), R(8), B(Mov), R(10), R(5), B(JumpIfTrue), U8(12), B(ThrowIfNotSuperConstructor), R(5), B(Ldar), R(8), /* 140 E> */ B(ConstructWithSpread), R(5), R(6), U8(2), U8(0), B(Star5), B(Ldar), R(this), B(ThrowSuperAlreadyCalledIfNotHole), B(Mov), R(5), R(this), B(Ldar), R(this), /* 159 S> */ B(Return), ] constant pool: [ ] handlers: [ ] --- snippet: " var test; (function() { class A { constructor(...args) { this.baseArgs = args; } } class B extends A { constructor(...args) { super(1, ...args, 1); } } test = new B(1, 2, 3).constructor; })(); " frame size: 11 parameter count: 1 bytecode array length: 100 bytecodes: [ /* 128 E> */ B(CreateRestParameter), B(Star3), B(Mov), R(closure), R(1), B(Mov), R(3), R(2), /* 140 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37), B(Star6), B(LdaSmi), I8(1), B(Star7), /* 152 E> */ B(GetIterator), R(3), U8(1), U8(3), B(Star9), B(GetNamedProperty), R(9), U8(1), U8(5), B(Star8), B(Mov), R(1), R(4), B(CallProperty0), R(8), R(9), U8(14), B(Star10), B(JumpIfJSReceiver), U8(7), B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1), B(GetNamedProperty), R(10), U8(2), U8(16), B(JumpIfToBooleanTrue), U8(19), B(GetNamedProperty), R(10), U8(3), U8(7), B(StaInArrayLiteral), R(6), R(7), U8(12), B(Ldar), R(7), B(Inc), U8(11), B(Star7), B(JumpLoop), U8(31), I8(0), U8(18), B(LdaSmi), I8(1), B(StaInArrayLiteral), R(6), R(7), U8(12), /* 140 E> */ B(FindNonDefaultConstructorOrConstruct), R(4), R(0), R(8), B(Ldar), R(8), B(Mov), R(0), R(7), B(Mov), R(9), R(5), B(JumpIfTrue), U8(9), B(ThrowIfNotSuperConstructor), R(5), B(CallJSRuntime), U8(%reflect_construct), R(5), U8(3), B(Star5), B(Ldar), R(this), B(ThrowSuperAlreadyCalledIfNotHole), B(Mov), R(5), R(this), B(Ldar), R(this), /* 162 S> */ B(Return), ] constant pool: [ ARRAY_BOILERPLATE_DESCRIPTION_TYPE, ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], ] handlers: [ ]