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

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

Issue 10941031: Reapply 'Add runtimeType() to Object which returns canonicalized instances of Type'. (Closed) Base URL: https://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');
168 static const SourceString START_ROOT_ISOLATE = 169 static const SourceString START_ROOT_ISOLATE =
169 const SourceString('startRootIsolate'); 170 const SourceString('startRootIsolate');
170 bool enabledNoSuchMethod = false; 171 bool enabledNoSuchMethod = false;
172 bool enabledRuntimeType = false;
171 173
172 Stopwatch progress; 174 Stopwatch progress;
173 175
174 static const int PHASE_SCANNING = 0; 176 static const int PHASE_SCANNING = 0;
175 static const int PHASE_RESOLVING = 1; 177 static const int PHASE_RESOLVING = 1;
176 static const int PHASE_COMPILING = 2; 178 static const int PHASE_COMPILING = 2;
177 static const int PHASE_RECOMPILING = 3; 179 static const int PHASE_RECOMPILING = 3;
178 int phase; 180 int phase;
179 181
180 bool compilationFailed = false; 182 bool compilationFailed = false;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 final endOffset = end.charOffset + end.slowCharCount; 943 final endOffset = end.charOffset + end.slowCharCount;
942 944
943 // [begin] and [end] might be the same for the same empty token. This 945 // [begin] and [end] might be the same for the same empty token. This
944 // happens for instance when scanning '$$'. 946 // happens for instance when scanning '$$'.
945 assert(endOffset >= beginOffset); 947 assert(endOffset >= beginOffset);
946 return f(beginOffset, endOffset); 948 return f(beginOffset, endOffset);
947 } 949 }
948 950
949 String toString() => 'SourceSpan($uri, $begin, $end)'; 951 String toString() => 'SourceSpan($uri, $begin, $end)';
950 } 952 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698