Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 0798d48f445d780ab5b31593429d669b8208145b..1e950e5f510ac4e5e17b06e815556d0990bb9a94 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -2958,8 +2958,12 @@ void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { |
ASSERT(args->length() == 2); |
VisitForStackValue(args->at(0)); |
VisitForStackValue(args->at(1)); |
- MathPowStub stub(MathPowStub::ON_STACK); |
- __ CallStub(&stub); |
+ if (CpuFeatures::IsSupported(FPU)) { |
+ MathPowStub stub(MathPowStub::ON_STACK); |
+ __ CallStub(&stub); |
+ } else { |
+ __ CallRuntime(Runtime::kMath_pow, 2); |
+ } |
context()->Plug(v0); |
} |