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

Unified Diff: tests/language/deopt_inlined_function_test.dart

Issue 11029002: Revert r13022 (revert inlining of methods with control flow), Review URL: https://codereview.chromi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/deopt_inlined_function_test.dart
===================================================================
--- tests/language/deopt_inlined_function_test.dart (revision 13077)
+++ tests/language/deopt_inlined_function_test.dart (working copy)
@@ -1,8 +1,7 @@
// Copyright (c) 2012, 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.
-// Test deoptimization caused by running code that did not collect type
-// feedback before.
+// Test deoptimization from within an inlined function.
class A {
deopt_here() => 1;
@@ -30,5 +29,5 @@
for (var i = 0; i < 2000; i++) foo(7);
Expect.equals(42, foo(2));
obj = new B();
- Expect.equals(42, foo(3));
+ Expect.equals(42, foo(3)); // <-- deoptimization via foo/bar/obj.deopt_here
}
« no previous file with comments | « tests/language/deopt_inlined_function_lazy_test.dart ('k') | tests/language/inline_effect_context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698