Lines Matching refs:uint16_t

28 static constexpr uint16_t kInvokeMemoryVersionBumpOp = Instruction::INVOKE_VIRTUAL;
29 static constexpr uint16_t kUnresolvedSFieldOp = Instruction::SGET;
30 static constexpr uint16_t kResolvedSFieldOp = Instruction::SGET_WIDE;
31 static constexpr uint16_t kUnresolvedIFieldOp = Instruction::IGET;
32 static constexpr uint16_t kNonAliasingIFieldLocOp = Instruction::IGET_WIDE;
33 static constexpr uint16_t kNonAliasingIFieldInitialOp = Instruction::IGET_OBJECT;
34 static constexpr uint16_t kAliasingIFieldOp = Instruction::IGET_BOOLEAN;
35 static constexpr uint16_t kAliasingIFieldStartVersionOp = Instruction::IGET_BYTE;
36 static constexpr uint16_t kAliasingIFieldBumpVersionOp = Instruction::IGET_CHAR;
37 static constexpr uint16_t kNonAliasingArrayOp = Instruction::AGET;
38 static constexpr uint16_t kNonAliasingArrayStartVersionOp = Instruction::AGET_WIDE;
39 static constexpr uint16_t kNonAliasingArrayBumpVersionOp = Instruction::AGET_OBJECT;
40 static constexpr uint16_t kAliasingArrayOp = Instruction::AGET_BOOLEAN;
41 static constexpr uint16_t kAliasingArrayStartVersionOp = Instruction::AGET_BYTE;
42 static constexpr uint16_t kAliasingArrayBumpVersionOp = Instruction::AGET_CHAR;
43 static constexpr uint16_t kMergeBlockMemoryVersionBumpOp = Instruction::INVOKE_VIRTUAL_RANGE;
44 static constexpr uint16_t kMergeBlockAliasingIFieldVersionBumpOp = Instruction::IPUT;
45 static constexpr uint16_t kMergeBlockAliasingIFieldMergeLocationOp = Instruction::IPUT_WIDE;
46 static constexpr uint16_t kMergeBlockNonAliasingArrayVersionBumpOp = Instruction::APUT;
47 static constexpr uint16_t kMergeBlockNonAliasingArrayMergeLocationOp = Instruction::APUT_WIDE;
48 static constexpr uint16_t kMergeBlockAliasingArrayVersionBumpOp = Instruction::APUT_OBJECT;
49 static constexpr uint16_t kMergeBlockAliasingArrayMergeLocationOp = Instruction::APUT_BOOLEAN;
50 static constexpr uint16_t kMergeBlockNonAliasingIFieldVersionBumpOp = Instruction::APUT_BYTE;
51 static constexpr uint16_t kMergeBlockSFieldVersionBumpOp = Instruction::APUT_CHAR;
57 static uint16_t StartMemoryVersion(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in StartMemoryVersion()
58 uint16_t field_id) { in StartMemoryVersion()
59 uint16_t type = gvn->GetFieldType(field_id); in StartMemoryVersion()
64 static uint16_t BumpMemoryVersion(GlobalValueNumbering* gvn, uint16_t old_version, in BumpMemoryVersion()
65 uint16_t store_ref_set_id, uint16_t stored_value) { in BumpMemoryVersion()
70 static uint16_t LookupGlobalValue(GlobalValueNumbering* gvn, in LookupGlobalValue()
71 uint16_t field_id, uint16_t base, uint16_t memory_version) { in LookupGlobalValue()
75 static uint16_t LookupMergeValue(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in LookupMergeValue()
76 uint16_t field_id, uint16_t base) { in LookupMergeValue()
78 uint16_t type = gvn->GetFieldType(field_id); in LookupMergeValue()
80 uint16_t loc = gvn->LookupValue(kNonAliasingIFieldLocOp, base, field_id, type); in LookupMergeValue()
91 uint16_t field_id) { in HasNewBaseVersion()
92 uint16_t type = gvn->GetFieldType(field_id); in HasNewBaseVersion()
97 static uint16_t LookupMergeBlockValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeBlockValue()
98 uint16_t field_id) { in LookupMergeBlockValue()
102 static uint16_t LookupMergeLocationValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeLocationValue()
103 uint16_t field_id, uint16_t base) { in LookupMergeLocationValue()
110 static uint16_t StartMemoryVersion(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in StartMemoryVersion()
111 uint16_t array) { in StartMemoryVersion()
115 static uint16_t BumpMemoryVersion(GlobalValueNumbering* gvn, uint16_t old_version, in BumpMemoryVersion()
116 uint16_t store_ref_set_id, uint16_t stored_value) { in BumpMemoryVersion()
121 static uint16_t LookupGlobalValue(GlobalValueNumbering* gvn, in LookupGlobalValue()
122 uint16_t array, uint16_t index, uint16_t memory_version) { in LookupGlobalValue()
126 static uint16_t LookupMergeValue(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in LookupMergeValue()
127 uint16_t array, uint16_t index) { in LookupMergeValue()
133 uint16_t array) { in HasNewBaseVersion()
137 static uint16_t LookupMergeBlockValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeBlockValue()
138 uint16_t array) { in LookupMergeBlockValue()
142 static uint16_t LookupMergeLocationValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeLocationValue()
143 uint16_t array, uint16_t index) { in LookupMergeLocationValue()
150 static uint16_t StartMemoryVersion(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in StartMemoryVersion()
151 uint16_t type) { in StartMemoryVersion()
156 static uint16_t BumpMemoryVersion(GlobalValueNumbering* gvn, uint16_t old_version, in BumpMemoryVersion()
157 uint16_t store_ref_set_id, uint16_t stored_value) { in BumpMemoryVersion()
162 static uint16_t LookupGlobalValue(GlobalValueNumbering* gvn, in LookupGlobalValue()
163 uint16_t type, uint16_t location, uint16_t memory_version) { in LookupGlobalValue()
167 static uint16_t LookupMergeValue(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, in LookupMergeValue()
168 uint16_t type, uint16_t location) { in LookupMergeValue()
170 uint16_t array = gvn->GetArrayLocationBase(location); in LookupMergeValue()
172 uint16_t index = gvn->GetArrayLocationIndex(location); in LookupMergeValue()
180 uint16_t type) { in HasNewBaseVersion()
184 static uint16_t LookupMergeBlockValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeBlockValue()
185 uint16_t type) { in LookupMergeBlockValue()
189 static uint16_t LookupMergeLocationValue(GlobalValueNumbering* gvn, uint16_t lvn_id, in LookupMergeLocationValue()
190 uint16_t type, uint16_t location) { in LookupMergeLocationValue()
211 uint16_t memory_version = values->memory_version_before_stores; in UpdateAliasingValuesLoadVersion()
216 uint16_t ref_set_id = gvn_->GetRefSetId(values->store_loc_set); in UpdateAliasingValuesLoadVersion()
225 uint16_t LocalValueNumbering::AliasingValuesMergeGet(GlobalValueNumbering* gvn, in AliasingValuesMergeGet()
228 uint16_t location) { in AliasingValuesMergeGet()
232 uint16_t value_name; in AliasingValuesMergeGet()
235 uint16_t start_version = Versions::StartMemoryVersion(gvn, lvn, key); in AliasingValuesMergeGet()
251 uint16_t LocalValueNumbering::HandleAliasingValuesGet(Map* map, const typename Map::key_type& key, in HandleAliasingValuesGet()
252 uint16_t location) { in HandleAliasingValuesGet()
254 uint16_t res; in HandleAliasingValuesGet()
273 uint16_t location, uint16_t value) { in HandleAliasingValuesPut()
318 LocalValueNumbering::LocalValueNumbering(GlobalValueNumbering* gvn, uint16_t id, in LocalValueNumbering()
322 sreg_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
323 sreg_wide_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
324 sfield_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
325 non_aliasing_ifield_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
326 aliasing_ifield_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
327 non_aliasing_array_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
328 aliasing_array_value_map_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
330 non_aliasing_refs_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
331 escaped_refs_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
335 null_checked_(std::less<uint16_t>(), allocator->Adapter()), in LocalValueNumbering()
407 uint16_t LocalValueNumbering::NewMemoryVersion(uint16_t* new_version) { in NewMemoryVersion()
468 for (uint16_t i = 0u; i != mir->ssa_rep->num_uses; ++i) { in PruneNonAliasingRefsForCatch()
469 uint16_t value_name = lvn->GetOperandValue(mir->ssa_rep->uses[i]); in PruneNonAliasingRefsForCatch()
596 uint16_t loc; in IntersectAliasingValueLocations()
671 uint16_t field_id = entry.first; in MergeSFieldValues()
673 uint16_t value_name = kNoValue; in MergeSFieldValues()
681 uint16_t type = gvn_->GetFieldType(field_id); in MergeSFieldValues()
709 uint16_t field_loc = entry.first; in MergeNonAliasingIFieldValues()
711 uint16_t value_name = kNoValue; in MergeNonAliasingIFieldValues()
753 uint16_t load_memory_version_for_same_version = kNoValue; in MergeAliasingValues()
826 for (uint16_t location : it->second.store_loc_set) { in MergeAliasingValues()
835 uint16_t location = load_value_entry.first; in MergeAliasingValues()
837 uint16_t value_name = kNoValue; in MergeAliasingValues()
933 uint16_t LocalValueNumbering::MarkNonAliasingNonNull(MIR* mir) { in MarkNonAliasingNonNull()
934 uint16_t res = GetOperandValue(mir->ssa_rep->defs[0]); in MarkNonAliasingNonNull()
941 bool LocalValueNumbering::IsNonAliasing(uint16_t reg) const { in IsNonAliasing()
945 bool LocalValueNumbering::IsNonAliasingIField(uint16_t reg, uint16_t field_id, in IsNonAliasingIField()
946 uint16_t type) const { in IsNonAliasingIField()
963 bool LocalValueNumbering::IsNonAliasingArray(uint16_t reg, uint16_t type) const { in IsNonAliasingArray()
975 void LocalValueNumbering::HandleNullCheck(MIR* mir, uint16_t reg) { in HandleNullCheck()
989 void LocalValueNumbering::HandleRangeCheck(MIR* mir, uint16_t array, uint16_t index) { in HandleRangeCheck()
1007 uint16_t base = GetOperandValue(mir->ssa_rep->uses[0]); in HandlePutObject()
1011 void LocalValueNumbering::HandleEscapingRef(uint16_t base) { in HandleEscapingRef()
1019 uint16_t LocalValueNumbering::HandlePhi(MIR* mir) { in HandlePhi()
1040 uint16_t value_name = kNoValue; in HandlePhi()
1080 uint16_t LocalValueNumbering::HandleAGet(MIR* mir, uint16_t opcode) { in HandleAGet()
1082 uint16_t array = GetOperandValue(mir->ssa_rep->uses[0]); in HandleAGet()
1084 uint16_t index = GetOperandValue(mir->ssa_rep->uses[1]); in HandleAGet()
1086 uint16_t type = opcode - Instruction::AGET; in HandleAGet()
1088 uint16_t res; in HandleAGet()
1093 uint16_t location = gvn_->GetArrayLocation(array, index); in HandleAGet()
1105 void LocalValueNumbering::HandleAPut(MIR* mir, uint16_t opcode) { in HandleAPut()
1108 uint16_t array = GetOperandValue(mir->ssa_rep->uses[array_idx]); in HandleAPut()
1110 uint16_t index = GetOperandValue(mir->ssa_rep->uses[index_idx]); in HandleAPut()
1113 uint16_t type = opcode - Instruction::APUT; in HandleAPut()
1114 uint16_t value = (opcode == Instruction::APUT_WIDE) in HandleAPut()
1126 uint16_t location = gvn_->GetArrayLocation(array, index); in HandleAPut()
1136 for (uint16_t escaped_array : escaped_refs_) { in HandleAPut()
1143 uint16_t LocalValueNumbering::HandleIGet(MIR* mir, uint16_t opcode) { in HandleIGet()
1144 uint16_t base = GetOperandValue(mir->ssa_rep->uses[0]); in HandleIGet()
1147 uint16_t res; in HandleIGet()
1154 uint16_t type = opcode - Instruction::IGET; in HandleIGet()
1155 uint16_t field_id = gvn_->GetFieldId(field_info, type); in HandleIGet()
1157 uint16_t loc = gvn_->LookupValue(kNonAliasingIFieldLocOp, base, field_id, type); in HandleIGet()
1178 void LocalValueNumbering::HandleIPut(MIR* mir, uint16_t opcode) { in HandleIPut()
1179 uint16_t type = opcode - Instruction::IPUT; in HandleIPut()
1181 uint16_t base = GetOperandValue(mir->ssa_rep->uses[base_reg]); in HandleIPut()
1194 for (uint16_t escaped_ref : escaped_refs_) { in HandleIPut()
1212 uint16_t field_id = gvn_->GetFieldId(field_info, type); in HandleIPut()
1213 uint16_t value = (opcode == Instruction::IPUT_WIDE) in HandleIPut()
1217 uint16_t loc = gvn_->LookupValue(kNonAliasingIFieldLocOp, base, field_id, type); in HandleIPut()
1239 for (uint16_t escaped_ref : escaped_refs_) { in HandleIPut()
1247 uint16_t LocalValueNumbering::HandleSGet(MIR* mir, uint16_t opcode) { in HandleSGet()
1253 uint16_t res; in HandleSGet()
1260 uint16_t type = opcode - Instruction::SGET; in HandleSGet()
1261 uint16_t field_id = gvn_->GetFieldId(field_info, type); in HandleSGet()
1282 void LocalValueNumbering::HandleSPut(MIR* mir, uint16_t opcode) { in HandleSPut()
1288 uint16_t type = opcode - Instruction::SPUT; in HandleSPut()
1299 uint16_t field_id = gvn_->GetFieldId(field_info, type); in HandleSPut()
1300 uint16_t value = (opcode == Instruction::SPUT_WIDE) in HandleSPut()
1320 void LocalValueNumbering::RemoveSFieldsForType(uint16_t type) { in RemoveSFieldsForType()
1345 uint16_t LocalValueNumbering::GetValueNumber(MIR* mir) { in GetValueNumber()
1346 uint16_t res = kNoValue; in GetValueNumber()
1347 uint16_t opcode = mir->dalvikInsn.opcode; in GetValueNumber()
1403 uint16_t array = MarkNonAliasingNonNull(mir->next); in GetValueNumber()
1411 uint16_t index = gvn_->LookupValue(Instruction::CONST, i, 0u, 0); in GetValueNumber()
1412 uint16_t value = GetOperandValue(mir->ssa_rep->uses[i]); in GetValueNumber()
1422 uint16_t reg = GetOperandValue(mir->ssa_rep->uses[i]); in GetValueNumber()
1436 uint16_t reg = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1445 uint16_t reg = GetOperandValue(mir->ssa_rep->uses[i]); in GetValueNumber()
1525 uint16_t low_res = gvn_->LookupValue(Instruction::CONST, Low16Bits(mir->dalvikInsn.vB), in GetValueNumber()
1527 uint16_t high_res; in GetValueNumber()
1541 uint16_t low_res = gvn_->LookupValue(Instruction::CONST, Low16Bits(low_word), in GetValueNumber()
1543 uint16_t high_res = gvn_->LookupValue(Instruction::CONST, Low16Bits(high_word), in GetValueNumber()
1551 uint16_t low_res = gvn_->LookupValue(Instruction::CONST, 0, 0, 1); in GetValueNumber()
1552 uint16_t high_res = gvn_->LookupValue(Instruction::CONST, 0, in GetValueNumber()
1561 uint16_t reg = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1574 uint16_t operand1 = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1585 uint16_t operand1 = GetOperandValueWide(mir->ssa_rep->uses[0]); in GetValueNumber()
1598 uint16_t operand1 = GetOperandValueWide(mir->ssa_rep->uses[0]); in GetValueNumber()
1609 uint16_t operand1 = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1619 uint16_t operand1 = GetOperandValueWide(mir->ssa_rep->uses[0]); in GetValueNumber()
1620 uint16_t operand2 = GetOperandValueWide(mir->ssa_rep->uses[2]); in GetValueNumber()
1651 uint16_t operand1 = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1652 uint16_t operand2 = GetOperandValue(mir->ssa_rep->uses[1]); in GetValueNumber()
1685 uint16_t operand1 = GetOperandValueWide(mir->ssa_rep->uses[0]); in GetValueNumber()
1686 uint16_t operand2 = GetOperandValueWide(mir->ssa_rep->uses[2]); in GetValueNumber()
1699 uint16_t operand1 = GetOperandValueWide(mir->ssa_rep->uses[0]); in GetValueNumber()
1700 uint16_t operand2 = GetOperandValue(mir->ssa_rep->uses[2]); in GetValueNumber()
1717 uint16_t operand1 = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1718 uint16_t operand2 = GetOperandValue(mir->ssa_rep->uses[1]); in GetValueNumber()
1744 uint16_t operand1 = GetOperandValue(mir->ssa_rep->uses[0]); in GetValueNumber()
1745 uint16_t operand2 = gvn_->LookupValue(Instruction::CONST, mir->dalvikInsn.vC, 0, 0); in GetValueNumber()