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

Side by Side Diff: test/mjsunit/allocation-site-info.js

Issue 2829093004: [turbofan] Avoid going through ArgumentsAdaptorTrampoline for CSA/C++ builtins (Closed)
Patch Set: Add other files again 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
« no previous file with comments | « src/interface-descriptors.h ('k') | test/mjsunit/regress/regress-709782.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 %ClearFunctionFeedback(instanceof_check); 353 %ClearFunctionFeedback(instanceof_check);
354 instanceof_check(Array); 354 instanceof_check(Array);
355 instanceof_check(Array); 355 instanceof_check(Array);
356 %OptimizeFunctionOnNextCall(instanceof_check); 356 %OptimizeFunctionOnNextCall(instanceof_check);
357 instanceof_check(Array); 357 instanceof_check(Array);
358 assertOptimized(instanceof_check); 358 assertOptimized(instanceof_check);
359 359
360 instanceof_check(realmBArray); 360 instanceof_check(realmBArray);
361 assertUnoptimized(instanceof_check); 361 assertUnoptimized(instanceof_check);
362 362
363 // Perform a gc because without it the test below can experience an
364 // allocation failure at an inconvenient point. Allocation mementos get
365 // cleared on gc, and they can't deliver elements kind feedback when that
366 // happens.
367 gc();
368
363 // Case: make sure nested arrays benefit from allocation site feedback as 369 // Case: make sure nested arrays benefit from allocation site feedback as
364 // well. 370 // well.
365 (function() { 371 (function() {
366 // Make sure we handle nested arrays 372 // Make sure we handle nested arrays
367 function get_nested_literal() { 373 function get_nested_literal() {
368 var literal = [[1,2,3,4], [2], [3]]; 374 var literal = [[1,2,3,4], [2], [3]];
369 return literal; 375 return literal;
370 } 376 }
371 377
372 obj = get_nested_literal(); 378 obj = get_nested_literal();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 var a = make(); 489 var a = make();
484 assertKind(elements_kind.fast_smi_only, a); 490 assertKind(elements_kind.fast_smi_only, a);
485 491
486 // Make the keyed store ic go generic. 492 // Make the keyed store ic go generic.
487 foo("howdy", 1); 493 foo("howdy", 1);
488 foo(a, 3.5); 494 foo(a, 3.5);
489 495
490 var b = make(); 496 var b = make();
491 assertKind(elements_kind.fast_double, b); 497 assertKind(elements_kind.fast_double, b);
492 })(); 498 })();
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | test/mjsunit/regress/regress-709782.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698