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

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

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: fixing compilation issue Created 3 years, 7 months 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 return { }; 10 return { };
11 " 11 "
12 frame size: 1 12 frame size: 1
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 9 14 bytecode array length: 9
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(35), R(0), 17 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(67), R(0),
18 B(Ldar), R(0), 18 B(Ldar), R(0),
19 /* 46 S> */ B(Return), 19 /* 46 S> */ B(Return),
20 ] 20 ]
21 constant pool: [ 21 constant pool: [
22 FIXED_ARRAY_TYPE, 22 FIXED_ARRAY_TYPE,
23 ] 23 ]
24 handlers: [ 24 handlers: [
25 ] 25 ]
26 26
27 --- 27 ---
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 constant pool: [ 255 constant pool: [
256 FIXED_ARRAY_TYPE, 256 FIXED_ARRAY_TYPE,
257 ] 257 ]
258 handlers: [ 258 handlers: [
259 ] 259 ]
260 260
261 --- 261 ---
262 snippet: " 262 snippet: "
263 return { __proto__: null }; 263 return { __proto__: null };
264 " 264 "
265 frame size: 3 265 frame size: 1
266 parameter count: 1 266 parameter count: 1
267 bytecode array length: 20 267 bytecode array length: 9
268 bytecodes: [ 268 bytecodes: [
269 /* 30 E> */ B(StackCheck), 269 /* 30 E> */ B(StackCheck),
270 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(35), R(0), 270 /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(75), R(0),
271 B(LdaNull), 271 B(Ldar), R(0),
272 B(Star), R(2),
273 B(Mov), R(0), R(1),
274 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2) ,
275 B(Ldar), R(1),
276 /* 62 S> */ B(Return), 272 /* 62 S> */ B(Return),
277 ] 273 ]
278 constant pool: [ 274 constant pool: [
279 FIXED_ARRAY_TYPE, 275 FIXED_ARRAY_TYPE,
280 ] 276 ]
281 handlers: [ 277 handlers: [
282 ] 278 ]
283 279
284 --- 280 ---
285 snippet: " 281 snippet: "
286 var a = 'test'; return { [a]: 1 }; 282 var a = 'test'; return { [a]: 1 };
287 " 283 "
288 frame size: 4 284 frame size: 4
289 parameter count: 1 285 parameter count: 1
290 bytecode array length: 24 286 bytecode array length: 24
291 bytecodes: [ 287 bytecodes: [
292 /* 30 E> */ B(StackCheck), 288 /* 30 E> */ B(StackCheck),
293 /* 42 S> */ B(LdaConstant), U8(0), 289 /* 42 S> */ B(LdaConstant), U8(0),
294 B(Star), R(0), 290 B(Star), R(0),
295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(1), 291 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(67), R(1),
296 /* 60 E> */ B(ToName), R(2), 292 /* 60 E> */ B(ToName), R(2),
297 B(LdaSmi), I8(1), 293 B(LdaSmi), I8(1),
298 B(Star), R(3), 294 B(Star), R(3),
299 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(3), 295 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(3),
300 B(Ldar), R(1), 296 B(Ldar), R(1),
301 /* 69 S> */ B(Return), 297 /* 69 S> */ B(Return),
302 ] 298 ]
303 constant pool: [ 299 constant pool: [
304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], 300 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
305 FIXED_ARRAY_TYPE, 301 FIXED_ARRAY_TYPE,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 snippet: " 335 snippet: "
340 var a = 'test'; return { [a]: 1, __proto__: {} }; 336 var a = 'test'; return { [a]: 1, __proto__: {} };
341 " 337 "
342 frame size: 5 338 frame size: 5
343 parameter count: 1 339 parameter count: 1
344 bytecode array length: 40 340 bytecode array length: 40
345 bytecodes: [ 341 bytecodes: [
346 /* 30 E> */ B(StackCheck), 342 /* 30 E> */ B(StackCheck),
347 /* 42 S> */ B(LdaConstant), U8(0), 343 /* 42 S> */ B(LdaConstant), U8(0),
348 B(Star), R(0), 344 B(Star), R(0),
349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(3), U8(35), R(1), 345 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(3), U8(67), R(1),
350 /* 60 E> */ B(ToName), R(2), 346 /* 60 E> */ B(ToName), R(2),
351 B(LdaSmi), I8(1), 347 B(LdaSmi), I8(1),
352 B(Star), R(3), 348 B(Star), R(3),
353 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4), 349 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4),
354 B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(4), 350 B(CreateObjectLiteral), U8(1), U8(2), U8(67), R(4),
355 B(Mov), R(1), R(2), 351 B(Mov), R(1), R(2),
356 B(Mov), R(4), R(3), 352 B(Mov), R(4), R(3),
357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) , 353 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) ,
358 B(Ldar), R(2), 354 B(Ldar), R(2),
359 /* 84 S> */ B(Return), 355 /* 84 S> */ B(Return),
360 ] 356 ]
361 constant pool: [ 357 constant pool: [
362 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], 358 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
363 FIXED_ARRAY_TYPE, 359 FIXED_ARRAY_TYPE,
364 ] 360 ]
365 handlers: [ 361 handlers: [
366 ] 362 ]
367 363
368 --- 364 ---
369 snippet: " 365 snippet: "
370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; 366 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
371 " 367 "
372 frame size: 6 368 frame size: 6
373 parameter count: 1 369 parameter count: 1
374 bytecode array length: 63 370 bytecode array length: 63
375 bytecodes: [ 371 bytecodes: [
376 /* 30 E> */ B(StackCheck), 372 /* 30 E> */ B(StackCheck),
377 /* 42 S> */ B(LdaConstant), U8(0), 373 /* 42 S> */ B(LdaConstant), U8(0),
378 B(Star), R(0), 374 B(Star), R(0),
379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(35), R(1), 375 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(67), R(1),
380 /* 60 E> */ B(ToName), R(2), 376 /* 60 E> */ B(ToName), R(2),
381 B(LdaConstant), U8(2), 377 B(LdaConstant), U8(2),
382 B(Star), R(3), 378 B(Star), R(3),
383 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5), 379 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5),
384 B(LdaConstant), U8(3), 380 B(LdaConstant), U8(3),
385 B(Star), R(3), 381 B(Star), R(3),
386 B(CreateClosure), U8(4), U8(2), U8(2), 382 B(CreateClosure), U8(4), U8(2), U8(2),
387 B(Star), R(4), 383 B(Star), R(4),
388 B(LdaZero), 384 B(LdaZero),
389 B(Star), R(5), 385 B(Star), R(5),
(...skipping 13 matching lines...) Expand all
403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], 399 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
404 FIXED_ARRAY_TYPE, 400 FIXED_ARRAY_TYPE,
405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 401 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 402 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
407 SHARED_FUNCTION_INFO_TYPE, 403 SHARED_FUNCTION_INFO_TYPE,
408 SHARED_FUNCTION_INFO_TYPE, 404 SHARED_FUNCTION_INFO_TYPE,
409 ] 405 ]
410 handlers: [ 406 handlers: [
411 ] 407 ]
412 408
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698