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/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/ppc/macro-assembler-ppc.h" | 10 #include "src/ppc/macro-assembler-ppc.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 } else if (cond == gt) { | 1009 } else if (cond == gt) { |
1010 __ bunordered(tlabel, cr); | 1010 __ bunordered(tlabel, cr); |
1011 // Unnecessary for ne/ge since only FU bit will be set. | 1011 // Unnecessary for ne/ge since only FU bit will be set. |
1012 } | 1012 } |
1013 } | 1013 } |
1014 __ b(cond, tlabel, cr); | 1014 __ b(cond, tlabel, cr); |
1015 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. | 1015 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. |
1016 } | 1016 } |
1017 | 1017 |
1018 | 1018 |
1019 void CodeGenerator::AssembleArchJump(BasicBlock::RpoNumber target) { | 1019 void CodeGenerator::AssembleArchJump(RpoNumber target) { |
1020 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); | 1020 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); |
1021 } | 1021 } |
1022 | 1022 |
1023 | 1023 |
1024 // Assembles boolean materializations after an instruction. | 1024 // Assembles boolean materializations after an instruction. |
1025 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 1025 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
1026 FlagsCondition condition) { | 1026 FlagsCondition condition) { |
1027 PPCOperandConverter i(this, instr); | 1027 PPCOperandConverter i(this, instr); |
1028 Label done; | 1028 Label done; |
1029 ArchOpcode op = instr->arch_opcode(); | 1029 ArchOpcode op = instr->arch_opcode(); |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 } | 1398 } |
1399 } | 1399 } |
1400 MarkLazyDeoptSite(); | 1400 MarkLazyDeoptSite(); |
1401 } | 1401 } |
1402 | 1402 |
1403 #undef __ | 1403 #undef __ |
1404 | 1404 |
1405 } // namespace compiler | 1405 } // namespace compiler |
1406 } // namespace internal | 1406 } // namespace internal |
1407 } // namespace v8 | 1407 } // namespace v8 |
OLD | NEW |