| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 | 96 |
| 97 bool LCodeGen::GeneratePrologue() { | 97 bool LCodeGen::GeneratePrologue() { |
| 98 DCHECK(is_generating()); | 98 DCHECK(is_generating()); |
| 99 | 99 |
| 100 if (info()->IsOptimizing()) { | 100 if (info()->IsOptimizing()) { |
| 101 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 101 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 102 | 102 |
| 103 #ifdef DEBUG | |
| 104 if (strlen(FLAG_stop_at) > 0 && | |
| 105 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
| 106 __ int3(); | |
| 107 } | |
| 108 #endif | |
| 109 | |
| 110 if (support_aligned_spilled_doubles_ && dynamic_frame_alignment_) { | 103 if (support_aligned_spilled_doubles_ && dynamic_frame_alignment_) { |
| 111 // Move state of dynamic frame alignment into edx. | 104 // Move state of dynamic frame alignment into edx. |
| 112 __ Move(edx, Immediate(kNoAlignmentPadding)); | 105 __ Move(edx, Immediate(kNoAlignmentPadding)); |
| 113 | 106 |
| 114 Label do_not_pad, align_loop; | 107 Label do_not_pad, align_loop; |
| 115 STATIC_ASSERT(kDoubleSize == 2 * kPointerSize); | 108 STATIC_ASSERT(kDoubleSize == 2 * kPointerSize); |
| 116 // Align esp + 4 to a multiple of 2 * kPointerSize. | 109 // Align esp + 4 to a multiple of 2 * kPointerSize. |
| 117 __ test(esp, Immediate(kPointerSize)); | 110 __ test(esp, Immediate(kPointerSize)); |
| 118 __ j(not_zero, &do_not_pad, Label::kNear); | 111 __ j(not_zero, &do_not_pad, Label::kNear); |
| 119 __ push(Immediate(0)); | 112 __ push(Immediate(0)); |
| (...skipping 5903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6023 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6016 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6024 } | 6017 } |
| 6025 | 6018 |
| 6026 | 6019 |
| 6027 #undef __ | 6020 #undef __ |
| 6028 | 6021 |
| 6029 } // namespace internal | 6022 } // namespace internal |
| 6030 } // namespace v8 | 6023 } // namespace v8 |
| 6031 | 6024 |
| 6032 #endif // V8_TARGET_ARCH_X87 | 6025 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |