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

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

Issue 2587393006: [runtime] Collect IC feedback in DefineDataPropertyInLiteral. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 { };
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 parameter count: 1 289 parameter count: 1
290 bytecode array length: 24 290 bytecode array length: 24
291 bytecodes: [ 291 bytecodes: [
292 /* 30 E> */ B(StackCheck), 292 /* 30 E> */ B(StackCheck),
293 /* 42 S> */ B(LdaConstant), U8(0), 293 /* 42 S> */ B(LdaConstant), U8(0),
294 B(Star), R(0), 294 B(Star), R(0),
295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), 295 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
296 /* 60 E> */ B(ToName), R(2), 296 /* 60 E> */ B(ToName), R(2),
297 B(LdaSmi), U8(1), 297 B(LdaSmi), U8(1),
298 B(Star), R(3), 298 B(Star), R(3),
299 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), 299 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2),
300 B(Ldar), R(1), 300 B(Ldar), R(1),
301 /* 69 S> */ B(Return), 301 /* 69 S> */ B(Return),
302 ] 302 ]
303 constant pool: [ 303 constant pool: [
304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], 304 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
305 FIXED_ARRAY_TYPE, 305 FIXED_ARRAY_TYPE,
306 ] 306 ]
307 handlers: [ 307 handlers: [
308 ] 308 ]
309 309
310 --- 310 ---
311 snippet: " 311 snippet: "
312 var a = 'test'; return { val: a, [a]: 1 }; 312 var a = 'test'; return { val: a, [a]: 1 };
313 " 313 "
314 frame size: 4 314 frame size: 4
315 parameter count: 1 315 parameter count: 1
316 bytecode array length: 28 316 bytecode array length: 28
317 bytecodes: [ 317 bytecodes: [
318 /* 30 E> */ B(StackCheck), 318 /* 30 E> */ B(StackCheck),
319 /* 42 S> */ B(LdaConstant), U8(0), 319 /* 42 S> */ B(LdaConstant), U8(0),
320 B(Star), R(0), 320 B(Star), R(0),
321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1), 321 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1),
322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2), 322 /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2),
323 /* 68 E> */ B(ToName), R(2), 323 /* 68 E> */ B(ToName), R(2),
324 B(LdaSmi), U8(1), 324 B(LdaSmi), U8(1),
325 B(Star), R(3), 325 B(Star), R(3),
326 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), 326 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4),
327 B(Ldar), R(1), 327 B(Ldar), R(1),
328 /* 77 S> */ B(Return), 328 /* 77 S> */ B(Return),
329 ] 329 ]
330 constant pool: [ 330 constant pool: [
331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], 331 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
332 FIXED_ARRAY_TYPE, 332 FIXED_ARRAY_TYPE,
333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 333 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
334 ] 334 ]
335 handlers: [ 335 handlers: [
336 ] 336 ]
337 337
338 --- 338 ---
339 snippet: " 339 snippet: "
340 var a = 'test'; return { [a]: 1, __proto__: {} }; 340 var a = 'test'; return { [a]: 1, __proto__: {} };
341 " 341 "
342 frame size: 5 342 frame size: 5
343 parameter count: 1 343 parameter count: 1
344 bytecode array length: 40 344 bytecode array length: 40
345 bytecodes: [ 345 bytecodes: [
346 /* 30 E> */ B(StackCheck), 346 /* 30 E> */ B(StackCheck),
347 /* 42 S> */ B(LdaConstant), U8(0), 347 /* 42 S> */ B(LdaConstant), U8(0),
348 B(Star), R(0), 348 B(Star), R(0),
349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1), 349 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1),
350 /* 60 E> */ B(ToName), R(2), 350 /* 60 E> */ B(ToName), R(2),
351 B(LdaSmi), U8(1), 351 B(LdaSmi), U8(1),
352 B(Star), R(3), 352 B(Star), R(3),
353 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), 353 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2),
354 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4), 354 B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4),
355 B(Mov), R(1), R(2), 355 B(Mov), R(1), R(2),
356 B(Mov), R(4), R(3), 356 B(Mov), R(4), R(3),
357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) , 357 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2) ,
358 B(Ldar), R(2), 358 B(Ldar), R(2),
359 /* 84 S> */ B(Return), 359 /* 84 S> */ B(Return),
360 ] 360 ]
361 constant pool: [ 361 constant pool: [
362 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"], 362 ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
363 FIXED_ARRAY_TYPE, 363 FIXED_ARRAY_TYPE,
364 ] 364 ]
365 handlers: [ 365 handlers: [
366 ] 366 ]
367 367
368 --- 368 ---
369 snippet: " 369 snippet: "
370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} }; 370 var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
371 " 371 "
372 frame size: 6 372 frame size: 6
373 parameter count: 1 373 parameter count: 1
374 bytecode array length: 61 374 bytecode array length: 61
375 bytecodes: [ 375 bytecodes: [
376 /* 30 E> */ B(StackCheck), 376 /* 30 E> */ B(StackCheck),
377 /* 42 S> */ B(LdaConstant), U8(0), 377 /* 42 S> */ B(LdaConstant), U8(0),
378 B(Star), R(0), 378 B(Star), R(0),
379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1), 379 /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
380 /* 60 E> */ B(ToName), R(2), 380 /* 60 E> */ B(ToName), R(2),
381 B(LdaConstant), U8(2), 381 B(LdaConstant), U8(2),
382 B(Star), R(3), 382 B(Star), R(3),
383 B(StaDataPropertyInLiteral), R(1), R(2), R(3), U8(0), 383 B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(2),
384 B(LdaConstant), U8(3), 384 B(LdaConstant), U8(3),
385 B(ToName), R(3), 385 B(ToName), R(3),
386 B(CreateClosure), U8(4), U8(2), 386 B(CreateClosure), U8(4), U8(2),
387 B(Star), R(4), 387 B(Star), R(4),
388 B(LdaZero), 388 B(LdaZero),
389 B(Star), R(5), 389 B(Star), R(5),
390 B(Mov), R(1), R(2), 390 B(Mov), R(1), R(2),
391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R( 2), U8(4), 391 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R( 2), U8(4),
392 B(LdaConstant), U8(3), 392 B(LdaConstant), U8(3),
393 B(ToName), R(3), 393 B(ToName), R(3),
394 B(CreateClosure), U8(5), U8(2), 394 B(CreateClosure), U8(5), U8(2),
395 B(Star), R(4), 395 B(Star), R(4),
396 B(LdaZero), 396 B(LdaZero),
397 B(Star), R(5), 397 B(Star), R(5),
398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R( 2), U8(4), 398 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R( 2), U8(4),
399 B(Ldar), R(2), 399 B(Ldar), R(2),
400 /* 99 S> */ B(Return), 400 /* 99 S> */ B(Return),
401 ] 401 ]
402 constant pool: [ 402 constant pool: [
403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"], 403 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
404 FIXED_ARRAY_TYPE, 404 FIXED_ARRAY_TYPE,
405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 405 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 406 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
407 SHARED_FUNCTION_INFO_TYPE, 407 SHARED_FUNCTION_INFO_TYPE,
408 SHARED_FUNCTION_INFO_TYPE, 408 SHARED_FUNCTION_INFO_TYPE,
409 ] 409 ]
410 handlers: [ 410 handlers: [
411 ] 411 ]
412 412
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698