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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1087973002: Rewrite for-in loop as indexing loop for JavaScript indexable arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: retry Created 5 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 /// program uses a type literal. 557 /// program uses a type literal.
558 void onTypeLiteral(DartType type, Registry registry) {} 558 void onTypeLiteral(DartType type, Registry registry) {}
559 559
560 /// Called during resolution to notify to the backend that the 560 /// Called during resolution to notify to the backend that the
561 /// program has a catch statement with a stack trace. 561 /// program has a catch statement with a stack trace.
562 void onStackTraceInCatch(Registry registry) {} 562 void onStackTraceInCatch(Registry registry) {}
563 563
564 /// Register an is check to the backend. 564 /// Register an is check to the backend.
565 void onIsCheck(DartType type, Registry registry) {} 565 void onIsCheck(DartType type, Registry registry) {}
566 566
567 /// Called during resolution to notify to the backend that the
568 /// program has a for-in loop.
569 void onSyncForIn(Registry registry) {}
570
567 /// Register an as check to the backend. 571 /// Register an as check to the backend.
568 void onAsCheck(DartType type, Registry registry) {} 572 void onAsCheck(DartType type, Registry registry) {}
569 573
570 /// Registers that a type variable bounds check might occur at runtime. 574 /// Registers that a type variable bounds check might occur at runtime.
571 void onTypeVariableBoundCheck(Registry registry) {} 575 void onTypeVariableBoundCheck(Registry registry) {}
572 576
573 /// Register that the application may throw a [NoSuchMethodError]. 577 /// Register that the application may throw a [NoSuchMethodError].
574 void onThrowNoSuchMethod(Registry registry) {} 578 void onThrowNoSuchMethod(Registry registry) {}
575 579
576 /// Register that the application may throw a [RuntimeError]. 580 /// Register that the application may throw a [RuntimeError].
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2421 return futureClass.computeType(compiler).createInstantiation([elementType]); 2425 return futureClass.computeType(compiler).createInstantiation([elementType]);
2422 } 2426 }
2423 2427
2424 @override 2428 @override
2425 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2429 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2426 return streamClass.computeType(compiler).createInstantiation([elementType]); 2430 return streamClass.computeType(compiler).createInstantiation([elementType]);
2427 } 2431 }
2428 } 2432 }
2429 2433
2430 typedef void InternalErrorFunction(Spannable location, String message); 2434 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698