OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 var a = 1; | 11 var a = 1; |
12 function f() { return a; } | 12 function f() { return a; } |
13 f() | 13 f() |
14 " | 14 " |
15 frame size: 0 | 15 frame size: 0 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 4 | 17 bytecode array length: 5 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 21 E> */ B(StackCheck), | 19 /* 21 E> */ B(StackCheck), |
20 /* 26 S> */ B(LdaGlobal), U8(2), | 20 /* 26 S> */ B(LdaGlobal), U8(0), U8(2), |
21 /* 36 S> */ B(Return), | 21 /* 36 S> */ B(Return), |
22 ] | 22 ] |
23 constant pool: [ | 23 constant pool: [ |
| 24 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
24 ] | 25 ] |
25 handlers: [ | 26 handlers: [ |
26 ] | 27 ] |
27 | 28 |
28 --- | 29 --- |
29 snippet: " | 30 snippet: " |
30 function t() { } | 31 function t() { } |
31 function f() { return t; } | 32 function f() { return t; } |
32 f() | 33 f() |
33 " | 34 " |
34 frame size: 0 | 35 frame size: 0 |
35 parameter count: 1 | 36 parameter count: 1 |
36 bytecode array length: 4 | 37 bytecode array length: 5 |
37 bytecodes: [ | 38 bytecodes: [ |
38 /* 27 E> */ B(StackCheck), | 39 /* 27 E> */ B(StackCheck), |
39 /* 32 S> */ B(LdaGlobal), U8(2), | 40 /* 32 S> */ B(LdaGlobal), U8(0), U8(2), |
40 /* 42 S> */ B(Return), | 41 /* 42 S> */ B(Return), |
41 ] | 42 ] |
42 constant pool: [ | 43 constant pool: [ |
| 44 ONE_BYTE_INTERNALIZED_STRING_TYPE ["t"], |
43 ] | 45 ] |
44 handlers: [ | 46 handlers: [ |
45 ] | 47 ] |
46 | 48 |
47 --- | 49 --- |
48 snippet: " | 50 snippet: " |
49 a = 1; | 51 a = 1; |
50 function f() { return a; } | 52 function f() { return a; } |
51 f() | 53 f() |
52 " | 54 " |
53 frame size: 0 | 55 frame size: 0 |
54 parameter count: 1 | 56 parameter count: 1 |
55 bytecode array length: 4 | 57 bytecode array length: 5 |
56 bytecodes: [ | 58 bytecodes: [ |
57 /* 17 E> */ B(StackCheck), | 59 /* 17 E> */ B(StackCheck), |
58 /* 22 S> */ B(LdaGlobal), U8(2), | 60 /* 22 S> */ B(LdaGlobal), U8(0), U8(2), |
59 /* 32 S> */ B(Return), | 61 /* 32 S> */ B(Return), |
60 ] | 62 ] |
61 constant pool: [ | 63 constant pool: [ |
| 64 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
62 ] | 65 ] |
63 handlers: [ | 66 handlers: [ |
64 ] | 67 ] |
65 | 68 |
66 --- | 69 --- |
67 snippet: " | 70 snippet: " |
68 a = 1; | 71 a = 1; |
69 function f(b) { | 72 function f(b) { |
70 b.name; | 73 b.name; |
71 b.name; | 74 b.name; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 b.name; | 197 b.name; |
195 b.name; | 198 b.name; |
196 b.name; | 199 b.name; |
197 b.name; | 200 b.name; |
198 return a; | 201 return a; |
199 } | 202 } |
200 f({name: 1}); | 203 f({name: 1}); |
201 " | 204 " |
202 frame size: 0 | 205 frame size: 0 |
203 parameter count: 2 | 206 parameter count: 2 |
204 bytecode array length: 650 | 207 bytecode array length: 652 |
205 bytecodes: [ | 208 bytecodes: [ |
206 /* 17 E> */ B(StackCheck), | 209 /* 17 E> */ B(StackCheck), |
207 /* 25 S> */ B(Nop), | 210 /* 25 S> */ B(Nop), |
208 /* 26 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), | 211 /* 26 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(2), |
209 /* 35 S> */ B(Nop), | 212 /* 35 S> */ B(Nop), |
210 /* 36 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), | 213 /* 36 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(4), |
211 /* 45 S> */ B(Nop), | 214 /* 45 S> */ B(Nop), |
212 /* 46 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), | 215 /* 46 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(6), |
213 /* 55 S> */ B(Nop), | 216 /* 55 S> */ B(Nop), |
214 /* 56 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), | 217 /* 56 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(8), |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 /* 1255 S> */ B(Nop), | 456 /* 1255 S> */ B(Nop), |
454 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), | 457 /* 1256 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(248), |
455 /* 1265 S> */ B(Nop), | 458 /* 1265 S> */ B(Nop), |
456 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), | 459 /* 1266 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(250), |
457 /* 1275 S> */ B(Nop), | 460 /* 1275 S> */ B(Nop), |
458 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), | 461 /* 1276 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(252), |
459 /* 1285 S> */ B(Nop), | 462 /* 1285 S> */ B(Nop), |
460 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), | 463 /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254), |
461 /* 1295 S> */ B(Nop), | 464 /* 1295 S> */ B(Nop), |
462 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), | 465 /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256), |
463 /* 1305 S> */ B(Wide), B(LdaGlobal), U16(258), | 466 /* 1305 S> */ B(Wide), B(LdaGlobal), U16(1), U16(258), |
464 /* 1315 S> */ B(Return), | 467 /* 1315 S> */ B(Return), |
465 ] | 468 ] |
466 constant pool: [ | 469 constant pool: [ |
467 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], | 470 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], |
| 471 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
468 ] | 472 ] |
469 handlers: [ | 473 handlers: [ |
470 ] | 474 ] |
471 | 475 |
OLD | NEW |