Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 377 static const SourceString MAIN = const SourceString('main'); | 377 static const SourceString MAIN = const SourceString('main'); |
| 378 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); | 378 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); |
| 379 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); | 379 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); |
| 380 static const int NO_SUCH_METHOD_ARG_COUNT = 1; | 380 static const int NO_SUCH_METHOD_ARG_COUNT = 1; |
| 381 static const SourceString CREATE_INVOCATION_MIRROR = | 381 static const SourceString CREATE_INVOCATION_MIRROR = |
| 382 const SourceString('createInvocationMirror'); | 382 const SourceString('createInvocationMirror'); |
| 383 static const SourceString INVOKE_ON = const SourceString('invokeOn'); | 383 static const SourceString INVOKE_ON = const SourceString('invokeOn'); |
| 384 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType'); | 384 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType'); |
| 385 static const SourceString START_ROOT_ISOLATE = | 385 static const SourceString START_ROOT_ISOLATE = |
| 386 const SourceString('startRootIsolate'); | 386 const SourceString('startRootIsolate'); |
| 387 | |
| 388 final Selector iteratorSelector = | |
|
kasperl
2013/04/10 08:34:54
Nice.
| |
| 389 new Selector.getter(const SourceString('iterator'), null); | |
| 390 final Selector currentSelector = | |
| 391 new Selector.getter(const SourceString('current'), null); | |
| 392 final Selector moveNextSelector = | |
| 393 new Selector.call(const SourceString('moveNext'), null, 0); | |
| 394 | |
| 387 bool enabledNoSuchMethod = false; | 395 bool enabledNoSuchMethod = false; |
| 388 bool enabledRuntimeType = false; | 396 bool enabledRuntimeType = false; |
| 389 bool enabledFunctionApply = false; | 397 bool enabledFunctionApply = false; |
| 390 bool enabledInvokeOn = false; | 398 bool enabledInvokeOn = false; |
| 391 | 399 |
| 392 Stopwatch progress; | 400 Stopwatch progress; |
| 393 | 401 |
| 394 static const int PHASE_SCANNING = 0; | 402 static const int PHASE_SCANNING = 0; |
| 395 static const int PHASE_RESOLVING = 1; | 403 static const int PHASE_RESOLVING = 1; |
| 396 static const int PHASE_DONE_RESOLVING = 2; | 404 static const int PHASE_DONE_RESOLVING = 2; |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1278 | 1286 |
| 1279 void close() {} | 1287 void close() {} |
| 1280 | 1288 |
| 1281 toString() => name; | 1289 toString() => name; |
| 1282 | 1290 |
| 1283 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1291 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1284 static NullSink outputProvider(String name, String extension) { | 1292 static NullSink outputProvider(String name, String extension) { |
| 1285 return new NullSink('$name.$extension'); | 1293 return new NullSink('$name.$extension'); |
| 1286 } | 1294 } |
| 1287 } | 1295 } |
| OLD | NEW |