| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: yes | 6 wrap: yes |
| 7 | 7 |
| 8 --- | 8 --- |
| 9 snippet: " | 9 snippet: " |
| 10 class Person { | 10 class Person { |
| 11 constructor(name) { this.name = name; } | 11 constructor(name) { this.name = name; } |
| 12 speak() { console.log(this.name + ' is speaking.'); } | 12 speak() { console.log(this.name + ' is speaking.'); } |
| 13 } | 13 } |
| 14 " | 14 " |
| 15 frame size: 9 | 15 frame size: 8 |
| 16 parameter count: 1 | 16 parameter count: 1 |
| 17 bytecode array length: 75 | 17 bytecode array length: 72 |
| 18 bytecodes: [ | 18 bytecodes: [ |
| 19 B(LdaTheHole), | 19 B(LdaTheHole), |
| 20 B(Star), R(2), | 20 B(Star), R(2), |
| 21 /* 30 E> */ B(StackCheck), | 21 /* 30 E> */ B(StackCheck), |
| 22 B(LdaTheHole), | 22 B(LdaTheHole), |
| 23 B(Star), R(0), | 23 B(Star), R(0), |
| 24 /* 34 S> */ B(LdaTheHole), | 24 /* 34 S> */ B(LdaTheHole), |
| 25 B(Star), R(3), | 25 B(Star), R(3), |
| 26 B(CreateClosure), U8(0), U8(2), | 26 B(CreateClosure), U8(0), U8(2), |
| 27 B(Star), R(4), | 27 B(Star), R(4), |
| 28 B(LdaSmi), U8(34), | 28 B(LdaSmi), U8(34), |
| 29 B(Star), R(5), | 29 B(Star), R(5), |
| 30 B(Wide), B(LdaSmi), U16(148), | 30 B(Wide), B(LdaSmi), U16(148), |
| 31 B(Star), R(6), | 31 B(Star), R(6), |
| 32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), | 32 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), |
| 33 B(Star), R(3), | 33 B(Star), R(3), |
| 34 B(LdaNamedProperty), R(3), U8(1), U8(2), | 34 B(LdaNamedProperty), R(3), U8(1), U8(2), |
| 35 B(Star), R(4), | 35 B(Star), R(4), |
| 36 B(LdaConstant), U8(2), | 36 B(LdaConstant), U8(2), |
| 37 B(ToName), R(6), | 37 B(ToName), R(6), |
| 38 B(CreateClosure), U8(3), U8(2), | 38 B(CreateClosure), U8(3), U8(2), |
| 39 B(Star), R(7), | 39 B(Star), R(7), |
| 40 B(LdaSmi), U8(2), | 40 B(LdaSmi), U8(2), |
| 41 B(Star), R(8), | 41 B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1), |
| 42 B(LdaZero), | |
| 43 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8), | |
| 44 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | 42 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 45 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 43 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 46 B(Star), R(0), | 44 B(Star), R(0), |
| 47 B(Star), R(1), | 45 B(Star), R(1), |
| 48 B(Star), R(2), | 46 B(Star), R(2), |
| 49 B(LdaUndefined), | 47 B(LdaUndefined), |
| 50 /* 149 S> */ B(Return), | 48 /* 149 S> */ B(Return), |
| 51 ] | 49 ] |
| 52 constant pool: [ | 50 constant pool: [ |
| 53 SHARED_FUNCTION_INFO_TYPE, | 51 SHARED_FUNCTION_INFO_TYPE, |
| 54 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], | 52 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
| 55 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], | 53 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
| 56 SHARED_FUNCTION_INFO_TYPE, | 54 SHARED_FUNCTION_INFO_TYPE, |
| 57 ] | 55 ] |
| 58 handlers: [ | 56 handlers: [ |
| 59 ] | 57 ] |
| 60 | 58 |
| 61 --- | 59 --- |
| 62 snippet: " | 60 snippet: " |
| 63 class person { | 61 class person { |
| 64 constructor(name) { this.name = name; } | 62 constructor(name) { this.name = name; } |
| 65 speak() { console.log(this.name + ' is speaking.'); } | 63 speak() { console.log(this.name + ' is speaking.'); } |
| 66 } | 64 } |
| 67 " | 65 " |
| 68 frame size: 9 | 66 frame size: 8 |
| 69 parameter count: 1 | 67 parameter count: 1 |
| 70 bytecode array length: 75 | 68 bytecode array length: 72 |
| 71 bytecodes: [ | 69 bytecodes: [ |
| 72 B(LdaTheHole), | 70 B(LdaTheHole), |
| 73 B(Star), R(2), | 71 B(Star), R(2), |
| 74 /* 30 E> */ B(StackCheck), | 72 /* 30 E> */ B(StackCheck), |
| 75 B(LdaTheHole), | 73 B(LdaTheHole), |
| 76 B(Star), R(0), | 74 B(Star), R(0), |
| 77 /* 34 S> */ B(LdaTheHole), | 75 /* 34 S> */ B(LdaTheHole), |
| 78 B(Star), R(3), | 76 B(Star), R(3), |
| 79 B(CreateClosure), U8(0), U8(2), | 77 B(CreateClosure), U8(0), U8(2), |
| 80 B(Star), R(4), | 78 B(Star), R(4), |
| 81 B(LdaSmi), U8(34), | 79 B(LdaSmi), U8(34), |
| 82 B(Star), R(5), | 80 B(Star), R(5), |
| 83 B(Wide), B(LdaSmi), U16(148), | 81 B(Wide), B(LdaSmi), U16(148), |
| 84 B(Star), R(6), | 82 B(Star), R(6), |
| 85 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), | 83 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), |
| 86 B(Star), R(3), | 84 B(Star), R(3), |
| 87 B(LdaNamedProperty), R(3), U8(1), U8(2), | 85 B(LdaNamedProperty), R(3), U8(1), U8(2), |
| 88 B(Star), R(4), | 86 B(Star), R(4), |
| 89 B(LdaConstant), U8(2), | 87 B(LdaConstant), U8(2), |
| 90 B(ToName), R(6), | 88 B(ToName), R(6), |
| 91 B(CreateClosure), U8(3), U8(2), | 89 B(CreateClosure), U8(3), U8(2), |
| 92 B(Star), R(7), | 90 B(Star), R(7), |
| 93 B(LdaSmi), U8(2), | 91 B(LdaSmi), U8(2), |
| 94 B(Star), R(8), | 92 B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1), |
| 95 B(LdaZero), | |
| 96 B(StaDataPropertyInLiteral), R(4), R(6), R(7), R(8), | |
| 97 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), | 93 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 98 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), | 94 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 99 B(Star), R(0), | 95 B(Star), R(0), |
| 100 B(Star), R(1), | 96 B(Star), R(1), |
| 101 B(Star), R(2), | 97 B(Star), R(2), |
| 102 B(LdaUndefined), | 98 B(LdaUndefined), |
| 103 /* 149 S> */ B(Return), | 99 /* 149 S> */ B(Return), |
| 104 ] | 100 ] |
| 105 constant pool: [ | 101 constant pool: [ |
| 106 SHARED_FUNCTION_INFO_TYPE, | 102 SHARED_FUNCTION_INFO_TYPE, |
| 107 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], | 103 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
| 108 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], | 104 ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"], |
| 109 SHARED_FUNCTION_INFO_TYPE, | 105 SHARED_FUNCTION_INFO_TYPE, |
| 110 ] | 106 ] |
| 111 handlers: [ | 107 handlers: [ |
| 112 ] | 108 ] |
| 113 | 109 |
| 114 --- | 110 --- |
| 115 snippet: " | 111 snippet: " |
| 116 var n0 = 'a'; | 112 var n0 = 'a'; |
| 117 var n1 = 'b'; | 113 var n1 = 'b'; |
| 118 class N { | 114 class N { |
| 119 [n0]() { return n0; } | 115 [n0]() { return n0; } |
| 120 static [n1]() { return n1; } | 116 static [n1]() { return n1; } |
| 121 } | 117 } |
| 122 " | 118 " |
| 123 frame size: 10 | 119 frame size: 10 |
| 124 parameter count: 1 | 120 parameter count: 1 |
| 125 bytecode array length: 119 | 121 bytecode array length: 115 |
| 126 bytecodes: [ | 122 bytecodes: [ |
| 127 B(CreateFunctionContext), U8(2), | 123 B(CreateFunctionContext), U8(2), |
| 128 B(PushContext), R(3), | 124 B(PushContext), R(3), |
| 129 B(LdaTheHole), | 125 B(LdaTheHole), |
| 130 B(Star), R(2), | 126 B(Star), R(2), |
| 131 /* 30 E> */ B(StackCheck), | 127 /* 30 E> */ B(StackCheck), |
| 132 /* 43 S> */ B(LdaConstant), U8(0), | 128 /* 43 S> */ B(LdaConstant), U8(0), |
| 133 /* 43 E> */ B(StaCurrentContextSlot), U8(4), | 129 /* 43 E> */ B(StaCurrentContextSlot), U8(4), |
| 134 /* 57 S> */ B(LdaConstant), U8(1), | 130 /* 57 S> */ B(LdaConstant), U8(1), |
| 135 /* 57 E> */ B(StaCurrentContextSlot), U8(5), | 131 /* 57 E> */ B(StaCurrentContextSlot), U8(5), |
| 136 B(LdaTheHole), | 132 B(LdaTheHole), |
| 137 B(Star), R(0), | 133 B(Star), R(0), |
| 138 /* 62 S> */ B(LdaTheHole), | 134 /* 62 S> */ B(LdaTheHole), |
| 139 B(Star), R(4), | 135 B(Star), R(4), |
| 140 B(CreateClosure), U8(2), U8(2), | 136 B(CreateClosure), U8(2), U8(2), |
| 141 B(Star), R(5), | 137 B(Star), R(5), |
| 142 B(LdaSmi), U8(62), | 138 B(LdaSmi), U8(62), |
| 143 B(Star), R(6), | 139 B(Star), R(6), |
| 144 B(Wide), B(LdaSmi), U16(128), | 140 B(Wide), B(LdaSmi), U16(128), |
| 145 B(Star), R(7), | 141 B(Star), R(7), |
| 146 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | 142 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 147 B(Star), R(4), | 143 B(Star), R(4), |
| 148 B(LdaNamedProperty), R(4), U8(3), U8(2), | 144 B(LdaNamedProperty), R(4), U8(3), U8(2), |
| 149 B(Star), R(5), | 145 B(Star), R(5), |
| 150 B(LdaCurrentContextSlot), U8(4), | 146 B(LdaCurrentContextSlot), U8(4), |
| 151 /* 75 E> */ B(ToName), R(7), | 147 /* 75 E> */ B(ToName), R(7), |
| 152 B(CreateClosure), U8(4), U8(2), | 148 B(CreateClosure), U8(4), U8(2), |
| 153 B(Star), R(8), | 149 B(Star), R(8), |
| 154 B(LdaSmi), U8(2), | 150 B(LdaSmi), U8(2), |
| 151 B(StaDataPropertyInLiteral), R(5), R(7), R(8), U8(3), |
| 155 B(Star), R(9), | 152 B(Star), R(9), |
| 156 B(LdaSmi), U8(1), | |
| 157 B(StaDataPropertyInLiteral), R(5), R(7), R(8), R(9), | |
| 158 B(LdaCurrentContextSlot), U8(5), | 153 B(LdaCurrentContextSlot), U8(5), |
| 159 /* 106 E> */ B(ToName), R(7), | 154 /* 106 E> */ B(ToName), R(7), |
| 160 B(LdaConstant), U8(3), | 155 B(LdaConstant), U8(3), |
| 161 B(TestEqualStrict), R(7), U8(0), | 156 B(TestEqualStrict), R(7), U8(0), |
| 162 B(Mov), R(4), R(6), | 157 B(Mov), R(4), R(6), |
| 163 B(JumpIfToBooleanFalse), U8(7), | 158 B(JumpIfToBooleanFalse), U8(7), |
| 164 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0),
U8(0), | 159 B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0),
U8(0), |
| 165 B(CreateClosure), U8(5), U8(2), | 160 B(CreateClosure), U8(5), U8(2), |
| 166 B(Star), R(8), | 161 B(Star), R(8), |
| 167 B(LdaSmi), U8(1), | 162 B(StaDataPropertyInLiteral), R(6), R(7), R(8), U8(3), |
| 168 B(StaDataPropertyInLiteral), R(6), R(7), R(8), R(9), | |
| 169 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck)
, R(4), U8(1), | 163 B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck)
, R(4), U8(1), |
| 170 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), | 164 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), |
| 171 B(Star), R(0), | 165 B(Star), R(0), |
| 172 B(Star), R(1), | 166 B(Star), R(1), |
| 173 B(Star), R(2), | 167 B(Star), R(2), |
| 174 B(LdaUndefined), | 168 B(LdaUndefined), |
| 175 /* 129 S> */ B(Return), | 169 /* 129 S> */ B(Return), |
| 176 ] | 170 ] |
| 177 constant pool: [ | 171 constant pool: [ |
| 178 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 172 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], | 224 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
| 231 ] | 225 ] |
| 232 handlers: [ | 226 handlers: [ |
| 233 ] | 227 ] |
| 234 | 228 |
| 235 --- | 229 --- |
| 236 snippet: " | 230 snippet: " |
| 237 (class {}) | 231 (class {}) |
| 238 class E { static name () {}} | 232 class E { static name () {}} |
| 239 " | 233 " |
| 240 frame size: 10 | 234 frame size: 9 |
| 241 parameter count: 1 | 235 parameter count: 1 |
| 242 bytecode array length: 104 | 236 bytecode array length: 101 |
| 243 bytecodes: [ | 237 bytecodes: [ |
| 244 B(LdaTheHole), | 238 B(LdaTheHole), |
| 245 B(Star), R(3), | 239 B(Star), R(3), |
| 246 /* 30 E> */ B(StackCheck), | 240 /* 30 E> */ B(StackCheck), |
| 247 /* 35 S> */ B(LdaTheHole), | 241 /* 35 S> */ B(LdaTheHole), |
| 248 B(Star), R(4), | 242 B(Star), R(4), |
| 249 B(CreateClosure), U8(0), U8(2), | 243 B(CreateClosure), U8(0), U8(2), |
| 250 B(Star), R(5), | 244 B(Star), R(5), |
| 251 B(LdaSmi), U8(35), | 245 B(LdaSmi), U8(35), |
| 252 B(Star), R(6), | 246 B(Star), R(6), |
| (...skipping 17 matching lines...) Expand all Loading... |
| 270 B(Star), R(7), | 264 B(Star), R(7), |
| 271 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), | 265 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 272 B(Star), R(4), | 266 B(Star), R(4), |
| 273 B(LdaNamedProperty), R(4), U8(1), U8(4), | 267 B(LdaNamedProperty), R(4), U8(1), U8(4), |
| 274 B(Star), R(5), | 268 B(Star), R(5), |
| 275 B(LdaConstant), U8(3), | 269 B(LdaConstant), U8(3), |
| 276 B(ToName), R(7), | 270 B(ToName), R(7), |
| 277 B(CreateClosure), U8(4), U8(2), | 271 B(CreateClosure), U8(4), U8(2), |
| 278 B(Star), R(8), | 272 B(Star), R(8), |
| 279 B(LdaSmi), U8(2), | 273 B(LdaSmi), U8(2), |
| 280 B(Star), R(9), | 274 B(StaDataPropertyInLiteral), R(4), R(7), R(8), U8(1), |
| 281 B(LdaZero), | |
| 282 B(StaDataPropertyInLiteral), R(4), R(7), R(8), R(9), | |
| 283 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), | 275 B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1), |
| 284 B(Star), R(0), | 276 B(Star), R(0), |
| 285 B(Star), R(2), | 277 B(Star), R(2), |
| 286 B(Star), R(3), | 278 B(Star), R(3), |
| 287 B(LdaUndefined), | 279 B(LdaUndefined), |
| 288 /* 74 S> */ B(Return), | 280 /* 74 S> */ B(Return), |
| 289 ] | 281 ] |
| 290 constant pool: [ | 282 constant pool: [ |
| 291 SHARED_FUNCTION_INFO_TYPE, | 283 SHARED_FUNCTION_INFO_TYPE, |
| 292 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], | 284 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
| 293 SHARED_FUNCTION_INFO_TYPE, | 285 SHARED_FUNCTION_INFO_TYPE, |
| 294 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 286 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
| 295 SHARED_FUNCTION_INFO_TYPE, | 287 SHARED_FUNCTION_INFO_TYPE, |
| 296 ] | 288 ] |
| 297 handlers: [ | 289 handlers: [ |
| 298 ] | 290 ] |
| 299 | 291 |
| OLD | NEW |