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