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

Unified Diff: tests/language/gvn_test.dart

Issue 10566021: Reapply change to GVN all HFieldGet instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/compiler/implementation/ssa/variable_allocator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/gvn_test.dart
diff --git a/tests/compiler/dart2js_extra/named_parameter_test.dart b/tests/language/gvn_test.dart
similarity index 61%
copy from tests/compiler/dart2js_extra/named_parameter_test.dart
copy to tests/language/gvn_test.dart
index 3e2da8b8e302dd90129603ee152c04d3e9e45e7c..b4859bf6d253f7806a775f0c2218c5be50df437c 100644
--- a/tests/compiler/dart2js_extra/named_parameter_test.dart
+++ b/tests/language/gvn_test.dart
@@ -3,14 +3,19 @@
// BSD-style license that can be found in the LICENSE file.
class A {
- foo([a, b]) {
- Expect.equals(0, a);
- Expect.equals(1, b);
+ int x = 0;
+
+ foo(i) {
+ var start = x;
+ do {
+ x++;
+ i++;
+ } while (i != 10);
}
}
main() {
- A a = new A();
- a.foo(a: 0, b: 1);
- a.foo(b: 1, a: 0);
+ var a = new A();
+ a.foo(0);
+ Expect.equals(10, a.x);
}
« no previous file with comments | « lib/compiler/implementation/ssa/variable_allocator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698