| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 count++; | 111 count++; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 | 115 |
| 116 bool LCodeGen::GeneratePrologue() { | 116 bool LCodeGen::GeneratePrologue() { |
| 117 DCHECK(is_generating()); | 117 DCHECK(is_generating()); |
| 118 | 118 |
| 119 if (info()->IsOptimizing()) { | 119 if (info()->IsOptimizing()) { |
| 120 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 120 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 121 | |
| 122 #ifdef DEBUG | |
| 123 if (strlen(FLAG_stop_at) > 0 && | |
| 124 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
| 125 __ int3(); | |
| 126 } | |
| 127 #endif | |
| 128 } | 121 } |
| 129 | 122 |
| 130 info()->set_prologue_offset(masm_->pc_offset()); | 123 info()->set_prologue_offset(masm_->pc_offset()); |
| 131 if (NeedsEagerFrame()) { | 124 if (NeedsEagerFrame()) { |
| 132 DCHECK(!frame_is_built_); | 125 DCHECK(!frame_is_built_); |
| 133 frame_is_built_ = true; | 126 frame_is_built_ = true; |
| 134 if (info()->IsStub()) { | 127 if (info()->IsStub()) { |
| 135 __ StubPrologue(); | 128 __ StubPrologue(); |
| 136 } else { | 129 } else { |
| 137 __ Prologue(info()->GeneratePreagedPrologue()); | 130 __ Prologue(info()->GeneratePreagedPrologue()); |
| (...skipping 5515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5653 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5646 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5654 } | 5647 } |
| 5655 | 5648 |
| 5656 | 5649 |
| 5657 #undef __ | 5650 #undef __ |
| 5658 | 5651 |
| 5659 } // namespace internal | 5652 } // namespace internal |
| 5660 } // namespace v8 | 5653 } // namespace v8 |
| 5661 | 5654 |
| 5662 #endif // V8_TARGET_ARCH_X64 | 5655 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |