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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 57873002: Build new IR for functions returning a constant (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index 067ee8832462ed521dcf011f14cf57bf43853467..5d75d0bf754fc538f21e5bc2bf8605507462072c 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -517,7 +517,8 @@ abstract class Compiler implements DiagnosticListener {
rethrow;
} catch (ex, s) {
if (hasCrashed) rethrow;
- String message = 'The compiler crashed: ${tryToString(ex)}.';
+ // @lry debug
+ String message = 'The compiler crashed: ${tryToString(ex)}.\n${ex.stackTrace}';
kasperl 2013/11/06 08:30:04 Long line.
lukas 2013/11/06 11:36:08 will be removed
try {
unhandledExceptionOnElement(element, s, message);
} catch (doubleFault) {
@@ -539,6 +540,7 @@ abstract class Compiler implements DiagnosticListener {
ResolverTask resolver;
closureMapping.ClosureTask closureToClassMapper;
TypeCheckerTask checker;
+ IrBuilderTask irBuilder;
ti.TypesTask typesTask;
Backend backend;
ConstantHandler constantHandler;
@@ -651,6 +653,7 @@ abstract class Compiler implements DiagnosticListener {
resolver = new ResolverTask(this),
closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer),
checker = new TypeCheckerTask(this),
+ irBuilder = new IrBuilderTask(this),
typesTask = new ti.TypesTask(this),
constantHandler = new ConstantHandler(this, backend.constantSystem),
deferredLoadTask = new DeferredLoadTask(this),
@@ -1101,6 +1104,9 @@ abstract class Compiler implements DiagnosticListener {
deferredLoadTask.onResolutionComplete(main);
+ log('Building IR...');
+ irBuilder.buildNodes();
+
log('Inferring types...');
typesTask.onResolutionComplete(main);

Powered by Google App Engine
This is Rietveld 408576698