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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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: compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
index 278ead8fc4e2c14c52cc80e9d203f347a3a27a67..d27283335df06ecd00589a37590ce9ee4c2768d5 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/testFieldAccessExprOpt.dart
@@ -5,9 +5,9 @@
class A {
int x;
- static final A a = new A();
+ const A() : this.x = 1;
- A(){}
+ static final A a = const A();
ngeoffray 2011/10/17 10:59:38 Any reason for reordering the lines?
}
class WillNotOptimizeFieldAccess {

Powered by Google App Engine
This is Rietveld 408576698