diff options
author | Andreas Gampe <agampe@google.com> | 2016-11-28 07:38:35 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-11-29 11:11:46 -0800 |
commit | 8a0128a5ca0784f6d2b4ca27907e8967a74bc4c5 (patch) | |
tree | 0dec75200282ae5e49785395e97bd4e6459f1c09 /compiler/optimizing/instruction_builder.cc | |
parent | 60438b46090d22bb9b978196f5aa53fab3b89759 (diff) |
ART: Add dex::StringIndex
Add abstraction for uint32_t string index.
Test: m test-art-host
Change-Id: I917c2881702fe3df112c713f06980f2278ced7ed
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r-- | compiler/optimizing/instruction_builder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index 40de5ce0cc..b97581beb3 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -2625,7 +2625,7 @@ bool HInstructionBuilder::ProcessDexInstruction(const Instruction& instruction, } case Instruction::CONST_STRING: { - uint32_t string_index = instruction.VRegB_21c(); + dex::StringIndex string_index(instruction.VRegB_21c()); AppendInstruction( new (arena_) HLoadString(graph_->GetCurrentMethod(), string_index, *dex_file_, dex_pc)); UpdateLocal(instruction.VRegA_21c(), current_block_->GetLastInstruction()); @@ -2633,7 +2633,7 @@ bool HInstructionBuilder::ProcessDexInstruction(const Instruction& instruction, } case Instruction::CONST_STRING_JUMBO: { - uint32_t string_index = instruction.VRegB_31c(); + dex::StringIndex string_index(instruction.VRegB_31c()); AppendInstruction( new (arena_) HLoadString(graph_->GetCurrentMethod(), string_index, *dex_file_, dex_pc)); UpdateLocal(instruction.VRegA_31c(), current_block_->GetLastInstruction()); |