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 | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 --- | 96 --- |
97 snippet: " | 97 snippet: " |
98 outer: { | 98 outer: { |
99 let y = 10; | 99 let y = 10; |
100 function f() { return y; } | 100 function f() { return y; } |
101 break outer; | 101 break outer; |
102 } | 102 } |
103 " | 103 " |
104 frame size: 5 | 104 frame size: 5 |
105 parameter count: 1 | 105 parameter count: 1 |
106 bytecode array length: 50 | 106 bytecode array length: 40 |
107 bytecodes: [ | 107 bytecodes: [ |
108 /* 30 E> */ B(StackCheck), | 108 /* 30 E> */ B(StackCheck), |
109 B(LdaConstant), U8(0), | 109 B(LdaConstant), U8(0), |
110 B(Star), R(3), | 110 B(Star), R(3), |
111 B(Mov), R(closure), R(4), | 111 B(Mov), R(closure), R(4), |
112 B(CallRuntime), U16(Runtime::kPushBlockContext), R(3), U8(2), | 112 B(CallRuntime), U16(Runtime::kPushBlockContext), R(3), U8(2), |
113 B(PushContext), R(2), | 113 B(PushContext), R(2), |
114 B(LdaTheHole), | 114 B(LdaTheHole), |
115 B(StaContextSlot), R(context), U8(4), | 115 B(StaContextSlot), R(context), U8(4), |
116 B(CreateClosure), U8(1), U8(2), | 116 B(CreateClosure), U8(1), U8(2), |
117 B(Star), R(0), | 117 B(Star), R(0), |
118 /* 53 S> */ B(LdaSmi), U8(10), | 118 /* 53 S> */ B(LdaSmi), U8(10), |
119 /* 53 E> */ B(StaContextSlot), R(context), U8(4), | 119 /* 53 E> */ B(StaContextSlot), R(context), U8(4), |
| 120 B(Mov), R(0), R(1), |
120 B(Ldar), R(0), | 121 B(Ldar), R(0), |
121 B(JumpIfNotHole), U8(11), | |
122 B(LdaConstant), U8(2), | |
123 B(Star), R(3), | |
124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | |
125 B(Star), R(1), | |
126 /* 88 S> */ B(Jump), U8(2), | 122 /* 88 S> */ B(Jump), U8(2), |
127 B(PopContext), R(2), | 123 B(PopContext), R(2), |
128 B(LdaUndefined), | 124 B(LdaUndefined), |
129 /* 103 S> */ B(Return), | 125 /* 103 S> */ B(Return), |
130 ] | 126 ] |
131 constant pool: [ | 127 constant pool: [ |
132 InstanceType::FIXED_ARRAY_TYPE, | 128 InstanceType::FIXED_ARRAY_TYPE, |
133 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 129 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
134 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | |
135 ] | 130 ] |
136 handlers: [ | 131 handlers: [ |
137 ] | 132 ] |
138 | 133 |
139 --- | 134 --- |
140 snippet: " | 135 snippet: " |
141 let x = 1; | 136 let x = 1; |
142 outer: { | 137 outer: { |
143 inner: { | 138 inner: { |
144 let y = 2; | 139 let y = 2; |
145 function f() { return x + y; } | 140 function f() { return x + y; } |
146 if (y) break outer; | 141 if (y) break outer; |
147 y = 3; | 142 y = 3; |
148 } | 143 } |
149 } | 144 } |
150 x = 4; | 145 x = 4; |
151 " | 146 " |
152 frame size: 6 | 147 frame size: 6 |
153 parameter count: 1 | 148 parameter count: 1 |
154 bytecode array length: 127 | 149 bytecode array length: 115 |
155 bytecodes: [ | 150 bytecodes: [ |
156 B(CreateFunctionContext), U8(1), | 151 B(CreateFunctionContext), U8(1), |
157 B(PushContext), R(2), | 152 B(PushContext), R(2), |
158 B(LdaTheHole), | 153 B(LdaTheHole), |
159 B(StaContextSlot), R(context), U8(4), | 154 B(StaContextSlot), R(context), U8(4), |
160 /* 30 E> */ B(StackCheck), | 155 /* 30 E> */ B(StackCheck), |
161 /* 42 S> */ B(LdaSmi), U8(1), | 156 /* 42 S> */ B(LdaSmi), U8(1), |
162 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 157 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
163 B(LdaConstant), U8(0), | 158 B(LdaConstant), U8(0), |
164 B(Star), R(4), | 159 B(Star), R(4), |
165 B(Mov), R(closure), R(5), | 160 B(Mov), R(closure), R(5), |
166 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), | 161 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), |
167 B(PushContext), R(3), | 162 B(PushContext), R(3), |
168 B(LdaTheHole), | 163 B(LdaTheHole), |
169 B(StaContextSlot), R(context), U8(4), | 164 B(StaContextSlot), R(context), U8(4), |
170 B(CreateClosure), U8(1), U8(2), | 165 B(CreateClosure), U8(1), U8(2), |
171 B(Star), R(0), | 166 B(Star), R(0), |
172 /* 76 S> */ B(LdaSmi), U8(2), | 167 /* 76 S> */ B(LdaSmi), U8(2), |
173 /* 76 E> */ B(StaContextSlot), R(context), U8(4), | 168 /* 76 E> */ B(StaContextSlot), R(context), U8(4), |
174 B(Ldar), R(0), | 169 B(Mov), R(0), R(1), |
| 170 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), |
175 B(JumpIfNotHole), U8(11), | 171 B(JumpIfNotHole), U8(11), |
176 B(LdaConstant), U8(2), | 172 B(LdaConstant), U8(2), |
177 B(Star), R(4), | 173 B(Star), R(4), |
178 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 174 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
179 B(Star), R(1), | |
180 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), | |
181 B(JumpIfNotHole), U8(11), | |
182 B(LdaConstant), U8(3), | |
183 B(Star), R(4), | |
184 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
185 B(JumpIfToBooleanFalse), U8(6), | 175 B(JumpIfToBooleanFalse), U8(6), |
186 /* 125 S> */ B(PopContext), R(3), | 176 /* 125 S> */ B(PopContext), R(3), |
187 B(Jump), U8(27), | 177 B(Jump), U8(27), |
188 /* 142 S> */ B(LdaSmi), U8(3), | 178 /* 142 S> */ B(LdaSmi), U8(3), |
189 B(Star), R(4), | 179 B(Star), R(4), |
190 /* 144 E> */ B(LdaContextSlot), R(context), U8(4), | 180 /* 144 E> */ B(LdaContextSlot), R(context), U8(4), |
191 B(JumpIfNotHole), U8(11), | 181 B(JumpIfNotHole), U8(11), |
192 B(LdaConstant), U8(3), | 182 B(LdaConstant), U8(2), |
193 B(Star), R(5), | 183 B(Star), R(5), |
194 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 184 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
195 B(Ldar), R(4), | 185 B(Ldar), R(4), |
196 B(StaContextSlot), R(context), U8(4), | 186 B(StaContextSlot), R(context), U8(4), |
197 B(PopContext), R(3), | 187 B(PopContext), R(3), |
198 /* 155 S> */ B(LdaSmi), U8(4), | 188 /* 155 S> */ B(LdaSmi), U8(4), |
199 B(Star), R(4), | 189 B(Star), R(4), |
200 /* 157 E> */ B(LdaContextSlot), R(context), U8(4), | 190 /* 157 E> */ B(LdaContextSlot), R(context), U8(4), |
201 B(JumpIfNotHole), U8(11), | 191 B(JumpIfNotHole), U8(11), |
202 B(LdaConstant), U8(4), | 192 B(LdaConstant), U8(3), |
203 B(Star), R(5), | 193 B(Star), R(5), |
204 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 194 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
205 B(Ldar), R(4), | 195 B(Ldar), R(4), |
206 B(StaContextSlot), R(context), U8(4), | 196 B(StaContextSlot), R(context), U8(4), |
207 B(LdaUndefined), | 197 B(LdaUndefined), |
208 /* 162 S> */ B(Return), | 198 /* 162 S> */ B(Return), |
209 ] | 199 ] |
210 constant pool: [ | 200 constant pool: [ |
211 InstanceType::FIXED_ARRAY_TYPE, | 201 InstanceType::FIXED_ARRAY_TYPE, |
212 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 202 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
213 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 203 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
214 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 204 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
215 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | |
216 ] | 205 ] |
217 handlers: [ | 206 handlers: [ |
218 ] | 207 ] |
219 | 208 |
OLD | NEW |