diff --git a/src/assembler.cc b/src/assembler.cc index 421fed6ac6..38d5aa6575 100644 --- a/src/assembler.cc +++ b/src/assembler.cc @@ -1259,16 +1259,6 @@ ExternalReference ExternalReference::f64_asin_wrapper_function( return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_asin_wrapper))); } -static void f64_pow_wrapper(double* param0, double* param1) { - WriteDoubleValue(param0, power_double_double(ReadDoubleValue(param0), - ReadDoubleValue(param1))); -} - -ExternalReference ExternalReference::f64_pow_wrapper_function( - Isolate* isolate) { - return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_pow_wrapper))); -} - static void f64_mod_wrapper(double* param0, double* param1) { WriteDoubleValue(param0, modulo(ReadDoubleValue(param0), ReadDoubleValue(param1))); diff --git a/src/assembler.h b/src/assembler.h index a71aef0df5..f63e713a2f 100644 --- a/src/assembler.h +++ b/src/assembler.h @@ -973,7 +973,6 @@ class ExternalReference BASE_EMBEDDED { static ExternalReference f64_acos_wrapper_function(Isolate* isolate); static ExternalReference f64_asin_wrapper_function(Isolate* isolate); - static ExternalReference f64_pow_wrapper_function(Isolate* isolate); static ExternalReference f64_mod_wrapper_function(Isolate* isolate); // Log support. diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc index 5c6f5f34fd..5fcfb70148 100644 --- a/src/compiler/wasm-compiler.cc +++ b/src/compiler/wasm-compiler.cc @@ -604,7 +604,8 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, Node* right, case wasm::kExprF64Max: return BuildF64Max(left, right); case wasm::kExprF64Pow: - return BuildF64Pow(left, right); + op = m->Float64Pow(); + break; case wasm::kExprF64Atan2: op = m->Float64Atan2(); break; @@ -1482,13 +1483,6 @@ Node* WasmGraphBuilder::BuildF64Asin(Node* input) { return BuildCFuncInstruction(ref, type, input); } -Node* WasmGraphBuilder::BuildF64Pow(Node* left, Node* right) { - MachineType type = MachineType::Float64(); - ExternalReference ref = - ExternalReference::f64_pow_wrapper_function(jsgraph()->isolate()); - return BuildCFuncInstruction(ref, type, left, right); -} - Node* WasmGraphBuilder::BuildF64Mod(Node* left, Node* right) { MachineType type = MachineType::Float64(); ExternalReference ref = diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h index 320965f4e9..52b794e630 100644 --- a/src/compiler/wasm-compiler.h +++ b/src/compiler/wasm-compiler.h @@ -280,7 +280,6 @@ class WasmGraphBuilder { Node* BuildF64Acos(Node* input); Node* BuildF64Asin(Node* input); - Node* BuildF64Pow(Node* left, Node* right); Node* BuildF64Mod(Node* left, Node* right); Node* BuildIntToFloatConversionInstruction( diff --git a/src/external-reference-table.cc b/src/external-reference-table.cc index 92a7c771bd..fe3f45eb9c 100644 --- a/src/external-reference-table.cc +++ b/src/external-reference-table.cc @@ -170,8 +170,6 @@ ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) { "f64_acos_wrapper"); Add(ExternalReference::f64_asin_wrapper_function(isolate).address(), "f64_asin_wrapper"); - Add(ExternalReference::f64_pow_wrapper_function(isolate).address(), - "f64_pow_wrapper"); Add(ExternalReference::f64_mod_wrapper_function(isolate).address(), "f64_mod_wrapper"); Add(ExternalReference::log_enter_external_function(isolate).address(),