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

Unified Diff: src/compiler/int64-lowering.cc

Issue 1714793003: [wasm] Unittest for Int64Lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Michael's remarks Created 4 years, 10 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 | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/int64-lowering.cc
diff --git a/src/compiler/int64-lowering.cc b/src/compiler/int64-lowering.cc
index c9c87b65d6de55807e5fa6a13afbe5bc232a3287..ff31abe518f07cdf60fa58d8acac90e2cbf0a907 100644
--- a/src/compiler/int64-lowering.cc
+++ b/src/compiler/int64-lowering.cc
@@ -209,8 +209,7 @@ void Int64Lowering::LowerNode(Node* node) {
signature()->parameter_count()) {
int old_index = ParameterIndexOf(node->op());
int new_index = GetParameterIndexAfterLowering(signature(), old_index);
- Node* low_node =
- graph()->NewNode(common()->Parameter(new_index), graph()->start());
+ NodeProperties::ChangeOp(node, common()->Parameter(new_index));
Node* high_node = nullptr;
if (signature()->GetParam(old_index) ==
@@ -218,7 +217,7 @@ void Int64Lowering::LowerNode(Node* node) {
high_node = graph()->NewNode(common()->Parameter(new_index + 1),
graph()->start());
}
- ReplaceNode(node, low_node, high_node);
+ ReplaceNode(node, node, high_node);
}
break;
}
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698