| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 } | 738 } |
| 739 | 739 |
| 740 | 740 |
| 741 // Assembles boolean materializations after an instruction. | 741 // Assembles boolean materializations after an instruction. |
| 742 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 742 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
| 743 FlagsCondition condition) { | 743 FlagsCondition condition) { |
| 744 ArmOperandConverter i(this, instr); | 744 ArmOperandConverter i(this, instr); |
| 745 | 745 |
| 746 // Materialize a full 32-bit 1 or 0 value. The result register is always the | 746 // Materialize a full 32-bit 1 or 0 value. The result register is always the |
| 747 // last output of the instruction. | 747 // last output of the instruction. |
| 748 DCHECK_NE(0, instr->OutputCount()); | 748 DCHECK_NE(0u, instr->OutputCount()); |
| 749 Register reg = i.OutputRegister(instr->OutputCount() - 1); | 749 Register reg = i.OutputRegister(instr->OutputCount() - 1); |
| 750 Condition cc = FlagsConditionToCondition(condition); | 750 Condition cc = FlagsConditionToCondition(condition); |
| 751 __ mov(reg, Operand(0)); | 751 __ mov(reg, Operand(0)); |
| 752 __ mov(reg, Operand(1), LeaveCC, cc); | 752 __ mov(reg, Operand(1), LeaveCC, cc); |
| 753 } | 753 } |
| 754 | 754 |
| 755 | 755 |
| 756 void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { | 756 void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { |
| 757 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 757 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 758 isolate(), deoptimization_id, Deoptimizer::LAZY); | 758 isolate(), deoptimization_id, Deoptimizer::LAZY); |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 } | 1035 } |
| 1036 } | 1036 } |
| 1037 MarkLazyDeoptSite(); | 1037 MarkLazyDeoptSite(); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 #undef __ | 1040 #undef __ |
| 1041 | 1041 |
| 1042 } // namespace compiler | 1042 } // namespace compiler |
| 1043 } // namespace internal | 1043 } // namespace internal |
| 1044 } // namespace v8 | 1044 } // namespace v8 |
| OLD | NEW |