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

Unified Diff: test/mjsunit/array-constructor-feedback.js

Issue 2821273002: [turbofan] Inline Array constructor calls with multiple parameters. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-constructor-feedback.js
diff --git a/test/mjsunit/array-constructor-feedback.js b/test/mjsunit/array-constructor-feedback.js
index 45ea0d53e107077bda59080854d9e375cd6ad7b0..4cbd7e7e60a4701d62e7634832b09790aa0d4680 100644
--- a/test/mjsunit/array-constructor-feedback.js
+++ b/test/mjsunit/array-constructor-feedback.js
@@ -119,10 +119,13 @@ function assertKind(expected, obj, name_opt) {
return new Array(one, two, three);
}
- barn(1, 2, 3);
- barn(1, 2, 3);
+ a = barn(1, 2, 3);
+ a[1] = "a string";
+ a = barn(1, 2, 3);
+ assertKind(elements_kind.fast, a);
%OptimizeFunctionOnNextCall(barn);
- barn(1, 2, 3);
+ a = barn(1, 2, 3);
+ assertKind(elements_kind.fast, a);
assertOptimized(barn);
a = barn(1, "oops", 3);
assertOptimized(barn);
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698