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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm64/assembler-arm64-inl.h" | 7 #include "src/arm64/assembler-arm64-inl.h" |
8 #include "src/arm64/frames-arm64.h" | 8 #include "src/arm64/frames-arm64.h" |
9 #include "src/arm64/macro-assembler-arm64-inl.h" | 9 #include "src/arm64/macro-assembler-arm64-inl.h" |
10 #include "src/compilation-info.h" | 10 #include "src/compilation-info.h" |
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 __ Add(pop_reg, pop_reg, pop_count); | 2017 __ Add(pop_reg, pop_reg, pop_count); |
2018 __ Drop(pop_reg); | 2018 __ Drop(pop_reg); |
2019 } | 2019 } |
2020 | 2020 |
2021 if (descriptor->UseNativeStack()) { | 2021 if (descriptor->UseNativeStack()) { |
2022 __ AssertCspAligned(); | 2022 __ AssertCspAligned(); |
2023 } | 2023 } |
2024 __ Ret(); | 2024 __ Ret(); |
2025 } | 2025 } |
2026 | 2026 |
| 2027 void CodeGenerator::FinishCode() { masm()->CheckConstPool(true, false); } |
2027 | 2028 |
2028 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2029 void CodeGenerator::AssembleMove(InstructionOperand* source, |
2029 InstructionOperand* destination) { | 2030 InstructionOperand* destination) { |
2030 Arm64OperandConverter g(this, nullptr); | 2031 Arm64OperandConverter g(this, nullptr); |
2031 // Dispatch on the source and destination operand kinds. Not all | 2032 // Dispatch on the source and destination operand kinds. Not all |
2032 // combinations are possible. | 2033 // combinations are possible. |
2033 if (source->IsRegister()) { | 2034 if (source->IsRegister()) { |
2034 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2035 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
2035 Register src = g.ToRegister(source); | 2036 Register src = g.ToRegister(source); |
2036 if (destination->IsRegister()) { | 2037 if (destination->IsRegister()) { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 padding_size -= kInstructionSize; | 2210 padding_size -= kInstructionSize; |
2210 } | 2211 } |
2211 } | 2212 } |
2212 } | 2213 } |
2213 | 2214 |
2214 #undef __ | 2215 #undef __ |
2215 | 2216 |
2216 } // namespace compiler | 2217 } // namespace compiler |
2217 } // namespace internal | 2218 } // namespace internal |
2218 } // namespace v8 | 2219 } // namespace v8 |
OLD | NEW |