| 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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { | 733 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { |
| 734 ArmOperandConverter i(this, instr); | 734 ArmOperandConverter i(this, instr); |
| 735 Label* tlabel = branch->true_label; | 735 Label* tlabel = branch->true_label; |
| 736 Label* flabel = branch->false_label; | 736 Label* flabel = branch->false_label; |
| 737 Condition cc = FlagsConditionToCondition(branch->condition); | 737 Condition cc = FlagsConditionToCondition(branch->condition); |
| 738 __ b(cc, tlabel); | 738 __ b(cc, tlabel); |
| 739 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. | 739 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. |
| 740 } | 740 } |
| 741 | 741 |
| 742 | 742 |
| 743 void CodeGenerator::AssembleArchJump(BasicBlock::RpoNumber target) { | 743 void CodeGenerator::AssembleArchJump(RpoNumber target) { |
| 744 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); | 744 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); |
| 745 } | 745 } |
| 746 | 746 |
| 747 | 747 |
| 748 // Assembles boolean materializations after an instruction. | 748 // Assembles boolean materializations after an instruction. |
| 749 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 749 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
| 750 FlagsCondition condition) { | 750 FlagsCondition condition) { |
| 751 ArmOperandConverter i(this, instr); | 751 ArmOperandConverter i(this, instr); |
| 752 | 752 |
| 753 // Materialize a full 32-bit 1 or 0 value. The result register is always the | 753 // Materialize a full 32-bit 1 or 0 value. The result register is always the |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 } | 1073 } |
| 1074 } | 1074 } |
| 1075 MarkLazyDeoptSite(); | 1075 MarkLazyDeoptSite(); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 #undef __ | 1078 #undef __ |
| 1079 | 1079 |
| 1080 } // namespace compiler | 1080 } // namespace compiler |
| 1081 } // namespace internal | 1081 } // namespace internal |
| 1082 } // namespace v8 | 1082 } // namespace v8 |
| OLD | NEW |