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

Unified Diff: tests/language/vm/create_array_instr_deopt_test.dart

Issue 2900963008: Reapply "Shuffle around deopt id allocation... (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: tests/language/vm/create_array_instr_deopt_test.dart
diff --git a/tests/language/vm/create_array_instr_deopt_test.dart b/tests/language/vm/create_array_instr_deopt_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ed832842b8ead8e5a63f8c95a89f3d260f3966e8
--- /dev/null
+++ b/tests/language/vm/create_array_instr_deopt_test.dart
@@ -0,0 +1,20 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation --enable_inlining_annotations
+
+const NeverInline = "NeverInline";
+
+@NeverInline
+foo(n) {
+ try {
+ return new List(n);
+ } catch (e) {}
+}
+
+main() {
+ for (var i = 0; i < 20; i++) {
+ foo(5);
+ }
+ foo("");
+}
« runtime/vm/flow_graph_inliner.cc ('K') | « tests/language/vm/create_array_instr_deopt2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698