Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: src/arm/builtins-arm.cc

Issue 10818026: Relax requirement from VFP3 to VFP2 where possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 FrameScope scope(masm, StackFrame::INTERNAL); 1276 FrameScope scope(masm, StackFrame::INTERNAL);
1277 __ CallRuntime(Runtime::kNotifyOSR, 0); 1277 __ CallRuntime(Runtime::kNotifyOSR, 0);
1278 } 1278 }
1279 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit()); 1279 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit());
1280 __ Ret(); 1280 __ Ret();
1281 } 1281 }
1282 1282
1283 1283
1284 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { 1284 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
1285 CpuFeatures::TryForceFeatureScope scope(VFP3); 1285 CpuFeatures::TryForceFeatureScope scope(VFP3);
1286 if (!CpuFeatures::IsSupported(VFP3)) { 1286 ASSERT(CPU::SupportsCrankshaft());
1287 __ Abort("Unreachable code: Cannot optimize without VFP3 support.");
1288 return;
1289 }
1290 1287
1291 // Lookup the function in the JavaScript frame and push it as an 1288 // Lookup the function in the JavaScript frame and push it as an
1292 // argument to the on-stack replacement function. 1289 // argument to the on-stack replacement function.
1293 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1290 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1294 { 1291 {
1295 FrameScope scope(masm, StackFrame::INTERNAL); 1292 FrameScope scope(masm, StackFrame::INTERNAL);
1296 __ push(r0); 1293 __ push(r0);
1297 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); 1294 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1);
1298 } 1295 }
1299 1296
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 __ bind(&dont_adapt_arguments); 1794 __ bind(&dont_adapt_arguments);
1798 __ Jump(r3); 1795 __ Jump(r3);
1799 } 1796 }
1800 1797
1801 1798
1802 #undef __ 1799 #undef __
1803 1800
1804 } } // namespace v8::internal 1801 } } // namespace v8::internal
1805 1802
1806 #endif // V8_TARGET_ARCH_ARM 1803 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« build/common.gypi ('K') | « src/arm/assembler-arm.cc ('k') | src/arm/code-stubs-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698