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 return { }; | 10 return { }; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 ] | 42 ] |
43 handlers: [ | 43 handlers: [ |
44 ] | 44 ] |
45 | 45 |
46 --- | 46 --- |
47 snippet: " | 47 snippet: " |
48 var a = 1; return { name: 'string', val: a }; | 48 var a = 1; return { name: 'string', val: a }; |
49 " | 49 " |
50 frame size: 2 | 50 frame size: 2 |
51 parameter count: 1 | 51 parameter count: 1 |
52 bytecode array length: 17 | 52 bytecode array length: 21 |
53 bytecodes: [ | 53 bytecodes: [ |
54 /* 30 E> */ B(StackCheck), | 54 /* 30 E> */ B(StackCheck), |
55 /* 42 S> */ B(LdaSmi), I8(1), | 55 /* 42 S> */ B(LdaConstant), U8(0), |
| 56 B(Star), R(1), |
| 57 B(LdaSmi), I8(1), |
56 B(Star), R(0), | 58 B(Star), R(0), |
57 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 59 /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(1), R(1), |
58 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(3), | 60 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(5), |
59 B(Ldar), R(1), | 61 B(Ldar), R(1), |
60 /* 80 S> */ B(Return), | 62 /* 80 S> */ B(Return), |
61 ] | 63 ] |
62 constant pool: [ | 64 constant pool: [ |
| 65 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
63 FIXED_ARRAY_TYPE, | 66 FIXED_ARRAY_TYPE, |
64 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 67 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
65 ] | 68 ] |
66 handlers: [ | 69 handlers: [ |
67 ] | 70 ] |
68 | 71 |
69 --- | 72 --- |
70 snippet: " | 73 snippet: " |
71 var a = 1; return { val: a, val: a + 1 }; | 74 var a = 1; return { val: a, val: a + 1 }; |
72 " | 75 " |
73 frame size: 2 | 76 frame size: 2 |
74 parameter count: 1 | 77 parameter count: 1 |
75 bytecode array length: 21 | 78 bytecode array length: 25 |
76 bytecodes: [ | 79 bytecodes: [ |
77 /* 30 E> */ B(StackCheck), | 80 /* 30 E> */ B(StackCheck), |
78 /* 42 S> */ B(LdaSmi), I8(1), | 81 /* 42 S> */ B(LdaConstant), U8(0), |
| 82 B(Star), R(1), |
| 83 B(LdaSmi), I8(1), |
79 B(Star), R(0), | 84 B(Star), R(0), |
80 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(3), U8(1), R(1), | 85 /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(5), U8(1), R(1), |
81 /* 69 E> */ B(AddSmi), I8(1), R(0), U8(2), | 86 /* 69 E> */ B(AddSmi), I8(1), R(0), U8(4), |
82 B(StaNamedPropertySloppy), R(1), U8(1), U8(4), | 87 B(StaNamedPropertySloppy), R(1), U8(2), U8(6), |
83 B(Ldar), R(1), | 88 B(Ldar), R(1), |
84 /* 76 S> */ B(Return), | 89 /* 76 S> */ B(Return), |
85 ] | 90 ] |
86 constant pool: [ | 91 constant pool: [ |
| 92 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
87 FIXED_ARRAY_TYPE, | 93 FIXED_ARRAY_TYPE, |
88 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 94 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
89 ] | 95 ] |
90 handlers: [ | 96 handlers: [ |
91 ] | 97 ] |
92 | 98 |
93 --- | 99 --- |
94 snippet: " | 100 snippet: " |
95 return { func: function() { } }; | 101 return { func: function() { } }; |
96 " | 102 " |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 ] | 235 ] |
230 handlers: [ | 236 handlers: [ |
231 ] | 237 ] |
232 | 238 |
233 --- | 239 --- |
234 snippet: " | 240 snippet: " |
235 var a = 1; return { 1: a }; | 241 var a = 1; return { 1: a }; |
236 " | 242 " |
237 frame size: 6 | 243 frame size: 6 |
238 parameter count: 1 | 244 parameter count: 1 |
239 bytecode array length: 31 | 245 bytecode array length: 35 |
240 bytecodes: [ | 246 bytecodes: [ |
241 /* 30 E> */ B(StackCheck), | 247 /* 30 E> */ B(StackCheck), |
242 /* 42 S> */ B(LdaSmi), I8(1), | 248 /* 42 S> */ B(LdaConstant), U8(0), |
| 249 B(Star), R(1), |
| 250 B(LdaSmi), I8(1), |
243 B(Star), R(0), | 251 B(Star), R(0), |
244 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), | 252 /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(1), R(1), |
245 B(LdaSmi), I8(1), | 253 B(LdaSmi), I8(1), |
246 B(Star), R(3), | 254 B(Star), R(3), |
247 B(LdaZero), | 255 B(LdaZero), |
248 B(Star), R(5), | 256 B(Star), R(5), |
249 B(Mov), R(1), R(2), | 257 B(Mov), R(1), R(2), |
250 B(Mov), R(0), R(4), | 258 B(Mov), R(0), R(4), |
251 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), | 259 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), |
252 B(Ldar), R(2), | 260 B(Ldar), R(2), |
253 /* 62 S> */ B(Return), | 261 /* 62 S> */ B(Return), |
254 ] | 262 ] |
255 constant pool: [ | 263 constant pool: [ |
| 264 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
256 FIXED_ARRAY_TYPE, | 265 FIXED_ARRAY_TYPE, |
257 ] | 266 ] |
258 handlers: [ | 267 handlers: [ |
259 ] | 268 ] |
260 | 269 |
261 --- | 270 --- |
262 snippet: " | 271 snippet: " |
263 return { __proto__: null }; | 272 return { __proto__: null }; |
264 " | 273 " |
265 frame size: 3 | 274 frame size: 3 |
(...skipping 14 matching lines...) Expand all Loading... |
280 ] | 289 ] |
281 handlers: [ | 290 handlers: [ |
282 ] | 291 ] |
283 | 292 |
284 --- | 293 --- |
285 snippet: " | 294 snippet: " |
286 var a = 'test'; return { [a]: 1 }; | 295 var a = 'test'; return { [a]: 1 }; |
287 " | 296 " |
288 frame size: 4 | 297 frame size: 4 |
289 parameter count: 1 | 298 parameter count: 1 |
290 bytecode array length: 24 | 299 bytecode array length: 28 |
291 bytecodes: [ | 300 bytecodes: [ |
292 /* 30 E> */ B(StackCheck), | 301 /* 30 E> */ B(StackCheck), |
293 /* 42 S> */ B(LdaConstant), U8(0), | 302 /* 42 S> */ B(LdaConstant), U8(0), |
| 303 B(Star), R(1), |
| 304 B(LdaConstant), U8(1), |
294 B(Star), R(0), | 305 B(Star), R(0), |
295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(1), | 306 /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(4), U8(35), R(1), |
296 /* 60 E> */ B(ToName), R(2), | 307 /* 60 E> */ B(ToName), R(2), |
297 B(LdaSmi), I8(1), | 308 B(LdaSmi), I8(1), |
298 B(Star), R(3), | 309 B(Star), R(3), |
299 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(3), | 310 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5), |
300 B(Ldar), R(1), | 311 B(Ldar), R(1), |
301 /* 69 S> */ B(Return), | 312 /* 69 S> */ B(Return), |
302 ] | 313 ] |
303 constant pool: [ | 314 constant pool: [ |
| 315 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 316 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
305 FIXED_ARRAY_TYPE, | 317 FIXED_ARRAY_TYPE, |
306 ] | 318 ] |
307 handlers: [ | 319 handlers: [ |
308 ] | 320 ] |
309 | 321 |
310 --- | 322 --- |
311 snippet: " | 323 snippet: " |
312 var a = 'test'; return { val: a, [a]: 1 }; | 324 var a = 'test'; return { val: a, [a]: 1 }; |
313 " | 325 " |
314 frame size: 4 | 326 frame size: 4 |
315 parameter count: 1 | 327 parameter count: 1 |
316 bytecode array length: 28 | 328 bytecode array length: 32 |
317 bytecodes: [ | 329 bytecodes: [ |
318 /* 30 E> */ B(StackCheck), | 330 /* 30 E> */ B(StackCheck), |
319 /* 42 S> */ B(LdaConstant), U8(0), | 331 /* 42 S> */ B(LdaConstant), U8(0), |
| 332 B(Star), R(1), |
| 333 B(LdaConstant), U8(1), |
320 B(Star), R(0), | 334 B(Star), R(0), |
321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(1), | 335 /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(4), U8(1), R(1), |
322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(3), | 336 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(3), U8(5), |
323 /* 68 E> */ B(ToName), R(2), | 337 /* 68 E> */ B(ToName), R(2), |
324 B(LdaSmi), I8(1), | 338 B(LdaSmi), I8(1), |
325 B(Star), R(3), | 339 B(Star), R(3), |
326 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5), | 340 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(7), |
327 B(Ldar), R(1), | 341 B(Ldar), R(1), |
328 /* 77 S> */ B(Return), | 342 /* 77 S> */ B(Return), |
329 ] | 343 ] |
330 constant pool: [ | 344 constant pool: [ |
| 345 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 346 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
332 FIXED_ARRAY_TYPE, | 347 FIXED_ARRAY_TYPE, |
333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 348 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
334 ] | 349 ] |
335 handlers: [ | 350 handlers: [ |
336 ] | 351 ] |
337 | 352 |
338 --- | 353 --- |
339 snippet: " | 354 snippet: " |
340 var a = 'test'; return { [a]: 1, __proto__: {} }; | 355 var a = 'test'; return { [a]: 1, __proto__: {} }; |
341 " | 356 " |
342 frame size: 5 | 357 frame size: 5 |
343 parameter count: 1 | 358 parameter count: 1 |
344 bytecode array length: 40 | 359 bytecode array length: 44 |
345 bytecodes: [ | 360 bytecodes: [ |
346 /* 30 E> */ B(StackCheck), | 361 /* 30 E> */ B(StackCheck), |
347 /* 42 S> */ B(LdaConstant), U8(0), | 362 /* 42 S> */ B(LdaConstant), U8(0), |
| 363 B(Star), R(1), |
| 364 B(LdaConstant), U8(1), |
348 B(Star), R(0), | 365 B(Star), R(0), |
349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(3), U8(35), R(1), | 366 /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(5), U8(35), R(1), |
350 /* 60 E> */ B(ToName), R(2), | 367 /* 60 E> */ B(ToName), R(2), |
351 B(LdaSmi), I8(1), | 368 B(LdaSmi), I8(1), |
352 B(Star), R(3), | 369 B(Star), R(3), |
353 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4), | 370 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(6), |
354 B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(4), | 371 B(CreateObjectLiteral), U8(2), U8(4), U8(35), R(4), |
355 B(Mov), R(1), R(2), | 372 B(Mov), R(1), R(2), |
356 B(Mov), R(4), R(3), | 373 B(Mov), R(4), R(3), |
357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, | 374 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, |
358 B(Ldar), R(2), | 375 B(Ldar), R(2), |
359 /* 84 S> */ B(Return), | 376 /* 84 S> */ B(Return), |
360 ] | 377 ] |
361 constant pool: [ | 378 constant pool: [ |
| 379 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
362 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 380 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
363 FIXED_ARRAY_TYPE, | 381 FIXED_ARRAY_TYPE, |
364 ] | 382 ] |
365 handlers: [ | 383 handlers: [ |
366 ] | 384 ] |
367 | 385 |
368 --- | 386 --- |
369 snippet: " | 387 snippet: " |
370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; | 388 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; |
371 " | 389 " |
372 frame size: 6 | 390 frame size: 6 |
373 parameter count: 1 | 391 parameter count: 1 |
374 bytecode array length: 63 | 392 bytecode array length: 67 |
375 bytecodes: [ | 393 bytecodes: [ |
376 /* 30 E> */ B(StackCheck), | 394 /* 30 E> */ B(StackCheck), |
377 /* 42 S> */ B(LdaConstant), U8(0), | 395 /* 42 S> */ B(LdaConstant), U8(0), |
| 396 B(Star), R(1), |
| 397 B(LdaConstant), U8(1), |
378 B(Star), R(0), | 398 B(Star), R(0), |
379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(35), R(1), | 399 /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(6), U8(35), R(1), |
380 /* 60 E> */ B(ToName), R(2), | 400 /* 60 E> */ B(ToName), R(2), |
381 B(LdaConstant), U8(2), | 401 B(LdaConstant), U8(3), |
382 B(Star), R(3), | 402 B(Star), R(3), |
383 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5), | 403 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(7), |
384 B(LdaConstant), U8(3), | 404 B(LdaConstant), U8(4), |
385 B(ToName), R(3), | 405 B(ToName), R(3), |
386 B(CreateClosure), U8(4), U8(2), U8(2), | 406 B(CreateClosure), U8(5), U8(4), U8(2), |
387 B(Star), R(4), | 407 B(Star), R(4), |
388 B(LdaZero), | 408 B(LdaZero), |
389 B(Star), R(5), | 409 B(Star), R(5), |
390 B(Mov), R(1), R(2), | 410 B(Mov), R(1), R(2), |
391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(
2), U8(4), | 411 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(
2), U8(4), |
392 B(LdaConstant), U8(3), | 412 B(LdaConstant), U8(4), |
393 B(ToName), R(3), | 413 B(ToName), R(3), |
394 B(CreateClosure), U8(5), U8(3), U8(2), | 414 B(CreateClosure), U8(6), U8(5), U8(2), |
395 B(Star), R(4), | 415 B(Star), R(4), |
396 B(LdaZero), | 416 B(LdaZero), |
397 B(Star), R(5), | 417 B(Star), R(5), |
398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(
2), U8(4), | 418 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(
2), U8(4), |
399 B(Ldar), R(2), | 419 B(Ldar), R(2), |
400 /* 99 S> */ B(Return), | 420 /* 99 S> */ B(Return), |
401 ] | 421 ] |
402 constant pool: [ | 422 constant pool: [ |
| 423 ONE_BYTE_INTERNALIZED_STRING_TYPE ["n"], |
403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 424 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
404 FIXED_ARRAY_TYPE, | 425 FIXED_ARRAY_TYPE, |
405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 426 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 427 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
407 SHARED_FUNCTION_INFO_TYPE, | 428 SHARED_FUNCTION_INFO_TYPE, |
408 SHARED_FUNCTION_INFO_TYPE, | 429 SHARED_FUNCTION_INFO_TYPE, |
409 ] | 430 ] |
410 handlers: [ | 431 handlers: [ |
411 ] | 432 ] |
412 | 433 |
OLD | NEW |