From d37695e30e620ec53ee5a4465902792a6124ad2e Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Thu, 26 Jul 2012 08:42:42 +0000 Subject: [PATCH] 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 --- src/arm/builtins-arm.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.7.4