| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "x64/lithium-codegen-x64.h" | 9 #include "x64/lithium-codegen-x64.h" |
| 10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 __ movp(args.GetReceiverOperand(), rcx); | 142 __ movp(args.GetReceiverOperand(), rcx); |
| 143 | 143 |
| 144 __ bind(&ok); | 144 __ bind(&ok); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 info()->set_prologue_offset(masm_->pc_offset()); | 148 info()->set_prologue_offset(masm_->pc_offset()); |
| 149 if (NeedsEagerFrame()) { | 149 if (NeedsEagerFrame()) { |
| 150 ASSERT(!frame_is_built_); | 150 ASSERT(!frame_is_built_); |
| 151 frame_is_built_ = true; | 151 frame_is_built_ = true; |
| 152 __ Prologue(info()); | 152 if (info()->IsStub()) { |
| 153 __ StubPrologue(); |
| 154 } else { |
| 155 __ Prologue(info()->IsCodePreAgingActive()); |
| 156 } |
| 153 info()->AddNoFrameRange(0, masm_->pc_offset()); | 157 info()->AddNoFrameRange(0, masm_->pc_offset()); |
| 154 } | 158 } |
| 155 | 159 |
| 156 // Reserve space for the stack slots needed by the code. | 160 // Reserve space for the stack slots needed by the code. |
| 157 int slots = GetStackSlotCount(); | 161 int slots = GetStackSlotCount(); |
| 158 if (slots > 0) { | 162 if (slots > 0) { |
| 159 if (FLAG_debug_code) { | 163 if (FLAG_debug_code) { |
| 160 __ subp(rsp, Immediate(slots * kPointerSize)); | 164 __ subp(rsp, Immediate(slots * kPointerSize)); |
| 161 #ifdef _MSC_VER | 165 #ifdef _MSC_VER |
| 162 MakeSureStackPagesMapped(slots * kPointerSize); | 166 MakeSureStackPagesMapped(slots * kPointerSize); |
| (...skipping 5558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5721 __ bind(deferred->exit()); | 5725 __ bind(deferred->exit()); |
| 5722 __ bind(&done); | 5726 __ bind(&done); |
| 5723 } | 5727 } |
| 5724 | 5728 |
| 5725 | 5729 |
| 5726 #undef __ | 5730 #undef __ |
| 5727 | 5731 |
| 5728 } } // namespace v8::internal | 5732 } } // namespace v8::internal |
| 5729 | 5733 |
| 5730 #endif // V8_TARGET_ARCH_X64 | 5734 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |