Index: src/compiler/escape-analysis-reducer.cc |
diff --git a/src/compiler/escape-analysis-reducer.cc b/src/compiler/escape-analysis-reducer.cc |
index 5fa01999c787c0099e03211c4e472a67b33279bd..1fece43fc3d2236adcc703ef7884efcecbab7723 100644 |
--- a/src/compiler/escape-analysis-reducer.cc |
+++ b/src/compiler/escape-analysis-reducer.cc |
@@ -49,7 +49,7 @@ Reduction EscapeAnalysisReducer::Reduce(Node* node) { |
Reduction EscapeAnalysisReducer::ReduceLoad(Node* node) { |
DCHECK(node->opcode() == IrOpcode::kLoadField || |
node->opcode() == IrOpcode::kLoadElement); |
- if (Node* rep = escape_analysis()->GetReplacement(node, node->id())) { |
+ if (Node* rep = escape_analysis()->GetReplacement(node)) { |
if (FLAG_trace_turbo_escape) { |
PrintF("Replaced #%d (%s) with #%d (%s)\n", node->id(), |
node->op()->mnemonic(), rep->id(), rep->op()->mnemonic()); |
@@ -116,10 +116,10 @@ Reduction EscapeAnalysisReducer::ReduceReferenceEqual(Node* node) { |
Node* right = NodeProperties::GetValueInput(node, 1); |
if (escape_analysis()->IsVirtual(left)) { |
if (escape_analysis()->IsVirtual(right)) { |
- if (Node* rep = escape_analysis()->GetReplacement(node, left->id())) { |
+ if (Node* rep = escape_analysis()->GetReplacement(left)) { |
left = rep; |
} |
- if (Node* rep = escape_analysis()->GetReplacement(node, right->id())) { |
+ if (Node* rep = escape_analysis()->GetReplacement(right)) { |
right = rep; |
} |
// TODO(sigurds): What to do if either is a PHI? |