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/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
11 #include "src/compiler/node-properties-inl.h" | 11 #include "src/compiler/node-properties-inl.h" |
12 #include "src/scopes.h" | 12 #include "src/scopes.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 namespace compiler { | 16 namespace compiler { |
17 | 17 |
18 #define __ masm()-> | 18 #define __ masm()-> |
19 | 19 |
20 | 20 |
21 // Adds Arm64-specific methods to convert InstructionOperands. | 21 // Adds Arm64-specific methods to convert InstructionOperands. |
22 class Arm64OperandConverter V8_FINAL : public InstructionOperandConverter { | 22 class Arm64OperandConverter FINAL : public InstructionOperandConverter { |
23 public: | 23 public: |
24 Arm64OperandConverter(CodeGenerator* gen, Instruction* instr) | 24 Arm64OperandConverter(CodeGenerator* gen, Instruction* instr) |
25 : InstructionOperandConverter(gen, instr) {} | 25 : InstructionOperandConverter(gen, instr) {} |
26 | 26 |
27 Register InputRegister32(int index) { | 27 Register InputRegister32(int index) { |
28 return ToRegister(instr_->InputAt(index)).W(); | 28 return ToRegister(instr_->InputAt(index)).W(); |
29 } | 29 } |
30 | 30 |
31 Register InputRegister64(int index) { return InputRegister(index); } | 31 Register InputRegister64(int index) { return InputRegister(index); } |
32 | 32 |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 } | 839 } |
840 | 840 |
841 | 841 |
842 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 842 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
843 | 843 |
844 #undef __ | 844 #undef __ |
845 | 845 |
846 } // namespace compiler | 846 } // namespace compiler |
847 } // namespace internal | 847 } // namespace internal |
848 } // namespace v8 | 848 } // namespace v8 |
OLD | NEW |