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

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

Issue 10820027: Fix cctests when VFP is disabled. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASSERT(CPU::SupportsCrankshaft()); 1286 if (!CPU::SupportsCrankshaft()) {
1287 __ Abort("Unreachable code: Cannot optimize without VFP3 support.");
1288 return;
1289 }
1287 1290
1288 // 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
1289 // argument to the on-stack replacement function. 1292 // argument to the on-stack replacement function.
1290 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1293 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1291 { 1294 {
1292 FrameScope scope(masm, StackFrame::INTERNAL); 1295 FrameScope scope(masm, StackFrame::INTERNAL);
1293 __ push(r0); 1296 __ push(r0);
1294 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); 1297 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1);
1295 } 1298 }
1296 1299
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 __ bind(&dont_adapt_arguments); 1797 __ bind(&dont_adapt_arguments);
1795 __ Jump(r3); 1798 __ Jump(r3);
1796 } 1799 }
1797 1800
1798 1801
1799 #undef __ 1802 #undef __
1800 1803
1801 } } // namespace v8::internal 1804 } } // namespace v8::internal
1802 1805
1803 #endif // V8_TARGET_ARCH_ARM 1806 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698