| Index: src/ia32/full-codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/full-codegen-ia32.cc (revision 8575)
|
| +++ src/ia32/full-codegen-ia32.cc (working copy)
|
| @@ -2772,8 +2772,12 @@
|
| VisitForStackValue(args->at(0));
|
| VisitForStackValue(args->at(1));
|
|
|
| - MathPowStub stub;
|
| - __ CallStub(&stub);
|
| + if (masm()->isolate()->cpu_features()->IsSupported(SSE2)) {
|
| + MathPowStub stub;
|
| + __ CallStub(&stub);
|
| + } else {
|
| + __ CallRuntime(Runtime::kMath_pow, 2);
|
| + }
|
| context()->Plug(eax);
|
| }
|
|
|
|
|