OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # |
| 4 |
| 5 --- |
| 6 wrap: yes |
| 7 |
| 8 --- |
| 9 snippet: " |
| 10 class A { constructor(...args) { this.args = args; } } |
| 11 new A(...[1, 2, 3]); |
| 12 " |
| 13 frame size: 8 |
| 14 parameter count: 1 |
| 15 bytecode array length: 64 |
| 16 bytecodes: [ |
| 17 B(LdaTheHole), |
| 18 B(Star), R(2), |
| 19 /* 30 E> */ B(StackCheck), |
| 20 B(LdaTheHole), |
| 21 B(Star), R(0), |
| 22 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 23 B(Star), R(3), |
| 24 B(LdaTheHole), |
| 25 B(Star), R(4), |
| 26 B(LdaSmi), U8(34), |
| 27 B(Star), R(6), |
| 28 B(LdaSmi), U8(88), |
| 29 B(Star), R(7), |
| 30 B(Mov), R(3), R(5), |
| 31 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 32 B(Star), R(4), |
| 33 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 34 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 35 B(Star), R(0), |
| 36 B(Star), R(1), |
| 37 B(Star), R(2), |
| 38 /* 89 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9), |
| 39 B(Star), R(4), |
| 40 B(Ldar), R(2), |
| 41 /* 89 E> */ B(NewWithSpread), R(2), R(4), U8(1), |
| 42 B(LdaUndefined), |
| 43 /* 110 S> */ B(Return), |
| 44 ] |
| 45 constant pool: [ |
| 46 SHARED_FUNCTION_INFO_TYPE, |
| 47 CONSTANT_ELEMENTS_PAIR_TYPE, |
| 48 ] |
| 49 handlers: [ |
| 50 ] |
| 51 |
| 52 --- |
| 53 snippet: " |
| 54 class A { constructor(...args) { this.args = args; } } |
| 55 new A(0, ...[1, 2, 3]); |
| 56 " |
| 57 frame size: 8 |
| 58 parameter count: 1 |
| 59 bytecode array length: 67 |
| 60 bytecodes: [ |
| 61 B(LdaTheHole), |
| 62 B(Star), R(2), |
| 63 /* 30 E> */ B(StackCheck), |
| 64 B(LdaTheHole), |
| 65 B(Star), R(0), |
| 66 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 67 B(Star), R(3), |
| 68 B(LdaTheHole), |
| 69 B(Star), R(4), |
| 70 B(LdaSmi), U8(34), |
| 71 B(Star), R(6), |
| 72 B(LdaSmi), U8(88), |
| 73 B(Star), R(7), |
| 74 B(Mov), R(3), R(5), |
| 75 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 76 B(Star), R(4), |
| 77 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 78 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 79 B(Star), R(0), |
| 80 B(Star), R(1), |
| 81 B(Star), R(2), |
| 82 /* 89 S> */ B(LdaZero), |
| 83 B(Star), R(4), |
| 84 B(CreateArrayLiteral), U8(1), U8(0), U8(9), |
| 85 B(Star), R(5), |
| 86 B(Ldar), R(2), |
| 87 /* 89 E> */ B(NewWithSpread), R(2), R(4), U8(2), |
| 88 B(LdaUndefined), |
| 89 /* 113 S> */ B(Return), |
| 90 ] |
| 91 constant pool: [ |
| 92 SHARED_FUNCTION_INFO_TYPE, |
| 93 CONSTANT_ELEMENTS_PAIR_TYPE, |
| 94 ] |
| 95 handlers: [ |
| 96 ] |
| 97 |
| 98 --- |
| 99 snippet: " |
| 100 class A { constructor(...args) { this.args = args; } } |
| 101 new A(0, ...[1, 2, 3], 4); |
| 102 " |
| 103 frame size: 9 |
| 104 parameter count: 1 |
| 105 bytecode array length: 98 |
| 106 bytecodes: [ |
| 107 B(LdaTheHole), |
| 108 B(Star), R(2), |
| 109 /* 30 E> */ B(StackCheck), |
| 110 B(LdaTheHole), |
| 111 B(Star), R(0), |
| 112 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 113 B(Star), R(3), |
| 114 B(LdaTheHole), |
| 115 B(Star), R(4), |
| 116 B(LdaSmi), U8(34), |
| 117 B(Star), R(6), |
| 118 B(LdaSmi), U8(88), |
| 119 B(Star), R(7), |
| 120 B(Mov), R(3), R(5), |
| 121 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 122 B(Star), R(4), |
| 123 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 124 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 125 B(Star), R(0), |
| 126 B(Star), R(1), |
| 127 B(Star), R(2), |
| 128 /* 89 S> */ B(LdaUndefined), |
| 129 B(Star), R(3), |
| 130 B(LdaUndefined), |
| 131 B(Star), R(5), |
| 132 /* 93 E> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), |
| 133 B(Star), R(6), |
| 134 B(LdaUndefined), |
| 135 B(Star), R(7), |
| 136 B(CreateArrayLiteral), U8(2), U8(0), U8(9), |
| 137 B(Star), R(8), |
| 138 B(CallJSRuntime), U8(%spread_iterable), R(7), U8(2), |
| 139 B(Star), R(7), |
| 140 B(CreateArrayLiteral), U8(3), U8(2), U8(9), |
| 141 B(Star), R(8), |
| 142 B(CallJSRuntime), U8(%spread_arguments), R(5), U8(4), |
| 143 B(Star), R(5), |
| 144 B(Mov), R(1), R(4), |
| 145 B(CallJSRuntime), U8(%reflect_construct), R(3), U8(3), |
| 146 B(LdaUndefined), |
| 147 /* 116 S> */ B(Return), |
| 148 ] |
| 149 constant pool: [ |
| 150 SHARED_FUNCTION_INFO_TYPE, |
| 151 CONSTANT_ELEMENTS_PAIR_TYPE, |
| 152 CONSTANT_ELEMENTS_PAIR_TYPE, |
| 153 CONSTANT_ELEMENTS_PAIR_TYPE, |
| 154 ] |
| 155 handlers: [ |
| 156 ] |
| 157 |
OLD | NEW |