Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 1 | # |
| 2 | # Autogenerated by generate-bytecode-expectations. |
| 3 | # |
| 4 | |
| 5 | --- |
| 6 | pool type: mixed |
| 7 | execute: yes |
| 8 | wrap: yes |
| 9 | |
| 10 | --- |
| 11 | snippet: " |
| 12 | for (var p of [0, 1, 2]) {} |
| 13 | " |
| 14 | frame size: 16 |
| 15 | parameter count: 1 |
| 16 | bytecode array length: 347 |
| 17 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame^] | 18 | /* 30 E> */ B(StackCheck), |
| 19 | B(LdaUndefined), |
| 20 | B(Star), R(4), |
| 21 | B(LdaZero), |
| 22 | B(Star), R(3), |
| 23 | B(Mov), R(context), R(11), |
| 24 | B(Mov), R(context), R(12), |
| 25 | /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
| 26 | B(Star), R(14), |
| 27 | /* 48 E> */ B(LdaConstant), U8(1), |
| 28 | B(KeyedLoadIC), R(14), U8(3), |
| 29 | B(Star), R(13), |
| 30 | /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
| 31 | /* 48 E> */ B(Star), R(1), |
| 32 | /* 45 S> */ B(Ldar), R(1), |
| 33 | B(Star), R(15), |
| 34 | B(LoadIC), R(15), U8(2), U8(7), |
| 35 | B(Star), R(14), |
| 36 | /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
| 37 | /* 45 E> */ B(Star), R(2), |
| 38 | B(Star), R(13), |
| 39 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
| 40 | B(ToBooleanLogicalNot), |
| 41 | B(JumpIfFalse), U8(11), |
| 42 | B(Ldar), R(2), |
| 43 | B(Star), R(13), |
| 44 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
| 45 | B(Ldar), R(2), |
| 46 | B(Star), R(13), |
| 47 | B(LoadIC), R(13), U8(3), U8(9), |
| 48 | B(JumpIfToBooleanTrue), U8(28), |
| 49 | B(LdaSmi), U8(2), |
| 50 | B(Star), R(3), |
| 51 | B(Ldar), R(2), |
| 52 | B(Star), R(13), |
| 53 | B(LoadIC), R(13), U8(4), U8(11), |
| 54 | B(Star), R(0), |
| 55 | B(Ldar), R(4), |
| 56 | /* 34 E> */ B(StackCheck), |
| 57 | B(Ldar), R(0), |
| 58 | B(Star), R(7), |
| 59 | B(LdaZero), |
| 60 | B(Star), R(3), |
| 61 | B(Jump), U8(-70), |
| 62 | B(Jump), U8(47), |
| 63 | B(Star), R(14), |
| 64 | B(LdaConstant), U8(5), |
| 65 | B(Star), R(13), |
| 66 | B(Ldar), R(closure), |
| 67 | B(Star), R(15), |
| 68 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
| 69 | B(Star), R(12), |
| 70 | B(PushContext), R(8), |
| 71 | B(Ldar), R(3), |
| 72 | B(Star), R(13), |
| 73 | B(LdaSmi), U8(2), |
| 74 | B(TestEqualStrict), R(13), |
| 75 | B(JumpIfFalse), U8(6), |
| 76 | B(LdaSmi), U8(1), |
| 77 | B(Star), R(3), |
| 78 | B(LdaContextSlot), R(context), U8(4), |
| 79 | B(Star), R(13), |
| 80 | B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
| 81 | B(PopContext), R(8), |
| 82 | B(LdaSmi), U8(-1), |
| 83 | B(Star), R(9), |
| 84 | B(Jump), U8(7), |
| 85 | B(Star), R(10), |
| 86 | B(LdaZero), |
| 87 | B(Star), R(9), |
| 88 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 89 | B(Star), R(11), |
| 90 | B(Ldar), R(3), |
| 91 | B(Star), R(12), |
| 92 | B(LdaZero), |
| 93 | B(TestEqualStrict), R(12), |
| 94 | B(JumpIfTrue), U8(9), |
| 95 | B(Ldar), R(1), |
| 96 | B(Star), R(12), |
| 97 | B(LdaUndefined), |
| 98 | B(TestEqualStrict), R(12), |
| 99 | B(ToBooleanLogicalNot), |
| 100 | B(JumpIfFalseConstant), U8(9), |
| 101 | B(Ldar), R(1), |
| 102 | B(Star), R(12), |
| 103 | B(LoadIC), R(12), U8(6), U8(13), |
| 104 | B(Star), R(5), |
| 105 | B(Star), R(12), |
| 106 | B(LdaNull), |
| 107 | B(TestEqual), R(12), |
| 108 | B(JumpIfFalse), U8(4), |
| 109 | B(Jump), U8(124), |
| 110 | B(Ldar), R(3), |
| 111 | B(Star), R(12), |
| 112 | B(LdaSmi), U8(1), |
| 113 | B(TestEqualStrict), R(12), |
| 114 | B(JumpIfFalse), U8(79), |
| 115 | B(Ldar), R(5), |
| 116 | B(TypeOf), |
| 117 | B(Star), R(12), |
| 118 | B(LdaConstant), U8(7), |
| 119 | B(TestEqualStrict), R(12), |
| 120 | B(JumpIfFalse), U8(4), |
| 121 | B(Jump), U8(18), |
| 122 | B(Wide), B(LdaSmi), U16(129), |
| 123 | B(Star), R(12), |
| 124 | B(LdaConstant), U8(8), |
| 125 | B(Star), R(13), |
| 126 | B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
| 127 | B(Throw), |
| 128 | B(Mov), R(context), R(12), |
| 129 | B(Ldar), R(5), |
| 130 | B(Star), R(13), |
| 131 | B(Ldar), R(1), |
| 132 | B(Star), R(14), |
| 133 | B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
| 134 | B(Jump), U8(30), |
| 135 | B(Star), R(14), |
| 136 | B(LdaConstant), U8(5), |
| 137 | B(Star), R(13), |
| 138 | B(Ldar), R(closure), |
| 139 | B(Star), R(15), |
| 140 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
| 141 | B(Star), R(12), |
| 142 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 143 | B(Ldar), R(12), |
| 144 | B(PushContext), R(8), |
| 145 | B(PopContext), R(8), |
| 146 | B(Jump), U8(37), |
| 147 | B(Ldar), R(5), |
| 148 | B(Star), R(12), |
| 149 | B(Ldar), R(1), |
| 150 | B(Star), R(13), |
| 151 | B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
| 152 | B(Star), R(6), |
| 153 | B(Star), R(12), |
| 154 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 155 | B(JumpIfToBooleanFalse), U8(4), |
| 156 | B(Jump), U8(11), |
| 157 | B(Ldar), R(6), |
| 158 | B(Star), R(12), |
| 159 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
| 160 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1), |
| 161 | B(LdaZero), |
| 162 | B(TestEqualStrict), R(9), |
| 163 | B(JumpIfTrue), U8(4), |
| 164 | B(Jump), U8(5), |
| 165 | B(Ldar), R(10), |
| 166 | B(ReThrow), |
| 167 | B(LdaUndefined), |
| 168 | /* 62 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 169 | ] |
| 170 | constant pool: [ |
| 171 | InstanceType::FIXED_ARRAY_TYPE, |
| 172 | InstanceType::SYMBOL_TYPE, |
| 173 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 174 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 175 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 176 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 177 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 178 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 179 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 180 | kInstanceTypeDontCare, |
| 181 | ] |
| 182 | handlers: [ |
| 183 | [10, 152, 158], |
| 184 | [13, 105, 107], |
| 185 | [250, 263, 265], |
| 186 | ] |
| 187 | |
| 188 | --- |
| 189 | snippet: " |
| 190 | var x = 'potatoes'; |
| 191 | for (var p of x) { return p; } |
| 192 | " |
| 193 | frame size: 17 |
| 194 | parameter count: 1 |
| 195 | bytecode array length: 363 |
| 196 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame^] | 197 | /* 30 E> */ B(StackCheck), |
| 198 | /* 42 S> */ B(LdaConstant), U8(0), |
| 199 | /* 42 E> */ B(Star), R(7), |
| 200 | B(LdaUndefined), |
| 201 | B(Star), R(4), |
| 202 | B(LdaZero), |
| 203 | B(Star), R(3), |
| 204 | B(Mov), R(context), R(12), |
| 205 | B(Mov), R(context), R(13), |
| 206 | /* 68 S> */ B(Ldar), R(7), |
| 207 | B(Star), R(15), |
| 208 | /* 68 E> */ B(LdaConstant), U8(1), |
| 209 | B(KeyedLoadIC), R(15), U8(3), |
| 210 | B(Star), R(14), |
| 211 | /* 68 E> */ B(Call), R(14), R(15), U8(1), U8(1), |
| 212 | /* 68 E> */ B(Star), R(1), |
| 213 | /* 65 S> */ B(Ldar), R(1), |
| 214 | B(Star), R(16), |
| 215 | B(LoadIC), R(16), U8(2), U8(7), |
| 216 | B(Star), R(15), |
| 217 | /* 65 E> */ B(Call), R(15), R(16), U8(1), U8(5), |
| 218 | /* 65 E> */ B(Star), R(2), |
| 219 | B(Star), R(14), |
| 220 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(14), U8(1), |
| 221 | B(ToBooleanLogicalNot), |
| 222 | B(JumpIfFalse), U8(11), |
| 223 | B(Ldar), R(2), |
| 224 | B(Star), R(14), |
| 225 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1), |
| 226 | B(Ldar), R(2), |
| 227 | B(Star), R(14), |
| 228 | B(LoadIC), R(14), U8(3), U8(9), |
| 229 | B(JumpIfToBooleanTrue), U8(32), |
| 230 | B(LdaSmi), U8(2), |
| 231 | B(Star), R(3), |
| 232 | B(Ldar), R(2), |
| 233 | B(Star), R(14), |
| 234 | B(LoadIC), R(14), U8(4), U8(11), |
| 235 | B(Star), R(0), |
| 236 | B(Ldar), R(4), |
| 237 | /* 54 E> */ B(StackCheck), |
| 238 | B(Ldar), R(0), |
| 239 | B(Star), R(8), |
| 240 | /* 73 S> */ B(Star), R(11), |
| 241 | B(LdaZero), |
| 242 | B(Star), R(10), |
| 243 | B(Jump), U8(63), |
| 244 | B(Jump), U8(-74), |
| 245 | B(Jump), U8(47), |
| 246 | B(Star), R(15), |
| 247 | B(LdaConstant), U8(5), |
| 248 | B(Star), R(14), |
| 249 | B(Ldar), R(closure), |
| 250 | B(Star), R(16), |
| 251 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3), |
| 252 | B(Star), R(13), |
| 253 | B(PushContext), R(9), |
| 254 | B(Ldar), R(3), |
| 255 | B(Star), R(14), |
| 256 | B(LdaSmi), U8(2), |
| 257 | B(TestEqualStrict), R(14), |
| 258 | B(JumpIfFalse), U8(6), |
| 259 | B(LdaSmi), U8(1), |
| 260 | B(Star), R(3), |
| 261 | B(LdaContextSlot), R(context), U8(4), |
| 262 | B(Star), R(14), |
| 263 | B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1), |
| 264 | B(PopContext), R(9), |
| 265 | B(LdaSmi), U8(-1), |
| 266 | B(Star), R(10), |
| 267 | B(Jump), U8(8), |
| 268 | B(Star), R(11), |
| 269 | B(LdaSmi), U8(1), |
| 270 | B(Star), R(10), |
| 271 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 272 | B(Star), R(12), |
| 273 | B(Ldar), R(3), |
| 274 | B(Star), R(13), |
| 275 | B(LdaZero), |
| 276 | B(TestEqualStrict), R(13), |
| 277 | B(JumpIfTrue), U8(9), |
| 278 | B(Ldar), R(1), |
| 279 | B(Star), R(13), |
| 280 | B(LdaUndefined), |
| 281 | B(TestEqualStrict), R(13), |
| 282 | B(ToBooleanLogicalNot), |
| 283 | B(JumpIfFalseConstant), U8(9), |
| 284 | B(Ldar), R(1), |
| 285 | B(Star), R(13), |
| 286 | B(LoadIC), R(13), U8(6), U8(13), |
| 287 | B(Star), R(5), |
| 288 | B(Star), R(13), |
| 289 | B(LdaNull), |
| 290 | B(TestEqual), R(13), |
| 291 | B(JumpIfFalse), U8(4), |
| 292 | B(Jump), U8(124), |
| 293 | B(Ldar), R(3), |
| 294 | B(Star), R(13), |
| 295 | B(LdaSmi), U8(1), |
| 296 | B(TestEqualStrict), R(13), |
| 297 | B(JumpIfFalse), U8(79), |
| 298 | B(Ldar), R(5), |
| 299 | B(TypeOf), |
| 300 | B(Star), R(13), |
| 301 | B(LdaConstant), U8(7), |
| 302 | B(TestEqualStrict), R(13), |
| 303 | B(JumpIfFalse), U8(4), |
| 304 | B(Jump), U8(18), |
| 305 | B(Wide), B(LdaSmi), U16(129), |
| 306 | B(Star), R(13), |
| 307 | B(LdaConstant), U8(8), |
| 308 | B(Star), R(14), |
| 309 | B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2), |
| 310 | B(Throw), |
| 311 | B(Mov), R(context), R(13), |
| 312 | B(Ldar), R(5), |
| 313 | B(Star), R(14), |
| 314 | B(Ldar), R(1), |
| 315 | B(Star), R(15), |
| 316 | B(CallRuntime), U16(Runtime::k_Call), R(14), U8(2), |
| 317 | B(Jump), U8(30), |
| 318 | B(Star), R(15), |
| 319 | B(LdaConstant), U8(5), |
| 320 | B(Star), R(14), |
| 321 | B(Ldar), R(closure), |
| 322 | B(Star), R(16), |
| 323 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3), |
| 324 | B(Star), R(13), |
| 325 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 326 | B(Ldar), R(13), |
| 327 | B(PushContext), R(9), |
| 328 | B(PopContext), R(9), |
| 329 | B(Jump), U8(37), |
| 330 | B(Ldar), R(5), |
| 331 | B(Star), R(13), |
| 332 | B(Ldar), R(1), |
| 333 | B(Star), R(14), |
| 334 | B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
| 335 | B(Star), R(6), |
| 336 | B(Star), R(13), |
| 337 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
| 338 | B(JumpIfToBooleanFalse), U8(4), |
| 339 | B(Jump), U8(11), |
| 340 | B(Ldar), R(6), |
| 341 | B(Star), R(13), |
| 342 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
| 343 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(12), U8(1), |
| 344 | B(LdaZero), |
| 345 | B(TestEqualStrict), R(10), |
| 346 | B(JumpIfTrue), U8(10), |
| 347 | B(LdaSmi), U8(1), |
| 348 | B(TestEqualStrict), R(10), |
| 349 | B(JumpIfTrue), U8(7), |
| 350 | B(Jump), U8(8), |
| 351 | B(Ldar), R(11), |
| 352 | /* 85 S> */ B(Return), |
| 353 | B(Ldar), R(11), |
| 354 | B(ReThrow), |
| 355 | B(LdaUndefined), |
| 356 | /* 85 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 357 | ] |
| 358 | constant pool: [ |
| 359 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 360 | InstanceType::SYMBOL_TYPE, |
| 361 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 362 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 363 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 364 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 365 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 366 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 367 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 368 | kInstanceTypeDontCare, |
| 369 | ] |
| 370 | handlers: [ |
| 371 | [14, 158, 164], |
| 372 | [17, 111, 113], |
| 373 | [257, 270, 272], |
| 374 | ] |
| 375 | |
| 376 | --- |
| 377 | snippet: " |
| 378 | for (var x of [10, 20, 30]) { |
| 379 | if (x == 10) continue; |
| 380 | if (x == 20) break; |
| 381 | } |
| 382 | " |
| 383 | frame size: 16 |
| 384 | parameter count: 1 |
| 385 | bytecode array length: 369 |
| 386 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame^] | 387 | /* 30 E> */ B(StackCheck), |
| 388 | B(LdaUndefined), |
| 389 | B(Star), R(4), |
| 390 | B(LdaZero), |
| 391 | B(Star), R(3), |
| 392 | B(Mov), R(context), R(11), |
| 393 | B(Mov), R(context), R(12), |
| 394 | /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
| 395 | B(Star), R(14), |
| 396 | /* 48 E> */ B(LdaConstant), U8(1), |
| 397 | B(KeyedLoadIC), R(14), U8(3), |
| 398 | B(Star), R(13), |
| 399 | /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), |
| 400 | /* 48 E> */ B(Star), R(1), |
| 401 | /* 45 S> */ B(Ldar), R(1), |
| 402 | B(Star), R(15), |
| 403 | B(LoadIC), R(15), U8(2), U8(7), |
| 404 | B(Star), R(14), |
| 405 | /* 45 E> */ B(Call), R(14), R(15), U8(1), U8(5), |
| 406 | /* 45 E> */ B(Star), R(2), |
| 407 | B(Star), R(13), |
| 408 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(13), U8(1), |
| 409 | B(ToBooleanLogicalNot), |
| 410 | B(JumpIfFalse), U8(11), |
| 411 | B(Ldar), R(2), |
| 412 | B(Star), R(13), |
| 413 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(13), U8(1), |
| 414 | B(Ldar), R(2), |
| 415 | B(Star), R(13), |
| 416 | B(LoadIC), R(13), U8(3), U8(9), |
| 417 | B(JumpIfToBooleanTrue), U8(50), |
| 418 | B(LdaSmi), U8(2), |
| 419 | B(Star), R(3), |
| 420 | B(Ldar), R(2), |
| 421 | B(Star), R(13), |
| 422 | B(LoadIC), R(13), U8(4), U8(11), |
| 423 | B(Star), R(0), |
| 424 | B(Ldar), R(4), |
| 425 | /* 34 E> */ B(StackCheck), |
| 426 | B(Ldar), R(0), |
| 427 | B(Star), R(7), |
| 428 | /* 66 S> */ B(Star), R(13), |
| 429 | B(LdaSmi), U8(10), |
| 430 | /* 72 E> */ B(TestEqual), R(13), |
| 431 | B(JumpIfFalse), U8(4), |
| 432 | /* 79 S> */ B(Jump), U8(17), |
| 433 | /* 91 S> */ B(Ldar), R(7), |
| 434 | B(Star), R(13), |
| 435 | B(LdaSmi), U8(20), |
| 436 | /* 97 E> */ B(TestEqual), R(13), |
| 437 | B(JumpIfFalse), U8(4), |
| 438 | /* 104 S> */ B(Jump), U8(7), |
| 439 | B(LdaZero), |
| 440 | B(Star), R(3), |
| 441 | B(Jump), U8(-92), |
| 442 | B(Jump), U8(47), |
| 443 | B(Star), R(14), |
| 444 | B(LdaConstant), U8(5), |
| 445 | B(Star), R(13), |
| 446 | B(Ldar), R(closure), |
| 447 | B(Star), R(15), |
| 448 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
| 449 | B(Star), R(12), |
| 450 | B(PushContext), R(8), |
| 451 | B(Ldar), R(3), |
| 452 | B(Star), R(13), |
| 453 | B(LdaSmi), U8(2), |
| 454 | B(TestEqualStrict), R(13), |
| 455 | B(JumpIfFalse), U8(6), |
| 456 | B(LdaSmi), U8(1), |
| 457 | B(Star), R(3), |
| 458 | B(LdaContextSlot), R(context), U8(4), |
| 459 | B(Star), R(13), |
| 460 | B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
| 461 | B(PopContext), R(8), |
| 462 | B(LdaSmi), U8(-1), |
| 463 | B(Star), R(9), |
| 464 | B(Jump), U8(7), |
| 465 | B(Star), R(10), |
| 466 | B(LdaZero), |
| 467 | B(Star), R(9), |
| 468 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 469 | B(Star), R(11), |
| 470 | B(Ldar), R(3), |
| 471 | B(Star), R(12), |
| 472 | B(LdaZero), |
| 473 | B(TestEqualStrict), R(12), |
| 474 | B(JumpIfTrue), U8(9), |
| 475 | B(Ldar), R(1), |
| 476 | B(Star), R(12), |
| 477 | B(LdaUndefined), |
| 478 | B(TestEqualStrict), R(12), |
| 479 | B(ToBooleanLogicalNot), |
| 480 | B(JumpIfFalseConstant), U8(9), |
| 481 | B(Ldar), R(1), |
| 482 | B(Star), R(12), |
| 483 | B(LoadIC), R(12), U8(6), U8(13), |
| 484 | B(Star), R(5), |
| 485 | B(Star), R(12), |
| 486 | B(LdaNull), |
| 487 | B(TestEqual), R(12), |
| 488 | B(JumpIfFalse), U8(4), |
| 489 | B(Jump), U8(124), |
| 490 | B(Ldar), R(3), |
| 491 | B(Star), R(12), |
| 492 | B(LdaSmi), U8(1), |
| 493 | B(TestEqualStrict), R(12), |
| 494 | B(JumpIfFalse), U8(79), |
| 495 | B(Ldar), R(5), |
| 496 | B(TypeOf), |
| 497 | B(Star), R(12), |
| 498 | B(LdaConstant), U8(7), |
| 499 | B(TestEqualStrict), R(12), |
| 500 | B(JumpIfFalse), U8(4), |
| 501 | B(Jump), U8(18), |
| 502 | B(Wide), B(LdaSmi), U16(129), |
| 503 | B(Star), R(12), |
| 504 | B(LdaConstant), U8(8), |
| 505 | B(Star), R(13), |
| 506 | B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
| 507 | B(Throw), |
| 508 | B(Mov), R(context), R(12), |
| 509 | B(Ldar), R(5), |
| 510 | B(Star), R(13), |
| 511 | B(Ldar), R(1), |
| 512 | B(Star), R(14), |
| 513 | B(CallRuntime), U16(Runtime::k_Call), R(13), U8(2), |
| 514 | B(Jump), U8(30), |
| 515 | B(Star), R(14), |
| 516 | B(LdaConstant), U8(5), |
| 517 | B(Star), R(13), |
| 518 | B(Ldar), R(closure), |
| 519 | B(Star), R(15), |
| 520 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3), |
| 521 | B(Star), R(12), |
| 522 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 523 | B(Ldar), R(12), |
| 524 | B(PushContext), R(8), |
| 525 | B(PopContext), R(8), |
| 526 | B(Jump), U8(37), |
| 527 | B(Ldar), R(5), |
| 528 | B(Star), R(12), |
| 529 | B(Ldar), R(1), |
| 530 | B(Star), R(13), |
| 531 | B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
| 532 | B(Star), R(6), |
| 533 | B(Star), R(12), |
| 534 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 535 | B(JumpIfToBooleanFalse), U8(4), |
| 536 | B(Jump), U8(11), |
| 537 | B(Ldar), R(6), |
| 538 | B(Star), R(12), |
| 539 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
| 540 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1), |
| 541 | B(LdaZero), |
| 542 | B(TestEqualStrict), R(9), |
| 543 | B(JumpIfTrue), U8(4), |
| 544 | B(Jump), U8(5), |
| 545 | B(Ldar), R(10), |
| 546 | B(ReThrow), |
| 547 | B(LdaUndefined), |
| 548 | /* 113 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 549 | ] |
| 550 | constant pool: [ |
| 551 | InstanceType::FIXED_ARRAY_TYPE, |
| 552 | InstanceType::SYMBOL_TYPE, |
| 553 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 554 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 555 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 556 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 557 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 558 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 559 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 560 | kInstanceTypeDontCare, |
| 561 | ] |
| 562 | handlers: [ |
| 563 | [10, 174, 180], |
| 564 | [13, 127, 129], |
| 565 | [272, 285, 287], |
| 566 | ] |
| 567 | |
| 568 | --- |
| 569 | snippet: " |
| 570 | var x = { 'a': 1, 'b': 2 }; |
| 571 | for (x['a'] of [1,2,3]) { return x['a']; } |
| 572 | " |
| 573 | frame size: 15 |
| 574 | parameter count: 1 |
| 575 | bytecode array length: 379 |
| 576 | bytecodes: [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame^] | 577 | /* 30 E> */ B(StackCheck), |
| 578 | /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
| 579 | B(Star), R(8), |
| 580 | /* 42 E> */ B(Star), R(6), |
| 581 | B(LdaUndefined), |
| 582 | B(Star), R(3), |
| 583 | B(LdaZero), |
| 584 | B(Star), R(2), |
| 585 | B(Mov), R(context), R(10), |
| 586 | B(Mov), R(context), R(11), |
| 587 | /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), |
| 588 | B(Star), R(13), |
| 589 | /* 77 E> */ B(LdaConstant), U8(2), |
| 590 | B(KeyedLoadIC), R(13), U8(3), |
| 591 | B(Star), R(12), |
| 592 | /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), |
| 593 | /* 77 E> */ B(Star), R(0), |
| 594 | /* 74 S> */ B(Ldar), R(0), |
| 595 | B(Star), R(14), |
| 596 | B(LoadIC), R(14), U8(3), U8(7), |
| 597 | B(Star), R(13), |
| 598 | /* 74 E> */ B(Call), R(13), R(14), U8(1), U8(5), |
| 599 | /* 74 E> */ B(Star), R(1), |
| 600 | B(Star), R(12), |
| 601 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 602 | B(ToBooleanLogicalNot), |
| 603 | B(JumpIfFalse), U8(11), |
| 604 | B(Ldar), R(1), |
| 605 | B(Star), R(12), |
| 606 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(12), U8(1), |
| 607 | B(Ldar), R(1), |
| 608 | B(Star), R(12), |
| 609 | B(LoadIC), R(12), U8(4), U8(9), |
| 610 | B(JumpIfToBooleanTrue), U8(42), |
| 611 | B(LdaSmi), U8(2), |
| 612 | B(Star), R(2), |
| 613 | /* 67 E> */ B(Ldar), R(6), |
| 614 | B(Star), R(12), |
| 615 | B(Ldar), R(1), |
| 616 | B(Star), R(13), |
| 617 | B(LoadIC), R(13), U8(5), U8(11), |
| 618 | B(StoreICSloppy), R(12), U8(6), U8(13), |
| 619 | B(Ldar), R(3), |
| 620 | /* 62 E> */ B(StackCheck), |
| 621 | /* 88 S> */ B(Ldar), R(6), |
| 622 | B(Star), R(12), |
| 623 | /* 96 E> */ B(LoadIC), R(12), U8(6), U8(15), |
| 624 | B(Star), R(9), |
| 625 | B(LdaZero), |
| 626 | B(Star), R(8), |
| 627 | B(Jump), U8(63), |
| 628 | B(Jump), U8(-84), |
| 629 | B(Jump), U8(47), |
| 630 | B(Star), R(13), |
| 631 | B(LdaConstant), U8(7), |
| 632 | B(Star), R(12), |
| 633 | B(Ldar), R(closure), |
| 634 | B(Star), R(14), |
| 635 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3), |
| 636 | B(Star), R(11), |
| 637 | B(PushContext), R(7), |
| 638 | B(Ldar), R(2), |
| 639 | B(Star), R(12), |
| 640 | B(LdaSmi), U8(2), |
| 641 | B(TestEqualStrict), R(12), |
| 642 | B(JumpIfFalse), U8(6), |
| 643 | B(LdaSmi), U8(1), |
| 644 | B(Star), R(2), |
| 645 | B(LdaContextSlot), R(context), U8(4), |
| 646 | B(Star), R(12), |
| 647 | B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), |
| 648 | B(PopContext), R(7), |
| 649 | B(LdaSmi), U8(-1), |
| 650 | B(Star), R(8), |
| 651 | B(Jump), U8(8), |
| 652 | B(Star), R(9), |
| 653 | B(LdaSmi), U8(1), |
| 654 | B(Star), R(8), |
| 655 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 656 | B(Star), R(10), |
| 657 | B(Ldar), R(2), |
| 658 | B(Star), R(11), |
| 659 | B(LdaZero), |
| 660 | B(TestEqualStrict), R(11), |
| 661 | B(JumpIfTrue), U8(9), |
| 662 | B(Ldar), R(0), |
| 663 | B(Star), R(11), |
| 664 | B(LdaUndefined), |
| 665 | B(TestEqualStrict), R(11), |
| 666 | B(ToBooleanLogicalNot), |
| 667 | B(JumpIfFalseConstant), U8(11), |
| 668 | B(Ldar), R(0), |
| 669 | B(Star), R(11), |
| 670 | B(LoadIC), R(11), U8(8), U8(17), |
| 671 | B(Star), R(4), |
| 672 | B(Star), R(11), |
| 673 | B(LdaNull), |
| 674 | B(TestEqual), R(11), |
| 675 | B(JumpIfFalse), U8(4), |
| 676 | B(Jump), U8(124), |
| 677 | B(Ldar), R(2), |
| 678 | B(Star), R(11), |
| 679 | B(LdaSmi), U8(1), |
| 680 | B(TestEqualStrict), R(11), |
| 681 | B(JumpIfFalse), U8(79), |
| 682 | B(Ldar), R(4), |
| 683 | B(TypeOf), |
| 684 | B(Star), R(11), |
| 685 | B(LdaConstant), U8(9), |
| 686 | B(TestEqualStrict), R(11), |
| 687 | B(JumpIfFalse), U8(4), |
| 688 | B(Jump), U8(18), |
| 689 | B(Wide), B(LdaSmi), U16(129), |
| 690 | B(Star), R(11), |
| 691 | B(LdaConstant), U8(10), |
| 692 | B(Star), R(12), |
| 693 | B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
| 694 | B(Throw), |
| 695 | B(Mov), R(context), R(11), |
| 696 | B(Ldar), R(4), |
| 697 | B(Star), R(12), |
| 698 | B(Ldar), R(0), |
| 699 | B(Star), R(13), |
| 700 | B(CallRuntime), U16(Runtime::k_Call), R(12), U8(2), |
| 701 | B(Jump), U8(30), |
| 702 | B(Star), R(13), |
| 703 | B(LdaConstant), U8(7), |
| 704 | B(Star), R(12), |
| 705 | B(Ldar), R(closure), |
| 706 | B(Star), R(14), |
| 707 | B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3), |
| 708 | B(Star), R(11), |
| 709 | B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0), |
| 710 | B(Ldar), R(11), |
| 711 | B(PushContext), R(7), |
| 712 | B(PopContext), R(7), |
| 713 | B(Jump), U8(37), |
| 714 | B(Ldar), R(4), |
| 715 | B(Star), R(11), |
| 716 | B(Ldar), R(0), |
| 717 | B(Star), R(12), |
| 718 | B(CallRuntime), U16(Runtime::k_Call), R(11), U8(2), |
| 719 | B(Star), R(5), |
| 720 | B(Star), R(11), |
| 721 | B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(11), U8(1), |
| 722 | B(JumpIfToBooleanFalse), U8(4), |
| 723 | B(Jump), U8(11), |
| 724 | B(Ldar), R(5), |
| 725 | B(Star), R(11), |
| 726 | B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(11), U8(1), |
| 727 | B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(10), U8(1), |
| 728 | B(LdaZero), |
| 729 | B(TestEqualStrict), R(8), |
| 730 | B(JumpIfTrue), U8(10), |
| 731 | B(LdaSmi), U8(1), |
| 732 | B(TestEqualStrict), R(8), |
| 733 | B(JumpIfTrue), U8(7), |
| 734 | B(Jump), U8(8), |
| 735 | B(Ldar), R(9), |
| 736 | /* 105 S> */ B(Return), |
| 737 | B(Ldar), R(9), |
| 738 | B(ReThrow), |
| 739 | B(LdaUndefined), |
| 740 | /* 105 S> */ B(Return), |
Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 741 | ] |
| 742 | constant pool: [ |
| 743 | InstanceType::FIXED_ARRAY_TYPE, |
| 744 | InstanceType::FIXED_ARRAY_TYPE, |
| 745 | InstanceType::SYMBOL_TYPE, |
| 746 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 747 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 748 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 749 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 750 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 751 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 752 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 753 | InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 754 | kInstanceTypeDontCare, |
| 755 | ] |
| 756 | handlers: [ |
| 757 | [18, 174, 180], |
| 758 | [21, 127, 129], |
| 759 | [273, 286, 288], |
| 760 | ] |
| 761 | |