Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 17289e8f0ac54c9b166f04b4abefbf4eae3f22ae..7e9a889116a24b1b3c6bbfbc759772004f7dbd47 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -2938,8 +2938,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(VFP3)) { |
+ MathPowStub stub(MathPowStub::ON_STACK); |
+ __ CallStub(&stub); |
+ } else { |
+ __ CallRuntime(Runtime::kMath_pow, 2); |
+ } |
context()->Plug(r0); |
} |