| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #endif | 127 #endif |
| 128 } | 128 } |
| 129 | 129 |
| 130 info()->set_prologue_offset(masm_->pc_offset()); | 130 info()->set_prologue_offset(masm_->pc_offset()); |
| 131 if (NeedsEagerFrame()) { | 131 if (NeedsEagerFrame()) { |
| 132 DCHECK(!frame_is_built_); | 132 DCHECK(!frame_is_built_); |
| 133 frame_is_built_ = true; | 133 frame_is_built_ = true; |
| 134 if (info()->IsStub()) { | 134 if (info()->IsStub()) { |
| 135 __ StubPrologue(); | 135 __ StubPrologue(); |
| 136 } else { | 136 } else { |
| 137 __ Prologue(info()->IsCodePreAgingActive()); | 137 __ Prologue(info()->GeneratePreagedPrologue()); |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 // Reserve space for the stack slots needed by the code. | 141 // Reserve space for the stack slots needed by the code. |
| 142 int slots = GetStackSlotCount(); | 142 int slots = GetStackSlotCount(); |
| 143 if (slots > 0) { | 143 if (slots > 0) { |
| 144 if (FLAG_debug_code) { | 144 if (FLAG_debug_code) { |
| 145 __ subp(rsp, Immediate(slots * kPointerSize)); | 145 __ subp(rsp, Immediate(slots * kPointerSize)); |
| 146 #ifdef _MSC_VER | 146 #ifdef _MSC_VER |
| 147 MakeSureStackPagesMapped(slots * kPointerSize); | 147 MakeSureStackPagesMapped(slots * kPointerSize); |
| (...skipping 5513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5661 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5661 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5662 } | 5662 } |
| 5663 | 5663 |
| 5664 | 5664 |
| 5665 #undef __ | 5665 #undef __ |
| 5666 | 5666 |
| 5667 } // namespace internal | 5667 } // namespace internal |
| 5668 } // namespace v8 | 5668 } // namespace v8 |
| 5669 | 5669 |
| 5670 #endif // V8_TARGET_ARCH_X64 | 5670 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |