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

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 typo 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..f89c56d544b32292e196a188bfc4d19fdf0850e4 100644
--- a/src/compiler/int64-lowering.cc
+++ b/src/compiler/int64-lowering.cc
@@ -778,6 +778,15 @@ void Int64Lowering::LowerNode(Node* node) {
}
break;
}
+ case IrOpcode::kWord64ReverseBytes: {
+ DCHECK(machine()->Word32ReverseBytes().IsSupported());
titzer 2016/07/29 18:21:53 Can you remove this DCHECK? E.g. the optional oper
+ 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