Home
last modified time | relevance | path

Searched refs:GetConstant (Results 1 – 20 of 20) sorted by relevance

/art/compiler/optimizing/
Dcode_generator_x86_64.cc654 HConstant* constant = source.GetConstant(); in Move()
671 HConstant* constant = source.GetConstant(); in Move()
698 HConstant* const_to_move = locations->Out().GetConstant(); in Move()
707 DCHECK_EQ(location.GetConstant(), const_to_move); in Move()
718 DCHECK_EQ(location.GetConstant(), const_to_move); in Move()
843 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant()); in GenerateTestAndBranch()
969 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant()); in VisitCondition()
1064 int64_t value = right.GetConstant()->AsLongConstant()->GetValue(); in VisitCompare()
1085 float value = right.GetConstant()->AsFloatConstant()->GetValue(); in VisitCompare()
1098 double value = right.GetConstant()->AsDoubleConstant()->GetValue(); in VisitCompare()
[all …]
Dconstant_folding.cc176 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitRem()
209 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitSub()
226 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitXor()
Dcode_generator_x86.cc644 HConstant* constant = source.GetConstant(); in Move32()
695 HConstant* constant = source.GetConstant(); in Move64()
725 HConstant* const_to_move = locations->Out().GetConstant(); in Move()
734 DCHECK_EQ(location.GetConstant(), const_to_move); in Move()
747 DCHECK_EQ(location.GetConstant(), instruction); in Move()
881 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant()); in GenerateTestAndBranch()
1008 int32_t constant = CodeGenerator::GetInt32ValueOf(rhs.GetConstant()); in VisitCondition()
1640 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion()
1641 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion()
1665 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion()
[all …]
Dbounds_check_elimination.cc109 int32_t GetConstant() const { return constant_; } in GetConstant() function in art::ValueBound
560 if (!lower.IsConstant() || lower.GetConstant() == INT_MIN) { in Narrow()
576 upper = upper_bound.GetConstant(); in Narrow()
577 } else if (upper_bound.IsRelatedToArrayLength() && upper_bound.GetConstant() <= 0) { in Narrow()
579 upper = max_array_len + upper_bound.GetConstant(); in Narrow()
610 if ((!upper.IsConstant() || upper.GetConstant() == INT_MAX) && in Narrow()
619 int32_t constant = range->GetLower().GetConstant(); in Narrow()
1207 right_range->GetBound().GetConstant() < 0) { in HandleIfBetweenTwoMonotonicValueRanges()
1423 if (constant < lower.GetConstant()) { in VisitBoundsCheck()
1625 int32_t c1 = lower.GetConstant(); in VisitSub()
[all …]
Dstack_map_test.cc98 ASSERT_EQ(-2, dex_register_map.GetConstant(1, number_of_dex_registers, code_info)); in TEST()
194 ASSERT_EQ(-2, dex_register_map.GetConstant(1, number_of_dex_registers, code_info)); in TEST()
329 ASSERT_EQ(-2, dex_register_map.GetConstant(1, number_of_dex_registers, code_info)); in TEST()
447 ASSERT_EQ(-2, dex_registers0.GetConstant(1, number_of_dex_registers, ci)); in TEST()
453 ASSERT_EQ(-2, dex_registers1.GetConstant(1, number_of_dex_registers, ci)); in TEST()
459 ASSERT_EQ(-2, dex_registers2.GetConstant(1, number_of_dex_registers, ci)); in TEST()
Dcode_generator_mips64.cc607 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation()
646 __ LoadConst32(gpr, GetInt32ValueOf(source.GetConstant()->AsConstant())); in MoveLocation()
648 __ LoadConst64(gpr, GetInt64ValueOf(source.GetConstant()->AsConstant())); in MoveLocation()
696 HConstant* src_cst = source.GetConstant(); in MoveLocation()
1065 rhs_imm = CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()); in HandleBinaryOp()
1172 rhs_imm = CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()); in HandleShift()
1276 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet()
1290 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet()
1304 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_2) + data_offset; in VisitArrayGet()
1319 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_2) + data_offset; in VisitArrayGet()
[all …]
Dcode_generator.cc59 if (location.GetConstant()->IsIntConstant()) { in CheckType()
61 } else if (location.GetConstant()->IsNullConstant()) { in CheckType()
63 } else if (location.GetConstant()->IsLongConstant()) { in CheckType()
65 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType()
68 return location.GetConstant()->IsDoubleConstant() in CheckType()
712 DCHECK_EQ(current, location.GetConstant()); in RecordPcInfo()
Dcode_generator_arm.cc810 HConstant* const_to_move = locations->Out().GetConstant(); in Move()
969 HConstant* constant = locations->InAt(1).GetConstant(); in GenerateTestAndBranch()
1049 int32_t value = CodeGenerator::GetInt32ValueOf(locations->InAt(1).GetConstant()); in VisitCondition()
1719 DCHECK(in.GetConstant()->IsLongConstant()); in VisitTypeConversion()
1720 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion()
1985 second.GetConstant()->AsIntConstant()->GetValue()); in VisitAdd()
2060 -second.GetConstant()->AsIntConstant()->GetValue()); in VisitSub()
2426 if (value.GetConstant()->AsIntConstant()->GetValue() == 0) { in VisitDivZeroCheck()
2440 if (value.GetConstant()->AsLongConstant()->GetValue() == 0) { in VisitDivZeroCheck()
2503 int32_t cst = second.GetConstant()->AsIntConstant()->GetValue(); in HandleShift()
[all …]
Dcommon_arm64.h120 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
Dgraph_visualizer.cc135 HConstant* constant = location.GetConstant(); in DumpLocation()
Dintrinsics_x86_64.cc1165 Immediate(CodeGenerator::GetInt32ValueOf(value.GetConstant()))); in GenPoke()
1173 Immediate(CodeGenerator::GetInt32ValueOf(value.GetConstant()))); in GenPoke()
1181 Immediate(CodeGenerator::GetInt32ValueOf(value.GetConstant()))); in GenPoke()
1188 int64_t v = value.GetConstant()->AsLongConstant()->GetValue(); in GenPoke()
Dlocations.h103 HConstant* GetConstant() const { in GetConstant() function
Dintrinsics_x86.cc1245 Immediate(value_loc.GetConstant()->AsIntConstant()->GetValue())); in GenPoke()
1253 Immediate(value_loc.GetConstant()->AsIntConstant()->GetValue())); in GenPoke()
1261 Immediate(value_loc.GetConstant()->AsIntConstant()->GetValue())); in GenPoke()
1268 int64_t value = value_loc.GetConstant()->AsLongConstant()->GetValue(); in GenPoke()
Dcode_generator_arm64.cc718 HConstant* cst = constant.GetConstant(); in CoherentConstantAndType()
740 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation()
763 MoveConstant(dst, source.GetConstant()); in MoveLocation()
788 HConstant* src_cst = source.GetConstant(); in MoveLocation()
1547 HInstruction* right = compare->GetLocations()->InAt(1).GetConstant(); in VisitCompare()
Dnodes.cc316 HConstant* HGraph::GetConstant(Primitive::Type type, int64_t value) { in GetConstant() function in art::HGraph
Dnodes.h264 HConstant* GetConstant(Primitive::Type type, int64_t value);
/art/runtime/
Dstack_map.h504 int32_t GetConstant(uint16_t dex_register_number, in GetConstant() function
Dstack.cc260 *val = dex_register_map.GetConstant(vreg, number_of_dex_registers, code_info); in GetVRegFromOptimizedCode()
/art/compiler/dex/
Dmir_graph.h271 bool GetConstant(int64_t* ptr_value, bool* wide) const;
Dmir_graph.cc2273 bool MIR::DecodedInstruction::GetConstant(int64_t* ptr_value, bool* wide) const { in GetConstant() function in art::MIR::DecodedInstruction