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

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: Renamed CompileTimeConstTest to CTConst2Test 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..c8ade50f25f3e0a789967eeca640b58b217f357f 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;
+ const A() : this.x = 1;
ngeoffray 2011/10/14 09:26:56 Why changing this file? I would keep it as is, and
zundel 2011/10/14 10:04:21 Part of this change is to enforce the initializati
ngeoffray 2011/10/14 10:33:42 I'm not sure I follow. This file looks like valid
floitsch 2011/10/14 14:36:58 Maybe because the "static final A a = new A() (bel
zundel 2011/10/14 20:59:52 It seems to me that if you add together all the pl
zundel 2011/10/14 20:59:52 Done.
+
static final A a = new A();
- A(){}
+
}
class WillNotOptimizeFieldAccess {

Powered by Google App Engine
This is Rietveld 408576698