diff options
| author | 2014-07-02 15:01:40 +0000 | |
|---|---|---|
| committer | 2014-07-01 17:52:00 +0000 | |
| commit | 395fa7286ca2c6cd3dd55c0eab5b0f69dc063fb8 (patch) | |
| tree | bbd9dddd0436da566365ada5deb1840e315e1b11 /compiler/optimizing/builder.cc | |
| parent | d6ab04646d8eec6f24b200f8649f3d942d9ad17e (diff) | |
| parent | 412f10cfed002ab617c78f2621d68446ca4dd8bd (diff) | |
Merge "Support longs in the register allocator for x86_64."
Diffstat (limited to 'compiler/optimizing/builder.cc')
| -rw-r--r-- | compiler/optimizing/builder.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index c3a322caee..cc995f72a1 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -226,7 +226,7 @@ HBasicBlock* HGraphBuilder::FindBlockStartingAt(int32_t index) const { } template<typename T> -void HGraphBuilder::Binop_32x(const Instruction& instruction, Primitive::Type type) { +void HGraphBuilder::Binop_23x(const Instruction& instruction, Primitive::Type type) { HInstruction* first = LoadLocal(instruction.VRegB(), type); HInstruction* second = LoadLocal(instruction.VRegC(), type); current_block_->AddInstruction(new (arena_) T(type, first, second)); @@ -501,22 +501,22 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, int32_ } case Instruction::ADD_INT: { - Binop_32x<HAdd>(instruction, Primitive::kPrimInt); + Binop_23x<HAdd>(instruction, Primitive::kPrimInt); break; } case Instruction::ADD_LONG: { - Binop_32x<HAdd>(instruction, Primitive::kPrimLong); + Binop_23x<HAdd>(instruction, Primitive::kPrimLong); break; } case Instruction::SUB_INT: { - Binop_32x<HSub>(instruction, Primitive::kPrimInt); + Binop_23x<HSub>(instruction, Primitive::kPrimInt); break; } case Instruction::SUB_LONG: { - Binop_32x<HSub>(instruction, Primitive::kPrimLong); + Binop_23x<HSub>(instruction, Primitive::kPrimLong); break; } @@ -573,6 +573,11 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, int32_ UpdateLocal(instruction.VRegA(), current_block_->GetLastInstruction()); break; + case Instruction::CMP_LONG: { + Binop_23x<HCompare>(instruction, Primitive::kPrimLong); + break; + } + case Instruction::NOP: break; |