| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
| 6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1815 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1815 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 1816 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1816 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1817 return kSuccess; | 1817 return kSuccess; |
| 1818 } | 1818 } |
| 1819 | 1819 |
| 1820 void CodeGenerator::FinishFrame(Frame* frame) { | 1820 void CodeGenerator::FinishFrame(Frame* frame) { |
| 1821 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1821 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 1822 | 1822 |
| 1823 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); | 1823 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); |
| 1824 if (saves_fpu != 0) { | 1824 if (saves_fpu != 0) { |
| 1825 frame->AlignSavedCalleeRegisterSlots(); | 1825 frame->AlignFrame(); |
| 1826 } | |
| 1827 | |
| 1828 if (saves_fpu != 0) { | |
| 1829 int count = base::bits::CountPopulation32(saves_fpu); | 1826 int count = base::bits::CountPopulation32(saves_fpu); |
| 1830 DCHECK(kNumCalleeSavedFPU == count); | 1827 DCHECK(kNumCalleeSavedFPU == count); |
| 1831 frame->AllocateSavedCalleeRegisterSlots(count * | 1828 frame->AllocateSavedCalleeRegisterSlots(count * |
| 1832 (kDoubleSize / kPointerSize)); | 1829 (kDoubleSize / kPointerSize)); |
| 1833 } | 1830 } |
| 1834 | 1831 |
| 1835 const RegList saves = descriptor->CalleeSavedRegisters(); | 1832 const RegList saves = descriptor->CalleeSavedRegisters(); |
| 1836 if (saves != 0) { | 1833 if (saves != 0) { |
| 1837 int count = base::bits::CountPopulation32(saves); | 1834 int count = base::bits::CountPopulation32(saves); |
| 1838 DCHECK(kNumCalleeSaved == count + 1); | 1835 DCHECK(kNumCalleeSaved == count + 1); |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2134 padding_size -= v8::internal::Assembler::kInstrSize; | 2131 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2135 } | 2132 } |
| 2136 } | 2133 } |
| 2137 } | 2134 } |
| 2138 | 2135 |
| 2139 #undef __ | 2136 #undef __ |
| 2140 | 2137 |
| 2141 } // namespace compiler | 2138 } // namespace compiler |
| 2142 } // namespace internal | 2139 } // namespace internal |
| 2143 } // namespace v8 | 2140 } // namespace v8 |
| OLD | NEW |