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" |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 UNREACHABLE(); | 834 UNREACHABLE(); |
835 } | 835 } |
836 } else { | 836 } else { |
837 Condition cc = FlagsConditionToCondition(condition); | 837 Condition cc = FlagsConditionToCondition(condition); |
838 __ B(cc, tlabel); | 838 __ B(cc, tlabel); |
839 } | 839 } |
840 if (!branch->fallthru) __ B(flabel); // no fallthru to flabel. | 840 if (!branch->fallthru) __ B(flabel); // no fallthru to flabel. |
841 } | 841 } |
842 | 842 |
843 | 843 |
844 void CodeGenerator::AssembleArchJump(BasicBlock::RpoNumber target) { | 844 void CodeGenerator::AssembleArchJump(RpoNumber target) { |
845 if (!IsNextInAssemblyOrder(target)) __ B(GetLabel(target)); | 845 if (!IsNextInAssemblyOrder(target)) __ B(GetLabel(target)); |
846 } | 846 } |
847 | 847 |
848 | 848 |
849 // Assemble boolean materializations after this instruction. | 849 // Assemble boolean materializations after this instruction. |
850 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 850 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
851 FlagsCondition condition) { | 851 FlagsCondition condition) { |
852 Arm64OperandConverter i(this, instr); | 852 Arm64OperandConverter i(this, instr); |
853 | 853 |
854 // Materialize a full 64-bit 1 or 0 value. The result register is always the | 854 // Materialize a full 64-bit 1 or 0 value. The result register is always the |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 } | 1155 } |
1156 } | 1156 } |
1157 MarkLazyDeoptSite(); | 1157 MarkLazyDeoptSite(); |
1158 } | 1158 } |
1159 | 1159 |
1160 #undef __ | 1160 #undef __ |
1161 | 1161 |
1162 } // namespace compiler | 1162 } // namespace compiler |
1163 } // namespace internal | 1163 } // namespace internal |
1164 } // namespace v8 | 1164 } // namespace v8 |
OLD | NEW |