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 function(){ } | 10 return function(){ } |
11 " | 11 " |
12 frame size: 0 | 12 frame size: 0 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 5 | 14 bytecode array length: 6 |
15 bytecodes: [ | 15 bytecodes: [ |
16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
17 /* 34 S> */ B(CreateClosure), U8(0), U8(2), | 17 /* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
18 /* 55 S> */ B(Return), | 18 /* 55 S> */ B(Return), |
19 ] | 19 ] |
20 constant pool: [ | 20 constant pool: [ |
21 SHARED_FUNCTION_INFO_TYPE, | 21 SHARED_FUNCTION_INFO_TYPE, |
22 ] | 22 ] |
23 handlers: [ | 23 handlers: [ |
24 ] | 24 ] |
25 | 25 |
26 --- | 26 --- |
27 snippet: " | 27 snippet: " |
28 return (function(){ })() | 28 return (function(){ })() |
29 " | 29 " |
30 frame size: 2 | 30 frame size: 2 |
31 parameter count: 1 | 31 parameter count: 1 |
32 bytecode array length: 15 | 32 bytecode array length: 16 |
33 bytecodes: [ | 33 bytecodes: [ |
34 /* 30 E> */ B(StackCheck), | 34 /* 30 E> */ B(StackCheck), |
35 /* 34 S> */ B(LdaUndefined), | 35 /* 34 S> */ B(LdaUndefined), |
36 B(Star), R(1), | 36 B(Star), R(1), |
37 B(CreateClosure), U8(0), U8(2), | 37 B(CreateClosure), U8(0), U8(4), U8(2), |
38 B(Star), R(0), | 38 B(Star), R(0), |
39 /* 56 E> */ B(Call), R(0), R(1), U8(1), U8(2), | 39 /* 56 E> */ B(Call), R(0), R(1), U8(1), U8(2), |
40 /* 59 S> */ B(Return), | 40 /* 59 S> */ B(Return), |
41 ] | 41 ] |
42 constant pool: [ | 42 constant pool: [ |
43 SHARED_FUNCTION_INFO_TYPE, | 43 SHARED_FUNCTION_INFO_TYPE, |
44 ] | 44 ] |
45 handlers: [ | 45 handlers: [ |
46 ] | 46 ] |
47 | 47 |
48 --- | 48 --- |
49 snippet: " | 49 snippet: " |
50 return (function(x){ return x; })(1) | 50 return (function(x){ return x; })(1) |
51 " | 51 " |
52 frame size: 3 | 52 frame size: 3 |
53 parameter count: 1 | 53 parameter count: 1 |
54 bytecode array length: 19 | 54 bytecode array length: 20 |
55 bytecodes: [ | 55 bytecodes: [ |
56 /* 30 E> */ B(StackCheck), | 56 /* 30 E> */ B(StackCheck), |
57 /* 34 S> */ B(LdaUndefined), | 57 /* 34 S> */ B(LdaUndefined), |
58 B(Star), R(1), | 58 B(Star), R(1), |
59 B(CreateClosure), U8(0), U8(2), | 59 B(CreateClosure), U8(0), U8(4), U8(2), |
60 B(Star), R(0), | 60 B(Star), R(0), |
61 B(LdaSmi), U8(1), | 61 B(LdaSmi), U8(1), |
62 B(Star), R(2), | 62 B(Star), R(2), |
63 /* 67 E> */ B(Call), R(0), R(1), U8(2), U8(2), | 63 /* 67 E> */ B(Call), R(0), R(1), U8(2), U8(2), |
64 /* 71 S> */ B(Return), | 64 /* 71 S> */ B(Return), |
65 ] | 65 ] |
66 constant pool: [ | 66 constant pool: [ |
67 SHARED_FUNCTION_INFO_TYPE, | 67 SHARED_FUNCTION_INFO_TYPE, |
68 ] | 68 ] |
69 handlers: [ | 69 handlers: [ |
70 ] | 70 ] |
71 | 71 |
OLD | NEW |