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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.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
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 resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 AnalyzableElement get analyzedElement; 8 AnalyzableElement get analyzedElement;
9 Iterable<Node> get superUses; 9 Iterable<Node> get superUses;
10 10
(...skipping 3645 matching lines...) Expand 10 before | Expand all | Expand 10 after
3656 registry.registerDynamicInvocation(compiler.moveNextSelector); 3656 registry.registerDynamicInvocation(compiler.moveNextSelector);
3657 3657
3658 visit(node.expression); 3658 visit(node.expression);
3659 3659
3660 Scope blockScope = new BlockScope(scope); 3660 Scope blockScope = new BlockScope(scope);
3661 visitForInDeclaredIdentifierIn(node.declaredIdentifier, node, blockScope); 3661 visitForInDeclaredIdentifierIn(node.declaredIdentifier, node, blockScope);
3662 visitLoopBodyIn(node, node.body, blockScope); 3662 visitLoopBodyIn(node, node.body, blockScope);
3663 } 3663 }
3664 3664
3665 visitSyncForIn(SyncForIn node) { 3665 visitSyncForIn(SyncForIn node) {
3666 registry.registerSyncForIn(node);
3666 registry.setIteratorSelector(node, compiler.iteratorSelector); 3667 registry.setIteratorSelector(node, compiler.iteratorSelector);
3667 registry.registerDynamicGetter(compiler.iteratorSelector); 3668 registry.registerDynamicGetter(compiler.iteratorSelector);
3668 registry.setCurrentSelector(node, compiler.currentSelector); 3669 registry.setCurrentSelector(node, compiler.currentSelector);
3669 registry.registerDynamicGetter(compiler.currentSelector); 3670 registry.registerDynamicGetter(compiler.currentSelector);
3670 registry.setMoveNextSelector(node, compiler.moveNextSelector); 3671 registry.setMoveNextSelector(node, compiler.moveNextSelector);
3671 registry.registerDynamicInvocation(compiler.moveNextSelector); 3672 registry.registerDynamicInvocation(compiler.moveNextSelector);
3672 3673
3673 visit(node.expression); 3674 visit(node.expression);
3674 3675
3675 Scope blockScope = new BlockScope(scope); 3676 Scope blockScope = new BlockScope(scope);
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
5146 } 5147 }
5147 5148
5148 /// The result for the resolution of the `assert` method. 5149 /// The result for the resolution of the `assert` method.
5149 class AssertResult implements ResolutionResult { 5150 class AssertResult implements ResolutionResult {
5150 const AssertResult(); 5151 const AssertResult();
5151 5152
5152 Element get element => null; 5153 Element get element => null;
5153 5154
5154 String toString() => 'AssertResult()'; 5155 String toString() => 'AssertResult()';
5155 } 5156 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/resolution/registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698