Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CountOperators.golden

Issue 2459513002: [ignition] Add bytecodes for loads/stores in the current context (Closed)
Patch Set: s/LocalContext/CurrentContext/g Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 var a = 1; return ++a; 10 var a = 1; return ++a;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ] 190 ]
191 handlers: [ 191 handlers: [
192 ] 192 ]
193 193
194 --- 194 ---
195 snippet: " 195 snippet: "
196 var a = 1; var b = function() { return a }; return ++a; 196 var a = 1; var b = function() { return a }; return ++a;
197 " 197 "
198 frame size: 2 198 frame size: 2
199 parameter count: 1 199 parameter count: 1
200 bytecode array length: 27 200 bytecode array length: 21
201 bytecodes: [ 201 bytecodes: [
202 B(CreateFunctionContext), U8(1), 202 B(CreateFunctionContext), U8(1),
203 B(PushContext), R(1), 203 B(PushContext), R(1),
204 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
205 /* 42 S> */ B(LdaSmi), U8(1), 205 /* 42 S> */ B(LdaSmi), U8(1),
206 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 206 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
207 /* 53 S> */ B(CreateClosure), U8(0), U8(2), 207 /* 53 S> */ B(CreateClosure), U8(0), U8(2),
208 B(Star), R(0), 208 B(Star), R(0),
209 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 209 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
210 B(Inc), U8(2), 210 B(Inc), U8(2),
211 /* 87 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 211 /* 87 E> */ B(StaCurrentContextSlot), U8(4),
212 /* 90 S> */ B(Return), 212 /* 90 S> */ B(Return),
213 ] 213 ]
214 constant pool: [ 214 constant pool: [
215 SHARED_FUNCTION_INFO_TYPE, 215 SHARED_FUNCTION_INFO_TYPE,
216 ] 216 ]
217 handlers: [ 217 handlers: [
218 ] 218 ]
219 219
220 --- 220 ---
221 snippet: " 221 snippet: "
222 var a = 1; var b = function() { return a }; return a--; 222 var a = 1; var b = function() { return a }; return a--;
223 " 223 "
224 frame size: 3 224 frame size: 3
225 parameter count: 1 225 parameter count: 1
226 bytecode array length: 31 226 bytecode array length: 25
227 bytecodes: [ 227 bytecodes: [
228 B(CreateFunctionContext), U8(1), 228 B(CreateFunctionContext), U8(1),
229 B(PushContext), R(1), 229 B(PushContext), R(1),
230 /* 30 E> */ B(StackCheck), 230 /* 30 E> */ B(StackCheck),
231 /* 42 S> */ B(LdaSmi), U8(1), 231 /* 42 S> */ B(LdaSmi), U8(1),
232 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 232 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
233 /* 53 S> */ B(CreateClosure), U8(0), U8(2), 233 /* 53 S> */ B(CreateClosure), U8(0), U8(2),
234 B(Star), R(0), 234 B(Star), R(0),
235 /* 78 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 235 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
236 B(ToNumber), R(2), 236 B(ToNumber), R(2),
237 B(Dec), U8(2), 237 B(Dec), U8(2),
238 /* 86 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 238 /* 86 E> */ B(StaCurrentContextSlot), U8(4),
239 B(Ldar), R(2), 239 B(Ldar), R(2),
240 /* 90 S> */ B(Return), 240 /* 90 S> */ B(Return),
241 ] 241 ]
242 constant pool: [ 242 constant pool: [
243 SHARED_FUNCTION_INFO_TYPE, 243 SHARED_FUNCTION_INFO_TYPE,
244 ] 244 ]
245 handlers: [ 245 handlers: [
246 ] 246 ]
247 247
248 --- 248 ---
(...skipping 16 matching lines...) Expand all
265 B(LdaSmi), U8(2), 265 B(LdaSmi), U8(2),
266 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3), 266 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(3),
267 /* 84 S> */ B(Return), 267 /* 84 S> */ B(Return),
268 ] 268 ]
269 constant pool: [ 269 constant pool: [
270 FIXED_ARRAY_TYPE, 270 FIXED_ARRAY_TYPE,
271 ] 271 ]
272 handlers: [ 272 handlers: [
273 ] 273 ]
274 274
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698