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

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10949003: Revert r12491 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 const bool REPORT_EXCESS_RESOLUTION = false; 10 const bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 closureMapping.ClosureTask closureToClassMapper; 158 closureMapping.ClosureTask closureToClassMapper;
159 TypeCheckerTask checker; 159 TypeCheckerTask checker;
160 ti.TypesTask typesTask; 160 ti.TypesTask typesTask;
161 Backend backend; 161 Backend backend;
162 ConstantHandler constantHandler; 162 ConstantHandler constantHandler;
163 EnqueueTask enqueuer; 163 EnqueueTask enqueuer;
164 164
165 static const SourceString MAIN = const SourceString('main'); 165 static const SourceString MAIN = const SourceString('main');
166 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); 166 static const SourceString CALL_OPERATOR_NAME = const SourceString('call');
167 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); 167 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
168 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType');
169 static const SourceString START_ROOT_ISOLATE = 168 static const SourceString START_ROOT_ISOLATE =
170 const SourceString('startRootIsolate'); 169 const SourceString('startRootIsolate');
171 bool enabledNoSuchMethod = false; 170 bool enabledNoSuchMethod = false;
172 bool enabledRuntimeType = false;
173 171
174 Stopwatch progress; 172 Stopwatch progress;
175 173
176 static const int PHASE_SCANNING = 0; 174 static const int PHASE_SCANNING = 0;
177 static const int PHASE_RESOLVING = 1; 175 static const int PHASE_RESOLVING = 1;
178 static const int PHASE_COMPILING = 2; 176 static const int PHASE_COMPILING = 2;
179 static const int PHASE_RECOMPILING = 3; 177 static const int PHASE_RECOMPILING = 3;
180 int phase; 178 int phase;
181 179
182 bool compilationFailed = false; 180 bool compilationFailed = false;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 final endOffset = end.charOffset + end.slowCharCount; 941 final endOffset = end.charOffset + end.slowCharCount;
944 942
945 // [begin] and [end] might be the same for the same empty token. This 943 // [begin] and [end] might be the same for the same empty token. This
946 // happens for instance when scanning '$$'. 944 // happens for instance when scanning '$$'.
947 assert(endOffset >= beginOffset); 945 assert(endOffset >= beginOffset);
948 return f(beginOffset, endOffset); 946 return f(beginOffset, endOffset);
949 } 947 }
950 948
951 String toString() => 'SourceSpan($uri, $begin, $end)'; 949 String toString() => 'SourceSpan($uri, $begin, $end)';
952 } 950 }
OLDNEW
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698