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

Unified Diff: tests/language/deopt_inlined_function_test.dart

Issue 10979078: Revert several inlining related changes. (Closed) Base URL: https://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
diff --git a/tests/language/deopt_inlined_function_test.dart b/tests/language/deopt_inlined_function_test.dart
index b0d88445bb857c1fc5760f08622d738a57734ef6..d4a5e84b8e8d4274af816ae921ef4b2b653af24d 100644
--- a/tests/language/deopt_inlined_function_test.dart
+++ b/tests/language/deopt_inlined_function_test.dart
@@ -1,7 +1,8 @@
// 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 from within an inlined function.
+// Test deoptimization caused by running code that did not collect type
+// feedback before.
class A {
deopt_here() => 1;
@@ -29,5 +30,5 @@ main() {
for (var i = 0; i < 2000; i++) foo(7);
Expect.equals(42, foo(2));
obj = new B();
- Expect.equals(42, foo(3)); // <-- deoptimization via foo/bar/obj.deopt_here
+ Expect.equals(42, foo(3));
}
« 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