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

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

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix according to titzer Created 4 years, 5 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/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('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 320d481c5dde36188fc72685e64450756a8db3ba..737947aad0b31a5f834936487bb8436bb55a7988 100644
--- a/src/compiler/int64-lowering.cc
+++ b/src/compiler/int64-lowering.cc
@@ -778,6 +778,14 @@ void Int64Lowering::LowerNode(Node* node) {
}
break;
}
+ case IrOpcode::kWord64ReverseBytes: {
+ Node* input = node->InputAt(0);
+ ReplaceNode(node, graph()->NewNode(machine()->Word32ReverseBytes().op(),
+ GetReplacementHigh(input)),
+ graph()->NewNode(machine()->Word32ReverseBytes().op(),
+ GetReplacementLow(input)));
+ break;
+ }
default: { DefaultLowering(node); }
}
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698