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

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

Issue 12210142: Implement is-checks against type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 10 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 static const SourceString CREATE_INVOCATION_MIRROR = 316 static const SourceString CREATE_INVOCATION_MIRROR =
317 const SourceString('createInvocationMirror'); 317 const SourceString('createInvocationMirror');
318 static const SourceString INVOKE_ON = const SourceString('invokeOn'); 318 static const SourceString INVOKE_ON = const SourceString('invokeOn');
319 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType'); 319 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType');
320 static const SourceString START_ROOT_ISOLATE = 320 static const SourceString START_ROOT_ISOLATE =
321 const SourceString('startRootIsolate'); 321 const SourceString('startRootIsolate');
322 bool enabledNoSuchMethod = false; 322 bool enabledNoSuchMethod = false;
323 bool enabledRuntimeType = false; 323 bool enabledRuntimeType = false;
324 bool enabledFunctionApply = false; 324 bool enabledFunctionApply = false;
325 bool enabledInvokeOn = false; 325 bool enabledInvokeOn = false;
326 bool hasVariableTypecheck = false;
326 327
327 Stopwatch progress; 328 Stopwatch progress;
328 329
329 static const int PHASE_SCANNING = 0; 330 static const int PHASE_SCANNING = 0;
330 static const int PHASE_RESOLVING = 1; 331 static const int PHASE_RESOLVING = 1;
331 static const int PHASE_COMPILING = 2; 332 static const int PHASE_COMPILING = 2;
332 int phase; 333 int phase;
333 334
334 bool compilationFailed = false; 335 bool compilationFailed = false;
335 336
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1149
1149 void close() {} 1150 void close() {}
1150 1151
1151 toString() => name; 1152 toString() => name;
1152 1153
1153 /// Convenience method for getting an [api.CompilerOutputProvider]. 1154 /// Convenience method for getting an [api.CompilerOutputProvider].
1154 static NullSink outputProvider(String name, String extension) { 1155 static NullSink outputProvider(String name, String extension) {
1155 return new NullSink('$name.$extension'); 1156 return new NullSink('$name.$extension');
1156 } 1157 }
1157 } 1158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698