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 = 1; return ++a; | 11 var a = 1; return ++a; |
13 " | 12 " |
14 frame size: 1 | 13 frame size: 1 |
15 parameter count: 1 | 14 parameter count: 1 |
16 bytecode array length: 10 | 15 bytecode array length: 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 102 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
104 B(Mov), R(1), R(0), | 103 B(Mov), R(1), R(0), |
105 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), | 104 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), |
106 B(ToNumber), R(2), | 105 B(ToNumber), R(2), |
107 B(Inc), U8(5), | 106 B(Inc), U8(5), |
108 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), | 107 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), |
109 B(Ldar), R(2), | 108 B(Ldar), R(2), |
110 /* 70 S> */ B(Return), | 109 /* 70 S> */ B(Return), |
111 ] | 110 ] |
112 constant pool: [ | 111 constant pool: [ |
113 InstanceType::FIXED_ARRAY_TYPE, | 112 FIXED_ARRAY_TYPE, |
114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 113 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
115 ] | 114 ] |
116 handlers: [ | 115 handlers: [ |
117 ] | 116 ] |
118 | 117 |
119 --- | 118 --- |
120 snippet: " | 119 snippet: " |
121 var a = { val: 1 }; return --a.val; | 120 var a = { val: 1 }; return --a.val; |
122 " | 121 " |
123 frame size: 2 | 122 frame size: 2 |
124 parameter count: 1 | 123 parameter count: 1 |
125 bytecode array length: 20 | 124 bytecode array length: 20 |
126 bytecodes: [ | 125 bytecodes: [ |
127 /* 30 E> */ B(StackCheck), | 126 /* 30 E> */ B(StackCheck), |
128 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), | 127 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1), |
129 B(Mov), R(1), R(0), | 128 B(Mov), R(1), R(0), |
130 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), | 129 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1), |
131 B(Dec), U8(5), | 130 B(Dec), U8(5), |
132 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), | 131 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3), |
133 /* 70 S> */ B(Return), | 132 /* 70 S> */ B(Return), |
134 ] | 133 ] |
135 constant pool: [ | 134 constant pool: [ |
136 InstanceType::FIXED_ARRAY_TYPE, | 135 FIXED_ARRAY_TYPE, |
137 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 136 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], |
138 ] | 137 ] |
139 handlers: [ | 138 handlers: [ |
140 ] | 139 ] |
141 | 140 |
142 --- | 141 --- |
143 snippet: " | 142 snippet: " |
144 var name = 'var'; var a = { val: 1 }; return a[name]--; | 143 var name = 'var'; var a = { val: 1 }; return a[name]--; |
145 " | 144 " |
146 frame size: 5 | 145 frame size: 5 |
147 parameter count: 1 | 146 parameter count: 1 |
148 bytecode array length: 29 | 147 bytecode array length: 29 |
149 bytecodes: [ | 148 bytecodes: [ |
150 /* 30 E> */ B(StackCheck), | 149 /* 30 E> */ B(StackCheck), |
151 /* 45 S> */ B(LdaConstant), U8(0), | 150 /* 45 S> */ B(LdaConstant), U8(0), |
152 B(Star), R(0), | 151 B(Star), R(0), |
153 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), | 152 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), |
154 B(Mov), R(2), R(1), | 153 B(Mov), R(2), R(1), |
155 /* 72 S> */ B(Ldar), R(0), | 154 /* 72 S> */ B(Ldar), R(0), |
156 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), | 155 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(1), |
157 B(ToNumber), R(4), | 156 B(ToNumber), R(4), |
158 B(Dec), U8(5), | 157 B(Dec), U8(5), |
159 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), | 158 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), |
160 B(Ldar), R(4), | 159 B(Ldar), R(4), |
161 /* 90 S> */ B(Return), | 160 /* 90 S> */ B(Return), |
162 ] | 161 ] |
163 constant pool: [ | 162 constant pool: [ |
164 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 163 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"], |
165 InstanceType::FIXED_ARRAY_TYPE, | 164 FIXED_ARRAY_TYPE, |
166 ] | 165 ] |
167 handlers: [ | 166 handlers: [ |
168 ] | 167 ] |
169 | 168 |
170 --- | 169 --- |
171 snippet: " | 170 snippet: " |
172 var name = 'var'; var a = { val: 1 }; return ++a[name]; | 171 var name = 'var'; var a = { val: 1 }; return ++a[name]; |
173 " | 172 " |
174 frame size: 3 | 173 frame size: 3 |
175 parameter count: 1 | 174 parameter count: 1 |
176 bytecode array length: 25 | 175 bytecode array length: 25 |
177 bytecodes: [ | 176 bytecodes: [ |
178 /* 30 E> */ B(StackCheck), | 177 /* 30 E> */ B(StackCheck), |
179 /* 45 S> */ B(LdaConstant), U8(0), | 178 /* 45 S> */ B(LdaConstant), U8(0), |
180 B(Star), R(0), | 179 B(Star), R(0), |
181 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), | 180 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(2), |
182 B(Mov), R(2), R(1), | 181 B(Mov), R(2), R(1), |
183 /* 72 S> */ B(Ldar), R(0), | 182 /* 72 S> */ B(Ldar), R(0), |
184 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1), | 183 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(1), |
185 B(Inc), U8(5), | 184 B(Inc), U8(5), |
186 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), | 185 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3), |
187 /* 90 S> */ B(Return), | 186 /* 90 S> */ B(Return), |
188 ] | 187 ] |
189 constant pool: [ | 188 constant pool: [ |
190 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 189 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"], |
191 InstanceType::FIXED_ARRAY_TYPE, | 190 FIXED_ARRAY_TYPE, |
192 ] | 191 ] |
193 handlers: [ | 192 handlers: [ |
194 ] | 193 ] |
195 | 194 |
196 --- | 195 --- |
197 snippet: " | 196 snippet: " |
198 var a = 1; var b = function() { return a }; return ++a; | 197 var a = 1; var b = function() { return a }; return ++a; |
199 " | 198 " |
200 frame size: 2 | 199 frame size: 2 |
201 parameter count: 1 | 200 parameter count: 1 |
202 bytecode array length: 24 | 201 bytecode array length: 24 |
203 bytecodes: [ | 202 bytecodes: [ |
204 B(CreateFunctionContext), U8(1), | 203 B(CreateFunctionContext), U8(1), |
205 B(PushContext), R(1), | 204 B(PushContext), R(1), |
206 /* 30 E> */ B(StackCheck), | 205 /* 30 E> */ B(StackCheck), |
207 /* 42 S> */ B(LdaSmi), U8(1), | 206 /* 42 S> */ B(LdaSmi), U8(1), |
208 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 207 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
209 /* 53 S> */ B(CreateClosure), U8(0), U8(2), | 208 /* 53 S> */ B(CreateClosure), U8(0), U8(2), |
210 B(Star), R(0), | 209 B(Star), R(0), |
211 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), | 210 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), |
212 B(Inc), U8(1), | 211 B(Inc), U8(1), |
213 /* 87 E> */ B(StaContextSlot), R(context), U8(4), | 212 /* 87 E> */ B(StaContextSlot), R(context), U8(4), |
214 /* 90 S> */ B(Return), | 213 /* 90 S> */ B(Return), |
215 ] | 214 ] |
216 constant pool: [ | 215 constant pool: [ |
217 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 216 SHARED_FUNCTION_INFO_TYPE, |
218 ] | 217 ] |
219 handlers: [ | 218 handlers: [ |
220 ] | 219 ] |
221 | 220 |
222 --- | 221 --- |
223 snippet: " | 222 snippet: " |
224 var a = 1; var b = function() { return a }; return a--; | 223 var a = 1; var b = function() { return a }; return a--; |
225 " | 224 " |
226 frame size: 3 | 225 frame size: 3 |
227 parameter count: 1 | 226 parameter count: 1 |
228 bytecode array length: 28 | 227 bytecode array length: 28 |
229 bytecodes: [ | 228 bytecodes: [ |
230 B(CreateFunctionContext), U8(1), | 229 B(CreateFunctionContext), U8(1), |
231 B(PushContext), R(1), | 230 B(PushContext), R(1), |
232 /* 30 E> */ B(StackCheck), | 231 /* 30 E> */ B(StackCheck), |
233 /* 42 S> */ B(LdaSmi), U8(1), | 232 /* 42 S> */ B(LdaSmi), U8(1), |
234 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 233 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
235 /* 53 S> */ B(CreateClosure), U8(0), U8(2), | 234 /* 53 S> */ B(CreateClosure), U8(0), U8(2), |
236 B(Star), R(0), | 235 B(Star), R(0), |
237 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), | 236 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), |
238 B(ToNumber), R(2), | 237 B(ToNumber), R(2), |
239 B(Dec), U8(1), | 238 B(Dec), U8(1), |
240 /* 86 E> */ B(StaContextSlot), R(context), U8(4), | 239 /* 86 E> */ B(StaContextSlot), R(context), U8(4), |
241 B(Ldar), R(2), | 240 B(Ldar), R(2), |
242 /* 90 S> */ B(Return), | 241 /* 90 S> */ B(Return), |
243 ] | 242 ] |
244 constant pool: [ | 243 constant pool: [ |
245 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 244 SHARED_FUNCTION_INFO_TYPE, |
246 ] | 245 ] |
247 handlers: [ | 246 handlers: [ |
248 ] | 247 ] |
249 | 248 |
250 --- | 249 --- |
251 snippet: " | 250 snippet: " |
252 var idx = 1; var a = [1, 2]; return a[idx++] = 2; | 251 var idx = 1; var a = [1, 2]; return a[idx++] = 2; |
253 " | 252 " |
254 frame size: 4 | 253 frame size: 4 |
255 parameter count: 1 | 254 parameter count: 1 |
256 bytecode array length: 26 | 255 bytecode array length: 26 |
257 bytecodes: [ | 256 bytecodes: [ |
258 /* 30 E> */ B(StackCheck), | 257 /* 30 E> */ B(StackCheck), |
259 /* 44 S> */ B(LdaSmi), U8(1), | 258 /* 44 S> */ B(LdaSmi), U8(1), |
260 B(Star), R(0), | 259 B(Star), R(0), |
261 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 260 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
262 B(Star), R(1), | 261 B(Star), R(1), |
263 /* 63 S> */ B(Ldar), R(0), | 262 /* 63 S> */ B(Ldar), R(0), |
264 B(ToNumber), R(3), | 263 B(ToNumber), R(3), |
265 B(Inc), U8(1), | 264 B(Inc), U8(1), |
266 B(Star), R(0), | 265 B(Star), R(0), |
267 B(LdaSmi), U8(2), | 266 B(LdaSmi), U8(2), |
268 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(2), | 267 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(2), |
269 /* 84 S> */ B(Return), | 268 /* 84 S> */ B(Return), |
270 ] | 269 ] |
271 constant pool: [ | 270 constant pool: [ |
272 InstanceType::FIXED_ARRAY_TYPE, | 271 FIXED_ARRAY_TYPE, |
273 ] | 272 ] |
274 handlers: [ | 273 handlers: [ |
275 ] | 274 ] |
276 | 275 |
OLD | NEW |