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

Unified Diff: src/compiler/js-typed-lowering.cc

Issue 2289613002: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-typed-lowering.cc
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
index 07f4ddb6a3a5a93cef81a5fff34dd54018badeab..e282da8d170bf4c5aaab9562fe441a29e24548cb 100644
--- a/src/compiler/js-typed-lowering.cc
+++ b/src/compiler/js-typed-lowering.cc
@@ -1765,14 +1765,6 @@ Reduction JSTypedLowering::ReduceJSCallFunction(Node* node) {
}
-Reduction JSTypedLowering::ReduceJSForInDone(Node* node) {
- DCHECK_EQ(IrOpcode::kJSForInDone, node->opcode());
- node->TrimInputCount(2);
- NodeProperties::ChangeOp(node, machine()->Word32Equal());
- return Changed(node);
-}
-
-
Reduction JSTypedLowering::ReduceJSForInNext(Node* node) {
DCHECK_EQ(IrOpcode::kJSForInNext, node->opcode());
Node* receiver = NodeProperties::GetValueInput(node, 0);
@@ -1838,14 +1830,6 @@ Reduction JSTypedLowering::ReduceJSForInNext(Node* node) {
return Changed(node);
}
-
-Reduction JSTypedLowering::ReduceJSForInStep(Node* node) {
- DCHECK_EQ(IrOpcode::kJSForInStep, node->opcode());
- node->ReplaceInput(1, jsgraph()->Int32Constant(1));
- NodeProperties::ChangeOp(node, machine()->Int32Add());
- return Changed(node);
-}
-
Reduction JSTypedLowering::ReduceJSGeneratorStore(Node* node) {
DCHECK_EQ(IrOpcode::kJSGeneratorStore, node->opcode());
Node* generator = NodeProperties::GetValueInput(node, 0);
@@ -1986,12 +1970,8 @@ Reduction JSTypedLowering::Reduce(Node* node) {
return ReduceJSCallConstruct(node);
case IrOpcode::kJSCallFunction:
return ReduceJSCallFunction(node);
- case IrOpcode::kJSForInDone:
- return ReduceJSForInDone(node);
case IrOpcode::kJSForInNext:
return ReduceJSForInNext(node);
- case IrOpcode::kJSForInStep:
- return ReduceJSForInStep(node);
case IrOpcode::kJSGeneratorStore:
return ReduceJSGeneratorStore(node);
case IrOpcode::kJSGeneratorRestoreContinuation:
@@ -2023,10 +2003,6 @@ CommonOperatorBuilder* JSTypedLowering::common() const {
return jsgraph()->common();
}
-MachineOperatorBuilder* JSTypedLowering::machine() const {
- return jsgraph()->machine();
-}
-
SimplifiedOperatorBuilder* JSTypedLowering::simplified() const {
return jsgraph()->simplified();
}
« no previous file with comments | « src/compiler/js-typed-lowering.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698