Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 378e0d80dba9b2ddac0ab5368f23d432c382c5c6..b0fc9cc64db8ab660c0ee2e64ce28d98e0d45b6d 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -785,16 +785,20 @@ Node* WasmGraphBuilder::Unop(wasm::WasmOpcode opcode, Node* input, |
op = m->Float64Atan(); |
break; |
case wasm::kExprF64Cos: { |
- return BuildF64Cos(input); |
+ op = m->Float64Cos(); |
+ break; |
} |
case wasm::kExprF64Sin: { |
- return BuildF64Sin(input); |
+ op = m->Float64Sin(); |
+ break; |
} |
case wasm::kExprF64Tan: { |
- return BuildF64Tan(input); |
+ op = m->Float64Tan(); |
+ break; |
} |
case wasm::kExprF64Exp: { |
- return BuildF64Exp(input); |
+ op = m->Float64Exp(); |
+ break; |
} |
case wasm::kExprF64Log: |
op = m->Float64Log(); |
@@ -1348,34 +1352,6 @@ Node* WasmGraphBuilder::BuildF64Asin(Node* input) { |
return BuildCFuncInstruction(ref, type, input); |
} |
-Node* WasmGraphBuilder::BuildF64Cos(Node* input) { |
- MachineType type = MachineType::Float64(); |
- ExternalReference ref = |
- ExternalReference::f64_cos_wrapper_function(jsgraph()->isolate()); |
- return BuildCFuncInstruction(ref, type, input); |
-} |
- |
-Node* WasmGraphBuilder::BuildF64Sin(Node* input) { |
- MachineType type = MachineType::Float64(); |
- ExternalReference ref = |
- ExternalReference::f64_sin_wrapper_function(jsgraph()->isolate()); |
- return BuildCFuncInstruction(ref, type, input); |
-} |
- |
-Node* WasmGraphBuilder::BuildF64Tan(Node* input) { |
- MachineType type = MachineType::Float64(); |
- ExternalReference ref = |
- ExternalReference::f64_tan_wrapper_function(jsgraph()->isolate()); |
- return BuildCFuncInstruction(ref, type, input); |
-} |
- |
-Node* WasmGraphBuilder::BuildF64Exp(Node* input) { |
- MachineType type = MachineType::Float64(); |
- ExternalReference ref = |
- ExternalReference::f64_exp_wrapper_function(jsgraph()->isolate()); |
- return BuildCFuncInstruction(ref, type, input); |
-} |
- |
Node* WasmGraphBuilder::BuildF64Pow(Node* left, Node* right) { |
MachineType type = MachineType::Float64(); |
ExternalReference ref = |