From d04d309276a6d35b34ff9805de3754299bbde4a9 Mon Sep 17 00:00:00 2001 From: Razvan A Lupusoru Date: Mon, 4 Aug 2014 12:30:20 -0700 Subject: ART: Support MIRGraph constant interface -Adds a helper to be able to ask for a wide constant. -Allows MIRGraph to provide interface to set constants. Change-Id: Id282ee1604a0bd0bce6f495176d6bca35dcd5a00 Signed-off-by: Razvan A Lupusoru --- compiler/dex/mir_optimization.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/dex/mir_optimization.cc') diff --git a/compiler/dex/mir_optimization.cc b/compiler/dex/mir_optimization.cc index 6658848570..d37e9b6bdb 100644 --- a/compiler/dex/mir_optimization.cc +++ b/compiler/dex/mir_optimization.cc @@ -31,12 +31,12 @@ static unsigned int Predecessors(BasicBlock* bb) { } /* Setup a constant value for opcodes thare have the DF_SETS_CONST attribute */ -void MIRGraph::SetConstant(int32_t ssa_reg, int value) { +void MIRGraph::SetConstant(int32_t ssa_reg, int32_t value) { is_constant_v_->SetBit(ssa_reg); constant_values_[ssa_reg] = value; } -void MIRGraph::SetConstantWide(int ssa_reg, int64_t value) { +void MIRGraph::SetConstantWide(int32_t ssa_reg, int64_t value) { is_constant_v_->SetBit(ssa_reg); is_constant_v_->SetBit(ssa_reg + 1); constant_values_[ssa_reg] = Low32Bits(value); -- cgit v1.2.3-59-g8ed1b