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

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

Issue 13866010: Correctly compile unresolved for-in loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Additional problems found during testing. Created 7 years, 8 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 =
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698