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

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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 { 1275 {
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(VFP2);
1286 if (!CpuFeatures::IsSupported(VFP3)) { 1286 if (!CpuFeatures::IsSupported(VFP2)) {
1287 __ Abort("Unreachable code: Cannot optimize without VFP3 support."); 1287 __ Abort("Unreachable code: Cannot optimize without VFP2 support.");
1288 return; 1288 return;
1289 } 1289 }
1290 1290
1291 // Lookup the function in the JavaScript frame and push it as an 1291 // Lookup the function in the JavaScript frame and push it as an
1292 // argument to the on-stack replacement function. 1292 // argument to the on-stack replacement function.
1293 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1293 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1294 { 1294 {
1295 FrameScope scope(masm, StackFrame::INTERNAL); 1295 FrameScope scope(masm, StackFrame::INTERNAL);
1296 __ push(r0); 1296 __ push(r0);
1297 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); 1297 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1);
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 __ bind(&dont_adapt_arguments); 1797 __ bind(&dont_adapt_arguments);
1798 __ Jump(r3); 1798 __ Jump(r3);
1799 } 1799 }
1800 1800
1801 1801
1802 #undef __ 1802 #undef __
1803 1803
1804 } } // namespace v8::internal 1804 } } // namespace v8::internal
1805 1805
1806 #endif // V8_TARGET_ARCH_ARM 1806 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698