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

Unified Diff: tests/language/issue11087_vm_test.dart

Issue 16423005: IfConverted should unuse inputs of the join it removes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/issue11087_vm_test.dart
diff --git a/tests/language/return_this_type_test.dart b/tests/language/issue11087_vm_test.dart
similarity index 53%
copy from tests/language/return_this_type_test.dart
copy to tests/language/issue11087_vm_test.dart
index d7ad7396b75adadc6c933958ce131bae7354ddd5..3dd71e1b3207df77977c59c178993ac6c938244a 100644
--- a/tests/language/return_this_type_test.dart
+++ b/tests/language/issue11087_vm_test.dart
@@ -2,17 +2,20 @@
// 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.
-// Make sure the engine does not infer the wrong type for [:A.foo:].
-
-import "package:expect/expect.dart";
+// Regression test for VM's IfConverted pass not keeping graph structure and
+// use lists in sync.
class A {
- foo() => this;
+ int x;
}
-class B extends A {
+f() {
+ var a = new A();
+ a.x = (true ? 2 : 4);
+ return a.x;
}
main() {
- Expect.isTrue(new B().foo() is B);
+ for (var i = 0; i < 10000; i++) f();
}
+
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698