From: yangguo@chromium.org Date: Thu, 26 Jul 2012 08:42:42 +0000 (+0000) Subject: Fix cctests when VFP is disabled. X-Git-Tag: upstream/4.7.83~16243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d37695e30e620ec53ee5a4465902792a6124ad2e;p=platform%2Fupstream%2Fv8.git Fix cctests when VFP is disabled. R=svenpanne@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10820027 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12197 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc index 40949ff..2079e04 100644 --- a/src/arm/builtins-arm.cc +++ b/src/arm/builtins-arm.cc @@ -1283,7 +1283,10 @@ void Builtins::Generate_NotifyOSR(MacroAssembler* masm) { void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { CpuFeatures::TryForceFeatureScope scope(VFP3); - ASSERT(CPU::SupportsCrankshaft()); + if (!CPU::SupportsCrankshaft()) { + __ 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.