Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 6b7c99327b17dd7552cba36b5cab84ac8be5ce60..50c7ca17d98cb06b4863c947867112023d6078bb 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -609,8 +609,7 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, Node* right, |
case wasm::kExprF64Max: |
return BuildF64Max(left, right); |
case wasm::kExprF64Pow: |
- op = m->Float64Pow(); |
- break; |
+ return BuildF64Pow(left, right); |
case wasm::kExprF64Atan2: |
op = m->Float64Atan2(); |
break; |
@@ -1490,6 +1489,13 @@ Node* WasmGraphBuilder::BuildF64Asin(Node* input) { |
return BuildCFuncInstruction(ref, type, input); |
} |
+Node* WasmGraphBuilder::BuildF64Pow(Node* left, Node* right) { |
+ MachineType type = MachineType::Float64(); |
+ ExternalReference ref = |
+ ExternalReference::wasm_float64_pow(jsgraph()->isolate()); |
+ return BuildCFuncInstruction(ref, type, left, right); |
+} |
+ |
Node* WasmGraphBuilder::BuildF64Mod(Node* left, Node* right) { |
MachineType type = MachineType::Float64(); |
ExternalReference ref = |