Chromium Code Reviews| Index: src/x64/codegen-x64.cc |
| =================================================================== |
| --- src/x64/codegen-x64.cc (revision 3946) |
| +++ src/x64/codegen-x64.cc (working copy) |
| @@ -3958,22 +3958,13 @@ |
| frame_->SpillAll(); |
| __ push(rsi); |
| - // Make sure the frame is aligned like the OS expects. |
| - static const int kFrameAlignment = OS::ActivationFrameAlignment(); |
| - if (kFrameAlignment > 0) { |
| - ASSERT(IsPowerOf2(kFrameAlignment)); |
| - __ movq(rbx, rsp); // Save in AMD-64 abi callee-saved register. |
| - __ and_(rsp, Immediate(-kFrameAlignment)); |
| - } |
| + int num_arguments = 0; |
|
Søren Thygesen Gjesse
2010/02/25 12:29:21
Please change this to static const.
|
| + __ PrepareCallCFunction(num_arguments); |
| // Call V8::RandomPositiveSmi(). |
| - __ Call(FUNCTION_ADDR(V8::RandomPositiveSmi), RelocInfo::RUNTIME_ENTRY); |
| + __ CallCFunction(ExternalReference::random_positive_smi_function(), |
| + num_arguments); |
| - // Restore stack pointer from callee-saved register. |
| - if (kFrameAlignment > 0) { |
| - __ movq(rsp, rbx); |
| - } |
| - |
| __ pop(rsi); |
| Result result = allocator_->Allocate(rax); |
| frame_->Push(&result); |