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

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: Incorporated feedback. 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..1a8ff779ddd547880680ec4532ab81523ec29bd0 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,11 @@
class A {
int x;
- static final A a = new A();
+ const A() : this.x = 1;
- A(){}
+ static final A a = const A();
+
+
}
class WillNotOptimizeFieldAccess {

Powered by Google App Engine
This is Rietveld 408576698