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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-add
Patch Set: Created 4 years, 9 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
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index cdb48671b4534da7b06b933cc973dc2f3957260a..125c940ce16ccd24c5a16ea32425e1d2eceb95f6 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -497,6 +497,9 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left,
op = m->Int64Add();
break;
// kExprI64Sub:
+ case wasm::kExprI64Sub:
+ op = m->Int64Sub();
+ break;
// kExprI64Mul:
// kExprI64DivS:
// kExprI64DivU:
@@ -561,9 +564,6 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left,
#if WASM_64
// Opcodes only supported on 64-bit platforms.
// TODO(titzer): query the machine operator builder here instead of #ifdef.
- case wasm::kExprI64Sub:
- op = m->Int64Sub();
- break;
case wasm::kExprI64Mul:
op = m->Int64Mul();
break;

Powered by Google App Engine
This is Rietveld 408576698