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

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

Issue 12391033: Make sure that on x86 we don't generate SSE2 code in the snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New method CpuFeatures::IsSafeForSnapshot(). Created 7 years, 9 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 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 { 1370 {
1371 FrameScope scope(masm, StackFrame::INTERNAL); 1371 FrameScope scope(masm, StackFrame::INTERNAL);
1372 __ CallRuntime(Runtime::kNotifyOSR, 0); 1372 __ CallRuntime(Runtime::kNotifyOSR, 0);
1373 } 1373 }
1374 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit()); 1374 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit());
1375 __ Ret(); 1375 __ Ret();
1376 } 1376 }
1377 1377
1378 1378
1379 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { 1379 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
1380 CpuFeatures::TryForceFeatureScope scope(VFP3);
1381 if (!CPU::SupportsCrankshaft()) {
1382 __ Abort("Unreachable code: Cannot optimize without VFP3 support.");
1383 return;
1384 }
1385
1386 // Lookup the function in the JavaScript frame and push it as an 1380 // Lookup the function in the JavaScript frame and push it as an
1387 // argument to the on-stack replacement function. 1381 // argument to the on-stack replacement function.
1388 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1382 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1389 { 1383 {
1390 FrameScope scope(masm, StackFrame::INTERNAL); 1384 FrameScope scope(masm, StackFrame::INTERNAL);
1391 __ push(r0); 1385 __ push(r0);
1392 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); 1386 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1);
1393 } 1387 }
1394 1388
1395 // If the result was -1 it means that we couldn't optimize the 1389 // If the result was -1 it means that we couldn't optimize the
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 __ bind(&dont_adapt_arguments); 1886 __ bind(&dont_adapt_arguments);
1893 __ Jump(r3); 1887 __ Jump(r3);
1894 } 1888 }
1895 1889
1896 1890
1897 #undef __ 1891 #undef __
1898 1892
1899 } } // namespace v8::internal 1893 } } // namespace v8::internal
1900 1894
1901 #endif // V8_TARGET_ARCH_ARM 1895 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/assembler.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698