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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 1433443002: Remove for-in selectors from TreeElements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unneeded code. Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/tree_elements.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 503a973db02fd62491391e06436006b7a857876d..503c969e7abd61fc986af037a9a6a23b6b533c0a 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -7374,7 +7374,7 @@ class SsaBuilder extends ast.Visitor
void buildInitializer() {}
HInstruction buildCondition() {
- Selector selector = elements.getMoveNextSelector(node);
+ Selector selector = Selectors.moveNext;
TypeMask mask = elements.getMoveNextTypeMask(node);
pushInvokeDynamic(node, selector, mask, [streamIterator]);
HInstruction future = pop();
@@ -7383,7 +7383,7 @@ class SsaBuilder extends ast.Visitor
return popBoolified();
}
void buildBody() {
- Selector call = elements.getCurrentSelector(node);
+ Selector call = Selectors.current;
TypeMask callMask = elements.getCurrentTypeMask(node);
pushInvokeDynamic(node, call, callMask, [streamIterator]);
@@ -7443,7 +7443,7 @@ class SsaBuilder extends ast.Visitor
// method is inlined. We would require full scalar replacement in that
// case.
- Selector selector = elements.getIteratorSelector(node);
+ Selector selector = Selectors.iterator;
TypeMask mask = elements.getIteratorTypeMask(node);
ClassWorld classWorld = compiler.world;
@@ -7465,7 +7465,7 @@ class SsaBuilder extends ast.Visitor
HInstruction iterator;
void buildInitializer() {
- Selector selector = elements.getIteratorSelector(node);
+ Selector selector = Selectors.iterator;
TypeMask mask = elements.getIteratorTypeMask(node);
visit(node.expression);
HInstruction receiver = pop();
@@ -7474,14 +7474,14 @@ class SsaBuilder extends ast.Visitor
}
HInstruction buildCondition() {
- Selector selector = elements.getMoveNextSelector(node);
+ Selector selector = Selectors.moveNext;
TypeMask mask = elements.getMoveNextTypeMask(node);
pushInvokeDynamic(node, selector, mask, [iterator]);
return popBoolified();
}
void buildBody() {
- Selector call = elements.getCurrentSelector(node);
+ Selector call = Selectors.current;
TypeMask mask = elements.getCurrentTypeMask(node);
pushInvokeDynamic(node, call, mask, [iterator]);
buildAssignLoopVariable(node, pop());
« no previous file with comments | « pkg/compiler/lib/src/resolution/tree_elements.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698