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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: 17 |
53 bytecodes: [ | 53 bytecodes: [ |
54 /* 30 E> */ B(StackCheck), | 54 /* 30 E> */ B(StackCheck), |
55 /* 42 S> */ B(LdaSmi), U8(1), | 55 /* 42 S> */ B(LdaSmi), I8(1), |
56 B(Star), R(0), | 56 B(Star), R(0), |
57 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 57 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
58 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(2), | 58 /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(2), |
59 B(Ldar), R(1), | 59 B(Ldar), R(1), |
60 /* 80 S> */ B(Return), | 60 /* 80 S> */ B(Return), |
61 ] | 61 ] |
62 constant pool: [ | 62 constant pool: [ |
63 FIXED_ARRAY_TYPE, | 63 FIXED_ARRAY_TYPE, |
64 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 64 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
65 ] | 65 ] |
66 handlers: [ | 66 handlers: [ |
67 ] | 67 ] |
68 | 68 |
69 --- | 69 --- |
70 snippet: " | 70 snippet: " |
71 var a = 1; return { val: a, val: a + 1 }; | 71 var a = 1; return { val: a, val: a + 1 }; |
72 " | 72 " |
73 frame size: 2 | 73 frame size: 2 |
74 parameter count: 1 | 74 parameter count: 1 |
75 bytecode array length: 21 | 75 bytecode array length: 21 |
76 bytecodes: [ | 76 bytecodes: [ |
77 /* 30 E> */ B(StackCheck), | 77 /* 30 E> */ B(StackCheck), |
78 /* 42 S> */ B(LdaSmi), U8(1), | 78 /* 42 S> */ B(LdaSmi), I8(1), |
79 B(Star), R(0), | 79 B(Star), R(0), |
80 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 80 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
81 /* 69 E> */ B(AddSmi), U8(1), R(0), U8(2), | 81 /* 69 E> */ B(AddSmi), I8(1), R(0), U8(2), |
82 B(StaNamedPropertySloppy), R(1), U8(1), U8(3), | 82 B(StaNamedPropertySloppy), R(1), U8(1), U8(3), |
83 B(Ldar), R(1), | 83 B(Ldar), R(1), |
84 /* 76 S> */ B(Return), | 84 /* 76 S> */ B(Return), |
85 ] | 85 ] |
86 constant pool: [ | 86 constant pool: [ |
87 FIXED_ARRAY_TYPE, | 87 FIXED_ARRAY_TYPE, |
88 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 88 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
89 ] | 89 ] |
90 handlers: [ | 90 handlers: [ |
91 ] | 91 ] |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 --- | 233 --- |
234 snippet: " | 234 snippet: " |
235 var a = 1; return { 1: a }; | 235 var a = 1; return { 1: a }; |
236 " | 236 " |
237 frame size: 6 | 237 frame size: 6 |
238 parameter count: 1 | 238 parameter count: 1 |
239 bytecode array length: 31 | 239 bytecode array length: 31 |
240 bytecodes: [ | 240 bytecodes: [ |
241 /* 30 E> */ B(StackCheck), | 241 /* 30 E> */ B(StackCheck), |
242 /* 42 S> */ B(LdaSmi), U8(1), | 242 /* 42 S> */ B(LdaSmi), I8(1), |
243 B(Star), R(0), | 243 B(Star), R(0), |
244 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 244 /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
245 B(LdaSmi), U8(1), | 245 B(LdaSmi), I8(1), |
246 B(Star), R(3), | 246 B(Star), R(3), |
247 B(LdaZero), | 247 B(LdaZero), |
248 B(Star), R(5), | 248 B(Star), R(5), |
249 B(Mov), R(1), R(2), | 249 B(Mov), R(1), R(2), |
250 B(Mov), R(0), R(4), | 250 B(Mov), R(0), R(4), |
251 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), | 251 /* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), |
252 B(Ldar), R(2), | 252 B(Ldar), R(2), |
253 /* 62 S> */ B(Return), | 253 /* 62 S> */ B(Return), |
254 ] | 254 ] |
255 constant pool: [ | 255 constant pool: [ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 " | 287 " |
288 frame size: 4 | 288 frame size: 4 |
289 parameter count: 1 | 289 parameter count: 1 |
290 bytecode array length: 24 | 290 bytecode array length: 24 |
291 bytecodes: [ | 291 bytecodes: [ |
292 /* 30 E> */ B(StackCheck), | 292 /* 30 E> */ B(StackCheck), |
293 /* 42 S> */ B(LdaConstant), U8(0), | 293 /* 42 S> */ B(LdaConstant), U8(0), |
294 B(Star), R(0), | 294 B(Star), R(0), |
295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), | 295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), |
296 /* 60 E> */ B(ToName), R(2), | 296 /* 60 E> */ B(ToName), R(2), |
297 B(LdaSmi), U8(1), | 297 B(LdaSmi), I8(1), |
298 B(Star), R(3), | 298 B(Star), R(3), |
299 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2), | 299 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2), |
300 B(Ldar), R(1), | 300 B(Ldar), R(1), |
301 /* 69 S> */ B(Return), | 301 /* 69 S> */ B(Return), |
302 ] | 302 ] |
303 constant pool: [ | 303 constant pool: [ |
304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
305 FIXED_ARRAY_TYPE, | 305 FIXED_ARRAY_TYPE, |
306 ] | 306 ] |
307 handlers: [ | 307 handlers: [ |
308 ] | 308 ] |
309 | 309 |
310 --- | 310 --- |
311 snippet: " | 311 snippet: " |
312 var a = 'test'; return { val: a, [a]: 1 }; | 312 var a = 'test'; return { val: a, [a]: 1 }; |
313 " | 313 " |
314 frame size: 4 | 314 frame size: 4 |
315 parameter count: 1 | 315 parameter count: 1 |
316 bytecode array length: 28 | 316 bytecode array length: 28 |
317 bytecodes: [ | 317 bytecodes: [ |
318 /* 30 E> */ B(StackCheck), | 318 /* 30 E> */ B(StackCheck), |
319 /* 42 S> */ B(LdaConstant), U8(0), | 319 /* 42 S> */ B(LdaConstant), U8(0), |
320 B(Star), R(0), | 320 B(Star), R(0), |
321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1), | 321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1), |
322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2), | 322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2), |
323 /* 68 E> */ B(ToName), R(2), | 323 /* 68 E> */ B(ToName), R(2), |
324 B(LdaSmi), U8(1), | 324 B(LdaSmi), I8(1), |
325 B(Star), R(3), | 325 B(Star), R(3), |
326 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4), | 326 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4), |
327 B(Ldar), R(1), | 327 B(Ldar), R(1), |
328 /* 77 S> */ B(Return), | 328 /* 77 S> */ B(Return), |
329 ] | 329 ] |
330 constant pool: [ | 330 constant pool: [ |
331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], | 331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], |
332 FIXED_ARRAY_TYPE, | 332 FIXED_ARRAY_TYPE, |
333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
334 ] | 334 ] |
335 handlers: [ | 335 handlers: [ |
336 ] | 336 ] |
337 | 337 |
338 --- | 338 --- |
339 snippet: " | 339 snippet: " |
340 var a = 'test'; return { [a]: 1, __proto__: {} }; | 340 var a = 'test'; return { [a]: 1, __proto__: {} }; |
341 " | 341 " |
342 frame size: 5 | 342 frame size: 5 |
343 parameter count: 1 | 343 parameter count: 1 |
344 bytecode array length: 40 | 344 bytecode array length: 40 |
345 bytecodes: [ | 345 bytecodes: [ |
346 /* 30 E> */ B(StackCheck), | 346 /* 30 E> */ B(StackCheck), |
347 /* 42 S> */ B(LdaConstant), U8(0), | 347 /* 42 S> */ B(LdaConstant), U8(0), |
348 B(Star), R(0), | 348 B(Star), R(0), |
349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1), | 349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1), |
350 /* 60 E> */ B(ToName), R(2), | 350 /* 60 E> */ B(ToName), R(2), |
351 B(LdaSmi), U8(1), | 351 B(LdaSmi), I8(1), |
352 B(Star), R(3), | 352 B(Star), R(3), |
353 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2), | 353 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2), |
354 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4), | 354 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4), |
355 B(Mov), R(1), R(2), | 355 B(Mov), R(1), R(2), |
356 B(Mov), R(4), R(3), | 356 B(Mov), R(4), R(3), |
357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, | 357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2)
, |
358 B(Ldar), R(2), | 358 B(Ldar), R(2), |
359 /* 84 S> */ B(Return), | 359 /* 84 S> */ B(Return), |
360 ] | 360 ] |
361 constant pool: [ | 361 constant pool: [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
404 FIXED_ARRAY_TYPE, | 404 FIXED_ARRAY_TYPE, |
405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], | 405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
407 SHARED_FUNCTION_INFO_TYPE, | 407 SHARED_FUNCTION_INFO_TYPE, |
408 SHARED_FUNCTION_INFO_TYPE, | 408 SHARED_FUNCTION_INFO_TYPE, |
409 ] | 409 ] |
410 handlers: [ | 410 handlers: [ |
411 ] | 411 ] |
412 | 412 |
OLD | NEW |