OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | |
7 execute: yes | 6 execute: yes |
8 wrap: yes | 7 wrap: yes |
9 | 8 |
10 --- | 9 --- |
11 snippet: " | 10 snippet: " |
12 var a; return function() { a = 1; }; | 11 var a; return function() { a = 1; }; |
13 " | 12 " |
14 frame size: 1 | 13 frame size: 1 |
15 parameter count: 1 | 14 parameter count: 1 |
16 bytecode array length: 9 | 15 bytecode array length: 9 |
17 bytecodes: [ | 16 bytecodes: [ |
18 B(CreateFunctionContext), U8(1), | 17 B(CreateFunctionContext), U8(1), |
19 B(PushContext), R(0), | 18 B(PushContext), R(0), |
20 /* 30 E> */ B(StackCheck), | 19 /* 30 E> */ B(StackCheck), |
21 /* 41 S> */ B(CreateClosure), U8(0), U8(2), | 20 /* 41 S> */ B(CreateClosure), U8(0), U8(2), |
22 /* 71 S> */ B(Return), | 21 /* 71 S> */ B(Return), |
23 ] | 22 ] |
24 constant pool: [ | 23 constant pool: [ |
25 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 24 SHARED_FUNCTION_INFO_TYPE, |
26 ] | 25 ] |
27 handlers: [ | 26 handlers: [ |
28 ] | 27 ] |
29 | 28 |
30 --- | 29 --- |
31 snippet: " | 30 snippet: " |
32 var a = 1; return function() { a = 2; }; | 31 var a = 1; return function() { a = 2; }; |
33 " | 32 " |
34 frame size: 1 | 33 frame size: 1 |
35 parameter count: 1 | 34 parameter count: 1 |
36 bytecode array length: 14 | 35 bytecode array length: 14 |
37 bytecodes: [ | 36 bytecodes: [ |
38 B(CreateFunctionContext), U8(1), | 37 B(CreateFunctionContext), U8(1), |
39 B(PushContext), R(0), | 38 B(PushContext), R(0), |
40 /* 30 E> */ B(StackCheck), | 39 /* 30 E> */ B(StackCheck), |
41 /* 42 S> */ B(LdaSmi), U8(1), | 40 /* 42 S> */ B(LdaSmi), U8(1), |
42 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 41 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
43 /* 45 S> */ B(CreateClosure), U8(0), U8(2), | 42 /* 45 S> */ B(CreateClosure), U8(0), U8(2), |
44 /* 75 S> */ B(Return), | 43 /* 75 S> */ B(Return), |
45 ] | 44 ] |
46 constant pool: [ | 45 constant pool: [ |
47 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 46 SHARED_FUNCTION_INFO_TYPE, |
48 ] | 47 ] |
49 handlers: [ | 48 handlers: [ |
50 ] | 49 ] |
51 | 50 |
52 --- | 51 --- |
53 snippet: " | 52 snippet: " |
54 var a = 1; var b = 2; return function() { a = 2; b = 3 }; | 53 var a = 1; var b = 2; return function() { a = 2; b = 3 }; |
55 " | 54 " |
56 frame size: 1 | 55 frame size: 1 |
57 parameter count: 1 | 56 parameter count: 1 |
58 bytecode array length: 19 | 57 bytecode array length: 19 |
59 bytecodes: [ | 58 bytecodes: [ |
60 B(CreateFunctionContext), U8(2), | 59 B(CreateFunctionContext), U8(2), |
61 B(PushContext), R(0), | 60 B(PushContext), R(0), |
62 /* 30 E> */ B(StackCheck), | 61 /* 30 E> */ B(StackCheck), |
63 /* 42 S> */ B(LdaSmi), U8(1), | 62 /* 42 S> */ B(LdaSmi), U8(1), |
64 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 63 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
65 /* 53 S> */ B(LdaSmi), U8(2), | 64 /* 53 S> */ B(LdaSmi), U8(2), |
66 /* 53 E> */ B(StaContextSlot), R(context), U8(5), | 65 /* 53 E> */ B(StaContextSlot), R(context), U8(5), |
67 /* 56 S> */ B(CreateClosure), U8(0), U8(2), | 66 /* 56 S> */ B(CreateClosure), U8(0), U8(2), |
68 /* 92 S> */ B(Return), | 67 /* 92 S> */ B(Return), |
69 ] | 68 ] |
70 constant pool: [ | 69 constant pool: [ |
71 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 70 SHARED_FUNCTION_INFO_TYPE, |
72 ] | 71 ] |
73 handlers: [ | 72 handlers: [ |
74 ] | 73 ] |
75 | 74 |
76 --- | 75 --- |
77 snippet: " | 76 snippet: " |
78 var a; (function() { a = 2; })(); return a; | 77 var a; (function() { a = 2; })(); return a; |
79 " | 78 " |
80 frame size: 3 | 79 frame size: 3 |
81 parameter count: 1 | 80 parameter count: 1 |
82 bytecode array length: 21 | 81 bytecode array length: 21 |
83 bytecodes: [ | 82 bytecodes: [ |
84 B(CreateFunctionContext), U8(1), | 83 B(CreateFunctionContext), U8(1), |
85 B(PushContext), R(0), | 84 B(PushContext), R(0), |
86 /* 30 E> */ B(StackCheck), | 85 /* 30 E> */ B(StackCheck), |
87 /* 41 S> */ B(LdrUndefined), R(2), | 86 /* 41 S> */ B(LdrUndefined), R(2), |
88 B(CreateClosure), U8(0), U8(2), | 87 B(CreateClosure), U8(0), U8(2), |
89 B(Star), R(1), | 88 B(Star), R(1), |
90 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), | 89 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(1), |
91 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), | 90 /* 68 S> */ B(LdaContextSlot), R(context), U8(4), |
92 /* 78 S> */ B(Return), | 91 /* 78 S> */ B(Return), |
93 ] | 92 ] |
94 constant pool: [ | 93 constant pool: [ |
95 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 94 SHARED_FUNCTION_INFO_TYPE, |
96 ] | 95 ] |
97 handlers: [ | 96 handlers: [ |
98 ] | 97 ] |
99 | 98 |
100 --- | 99 --- |
101 snippet: " | 100 snippet: " |
102 'use strict'; | 101 'use strict'; |
103 let a = 1; | 102 let a = 1; |
104 { let b = 2; return function() { a + b; }; } | 103 { let b = 2; return function() { a + b; }; } |
105 " | 104 " |
(...skipping 13 matching lines...) Expand all Loading... |
119 B(PushContext), R(1), | 118 B(PushContext), R(1), |
120 B(LdaTheHole), | 119 B(LdaTheHole), |
121 B(StaContextSlot), R(context), U8(4), | 120 B(StaContextSlot), R(context), U8(4), |
122 /* 69 S> */ B(LdaSmi), U8(2), | 121 /* 69 S> */ B(LdaSmi), U8(2), |
123 /* 69 E> */ B(StaContextSlot), R(context), U8(4), | 122 /* 69 E> */ B(StaContextSlot), R(context), U8(4), |
124 /* 72 S> */ B(CreateClosure), U8(1), U8(2), | 123 /* 72 S> */ B(CreateClosure), U8(1), U8(2), |
125 B(PopContext), R(0), | 124 B(PopContext), R(0), |
126 /* 104 S> */ B(Return), | 125 /* 104 S> */ B(Return), |
127 ] | 126 ] |
128 constant pool: [ | 127 constant pool: [ |
129 InstanceType::FIXED_ARRAY_TYPE, | 128 FIXED_ARRAY_TYPE, |
130 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 129 SHARED_FUNCTION_INFO_TYPE, |
131 ] | 130 ] |
132 handlers: [ | 131 handlers: [ |
133 ] | 132 ] |
134 | 133 |
135 --- | 134 --- |
136 snippet: " | 135 snippet: " |
137 'use strict'; | 136 'use strict'; |
138 var a0 = 0; | 137 var a0 = 0; |
139 var a1 = 0; | 138 var a1 = 0; |
140 var a2 = 0; | 139 var a2 = 0; |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 /* 3440 S> */ B(LdaSmi), U8(100), | 904 /* 3440 S> */ B(LdaSmi), U8(100), |
906 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), | 905 /* 3440 E> */ B(Wide), B(StaContextSlot), R16(context), U16(256), |
907 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), | 906 /* 3445 S> */ B(Wide), B(LdaContextSlot), R16(context), U16(256), |
908 /* 3454 S> */ B(Return), | 907 /* 3454 S> */ B(Return), |
909 ] | 908 ] |
910 constant pool: [ | 909 constant pool: [ |
911 ] | 910 ] |
912 handlers: [ | 911 handlers: [ |
913 ] | 912 ] |
914 | 913 |
OLD | NEW |