| Index: src/arm/builtins-arm.cc
|
| diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc
|
| index f401cfd607f5edb9445e8bd7b5195f86f6bac0ea..9cca536bfeded8a73845855a71680e3caa25dedc 100644
|
| --- a/src/arm/builtins-arm.cc
|
| +++ b/src/arm/builtins-arm.cc
|
| @@ -1173,9 +1173,11 @@ void Builtins::Generate_NotifyOSR(MacroAssembler* masm) {
|
|
|
|
|
| void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
|
| - // Probe the CPU to set the supported features, because this builtin
|
| - // may be called before the initialization performs CPU setup.
|
| - masm->isolate()->cpu_features()->Probe(false);
|
| + CpuFeatures::TryForceFeatureScope scope(VFP3);
|
| + if (!CpuFeatures::IsSupported(VFP3)) {
|
| + __ Abort("Unreachable code: Cannot optimize without VFP3 support.");
|
| + return;
|
| + }
|
|
|
| // Lookup the function in the JavaScript frame and push it as an
|
| // argument to the on-stack replacement function.
|
|
|