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

Unified Diff: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java

Issue 8523034: Compile Time Constants cycle check (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added new test to exercise code that was throwing ICE Created 9 years, 1 month 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/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
diff --git a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
index ffba0dcc971560b500336cb50963df1463a5eef5..c0b946a7f970c9888f3784b161f9e3369bfe38da 100644
--- a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
+++ b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
@@ -10,6 +10,7 @@ import com.google.dart.compiler.backend.isolate.DartIsolateStubGenerator;
import com.google.dart.compiler.backend.js.ClosureJsBackend;
import com.google.dart.compiler.backend.js.JavascriptBackend;
import com.google.dart.compiler.metrics.CompilerMetrics;
+import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
import com.google.dart.compiler.resolver.Resolver;
import com.google.dart.compiler.type.TypeAnalyzer;
@@ -120,6 +121,7 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
@Override
public List<DartCompilationPhase> getPhases() {
List<DartCompilationPhase> phases = new ArrayList<DartCompilationPhase>();
+ phases.add(new CompileTimeConstantAnalyzer.Phase());
phases.add(new Resolver.Phase());
phases.add(new TypeAnalyzer());
return phases;

Powered by Google App Engine
This is Rietveld 408576698