Home
last modified time | relevance | path

Searched refs:GetValue (Results 1 – 25 of 77) sorted by relevance

1234

/art/compiler/optimizing/
Dload_store_analysis.cc56 idx1->GetConstantRight()->AsIntConstant()->GetValue() : in CanBinaryOpAndIndexAlias()
57 -idx1->GetConstantRight()->AsIntConstant()->GetValue(); in CanBinaryOpAndIndexAlias()
85 idx1->GetConstantRight()->AsIntConstant()->GetValue() : in CanBinaryOpsAlias()
86 -idx1->GetConstantRight()->AsIntConstant()->GetValue(); in CanBinaryOpsAlias()
88 idx2->GetConstantRight()->AsIntConstant()->GetValue() : in CanBinaryOpsAlias()
89 -idx2->GetConstantRight()->AsIntConstant()->GetValue(); in CanBinaryOpsAlias()
111 int64_t l1 = idx1->AsIntConstant()->GetValue(); in CanArrayElementsAlias()
112 int64_t l2 = idx2->AsIntConstant()->GetValue(); in CanArrayElementsAlias()
Dconstant_folding_test.cc132 ASSERT_EQ(inst->AsIntConstant()->GetValue(), -1); in TEST_F()
193 ASSERT_EQ(inst->AsLongConstant()->GetValue(), INT64_C(-4294967296)); in TEST_F()
254 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 3); in TEST_F()
333 ASSERT_EQ(inst1->AsIntConstant()->GetValue(), 12); in TEST_F()
336 ASSERT_EQ(inst2->AsIntConstant()->GetValue(), 9); in TEST_F()
339 ASSERT_EQ(inst3->AsIntConstant()->GetValue(), 3); in TEST_F()
404 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 1); in TEST_F()
467 ASSERT_EQ(inst->AsLongConstant()->GetValue(), 3); in TEST_F()
531 ASSERT_EQ(inst->AsLongConstant()->GetValue(), 1); in TEST_F()
631 ASSERT_EQ(inst1->AsIntConstant()->GetValue(), 20); in TEST_F()
[all …]
Dnodes.h2898 int32_t GetValue() const { return value_; } in GetValue() function
2909 size_t ComputeHashCode() const OVERRIDE { return GetValue(); } in ComputeHashCode()
2911 bool IsMinusOne() const OVERRIDE { return GetValue() == -1; } in IsMinusOne()
2912 bool IsArithmeticZero() const OVERRIDE { return GetValue() == 0; } in IsArithmeticZero()
2913 bool IsZeroBitPattern() const OVERRIDE { return GetValue() == 0; } in IsZeroBitPattern()
2914 bool IsOne() const OVERRIDE { return GetValue() == 1; } in IsOne()
2918 bool IsTrue() const { return GetValue() == 1; } in IsTrue()
2919 bool IsFalse() const { return GetValue() == 0; } in IsFalse()
2944 int64_t GetValue() const { return value_; } in GetValue() function
2953 size_t ComputeHashCode() const OVERRIDE { return static_cast<size_t>(GetValue()); } in ComputeHashCode()
[all …]
Dnodes_shared.cc36 *shift_amount = instruction->AsShl()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
39 *shift_amount = instruction->AsShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
42 *shift_amount = instruction->AsUShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
Dnodes_shared.h102 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate()
106 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate()
Dssa_builder.cc56 DCHECK_EQ(0, int_operand->AsIntConstant()->GetValue()); in FixNullConstantType()
378 HInstruction* value = aset->GetValue(); in FixAmbiguousArrayOps()
572 float value = bit_cast<float, int32_t>(constant->GetValue()); in GetFloatEquivalent()
579 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent()
594 double value = bit_cast<double, int64_t>(constant->GetValue()); in GetDoubleEquivalent()
601 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()
689 if (value->IsIntConstant() && value->AsIntConstant()->GetValue() == 0) { in GetReferenceTypeEquivalent()
Dcommon_arm.h166 return instr->AsIntConstant()->GetValue(); in Int32ConstantFrom()
171 const int64_t ret = instr->AsLongConstant()->GetValue(); in Int32ConstantFrom()
185 return instr->AsIntConstant()->GetValue(); in Int64ConstantFrom()
190 return instr->AsLongConstant()->GetValue(); in Int64ConstantFrom()
Dcode_generator.h489 return constant->AsIntConstant()->GetValue(); in GetInt8ValueOf()
494 return constant->AsIntConstant()->GetValue(); in GetInt16ValueOf()
499 return constant->AsIntConstant()->GetValue(); in GetInt32ValueOf()
504 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
510 return constant->AsIntConstant()->GetValue(); in GetInt64ValueOf()
514 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
516 return constant->AsLongConstant()->GetValue(); in GetInt64ValueOf()
519 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()
Dgraph_visualizer.cc294 stream << constant->AsIntConstant()->GetValue(); in DumpLocation()
296 stream << constant->AsLongConstant()->GetValue(); in DumpLocation()
298 stream << constant->AsFloatConstant()->GetValue(); in DumpLocation()
300 stream << constant->AsDoubleConstant()->GetValue(); in DumpLocation()
350 StartAttributeStream() << instruction->GetValue(); in VisitIntConstant()
354 StartAttributeStream() << instruction->GetValue(); in VisitLongConstant()
358 StartAttributeStream() << instruction->GetValue(); in VisitFloatConstant()
362 StartAttributeStream() << instruction->GetValue(); in VisitDoubleConstant()
Dstack_map_test.cc124 ASSERT_EQ(0, location0.GetValue()); in TEST()
125 ASSERT_EQ(-2, location1.GetValue()); in TEST()
240 ASSERT_EQ(0, location0.GetValue()); in TEST()
241 ASSERT_EQ(-2, location1.GetValue()); in TEST()
300 ASSERT_EQ(18, location0.GetValue()); in TEST()
301 ASSERT_EQ(3, location1.GetValue()); in TEST()
354 ASSERT_EQ(6, location0.GetValue()); in TEST()
355 ASSERT_EQ(8, location1.GetValue()); in TEST()
408 ASSERT_EQ(3, location0.GetValue()); in TEST()
409 ASSERT_EQ(1, location1.GetValue()); in TEST()
[all …]
Dinstruction_simplifier_shared.cc243 access->AsArraySet()->GetValue()->GetType() == DataType::Type::kReference) { in TryExtractArrayAccessAddress()
314 uint32_t another_data_offset = another_access->GetOffset()->AsIntConstant()->GetValue(); in TryExtractVecArrayAccessAddress()
315 size_t another_component_shift = another_access->GetShift()->AsIntConstant()->GetValue(); in TryExtractVecArrayAccessAddress()
Dcommon_arm64.h157 return instr->AsIntConstant()->GetValue(); in Int64ConstantFrom()
162 return instr->AsLongConstant()->GetValue(); in Int64ConstantFrom()
245 return vixl::aarch64::Assembler::IsImmFP32(constant->AsFloatConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate()
247 return vixl::aarch64::Assembler::IsImmFP64(constant->AsDoubleConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate()
Dinstruction_simplifier.cc699 if ((instruction->GetValue()->GetType() == DataType::Type::kReference) in VisitInstanceFieldSet()
700 && CanEnsureNotNullAt(instruction->GetValue(), instruction)) { in VisitInstanceFieldSet()
706 if ((instruction->GetValue()->GetType() == DataType::Type::kReference) in VisitStaticFieldSet()
707 && CanEnsureNotNullAt(instruction->GetValue(), instruction)) { in VisitStaticFieldSet()
827 DCHECK(input->AsIntConstant()->IsFalse()) << input->AsIntConstant()->GetValue(); in VisitBooleanNot()
927 DCHECK(condition->AsIntConstant()->IsFalse()) << condition->AsIntConstant()->GetValue(); in VisitSelect()
1012 HInstruction* value = instruction->GetValue(); in VisitArraySet()
1113 DCHECK_EQ(instruction->AsInstanceFieldSet()->GetValue(), type_conversion); in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1118 DCHECK_EQ(instruction->AsStaticFieldSet()->GetValue(), type_conversion); in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1125 DCHECK_EQ(instruction->AsArraySet()->GetValue(), type_conversion); in IsTypeConversionForStoringIntoNoWiderFieldOnly()
[all …]
Dssa_builder.h82 DataType::Type type = aset->GetValue()->GetType(); in MaybeAddAmbiguousArraySet()
Dcode_generator_x86_64.cc1373 Load64BitValue(dest, constant->AsLongConstant()->GetValue()); in Move()
1549 right.GetConstant()->AsFloatConstant()->GetValue())); in GenerateCompareTest()
1563 right.GetConstant()->AsDoubleConstant()->GetValue())); in GenerateCompareTest()
1643 DCHECK(cond->AsIntConstant()->IsFalse()) << cond->AsIntConstant()->GetValue(); in GenerateTestAndBranch()
1922 float value = rhs.GetConstant()->AsFloatConstant()->GetValue(); in HandleCondition()
1935 double value = rhs.GetConstant()->AsDoubleConstant()->GetValue(); in HandleCondition()
2096 float value = right.GetConstant()->AsFloatConstant()->GetValue(); in VisitCompare()
2110 double value = right.GetConstant()->AsDoubleConstant()->GetValue(); in VisitCompare()
2797 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion()
2922 int32_t v = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion()
[all …]
Dbounds_check_elimination.cc40 int32_t instr_const = instruction->AsIntConstant()->GetValue(); in ValueBound()
78 int32_t v = right->AsIntConstant()->GetValue(); in IsAddOrSubAConstant()
98 return ValueBound(nullptr, instruction->AsIntConstant()->GetValue()); in AsValueBound()
114 return ValueBound(nullptr, instruction->AsIntConstant()->GetValue()); in DetectValueBoundFromValue()
444 int32_t initial_constant = initial_->AsIntConstant()->GetValue(); in Narrow()
865 int32_t constant = index->AsIntConstant()->GetValue(); in VisitBoundsCheck()
870 if (constant < array_length->AsIntConstant()->GetValue()) { in VisitBoundsCheck()
1009 ValueRange* range = left_range->Add(right->AsIntConstant()->GetValue()); in VisitAdd()
1024 ValueRange* range = left_range->Add(-right->AsIntConstant()->GetValue()); in VisitSub()
1080 right_const = right->AsIntConstant()->GetValue(); in FindAndHandlePartialArrayLength()
[all …]
Ddead_code_elimination.cc54 DCHECK(condition->AsIntConstant()->IsFalse()) << condition->AsIntConstant()->GetValue(); in MarkReachableBlocks()
63 int32_t switch_value = switch_input->AsIntConstant()->GetValue(); in MarkReachableBlocks()
374 << value_to_check->AsIntConstant()->GetValue(); in SimplifyIfs()
/art/runtime/mirror/
Dstring.cc51 return FastIndexOf<uint16_t>(GetValue(), ch, start); in FastIndexOf()
72 hash_code = ComputeUtf16Hash(GetValue(), GetLength()); in ComputeHashCode()
82 return CountUtf8Bytes(GetValue(), GetLength()); in GetUtfLength()
156 uint16_t* new_value = new_string->GetValue(); in AllocFromStrings()
162 memcpy(new_value, string->GetValue(), length * sizeof(uint16_t)); in AllocFromStrings()
169 memcpy(new_value + length, string2->GetValue(), length2 * sizeof(uint16_t)); in AllocFromStrings()
191 uint16_t* array = string->GetValue(); in AllocFromUtf16()
225 uint16_t* utf16_data_out = string->GetValue(); in AllocFromModifiedUtf8()
326 const uint16_t* chars = GetValue(); in ToModifiedUtf8()
354 const uint16_t* uncompressed_chars = lhs->IsCompressed() ? rhs->GetValue() : lhs->GetValue(); in CompareTo()
[all …]
Dstring-inl.h91 uint16_t* value = string->GetValue(); in operator()
125 memcpy(string->GetValue(), src, length * sizeof(uint16_t)); in operator()
155 const uint16_t* const src = src_string_->GetValue() + offset_; in operator()
161 memcpy(string->GetValue(), src, length * sizeof(uint16_t)); in operator()
181 return GetValue()[index]; in CharAt()
290 ((string->IsCompressed()) ? true : String::AllASCII<uint16_t>(string->GetValue() + offset, in AllocFromString()
308 DCHECK(result != 0 || ComputeUtf16Hash(GetValue(), GetLength()) == 0) in GetHashCode()
Dobject-readbarrier-inl.h61 OFFSET_OF_OBJECT_MEMBER(Object, monitor_), old_val.GetValue(), new_val.GetValue()); in CasLockWordWeakRelaxed()
67 OFFSET_OF_OBJECT_MEMBER(Object, monitor_), old_val.GetValue(), new_val.GetValue()); in CasLockWordWeakRelease()
/art/runtime/
Dcheck_reference_map_visitor.h87 DCHECK_EQ(location.GetValue() % kFrameSlotSize, 0); in CheckOptimizedMethod()
88 CHECK(stack_mask.LoadBit(location.GetValue() / kFrameSlotSize)); in CheckOptimizedMethod()
92 CHECK_NE(register_mask & (1 << location.GetValue()), 0u); in CheckOptimizedMethod()
100 CHECK_EQ(location.GetValue(), 0); in CheckOptimizedMethod()
Dlock_word.h165 return LockWord().GetValue() == lw.GetValue(); in IsDefault()
253 return lw1.GetValue() == lw2.GetValue(); in Equal()
298 uint32_t GetValue() const { in GetValue() function
Dstack_map.h172 int32_t GetValue() const { return value_; } in GetValue() function
211 int32_t value = dex_register_location.GetValue(); in SetRegisterInfo()
304 return IsShortStackOffsetValue(location.GetValue()) in ComputeCompressedKind()
310 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
311 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
316 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
317 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
321 return IsShortConstantValue(location.GetValue()) in ComputeCompressedKind()
338 return IsShortStackOffsetValue(location.GetValue()); in CanBeEncodedAsShortLocation()
347 return IsShortConstantValue(location.GetValue()); in CanBeEncodedAsShortLocation()
[all …]
/art/compiler/debug/
Delf_debug_loc_writer.h219 const int32_t value = reg_loc.GetValue(); in WriteDebugLocEntry()
224 reg_hi.GetValue() == value + 4) { in WriteDebugLocEntry()
230 reg_hi.GetValue() == value) { in WriteDebugLocEntry()
236 reg_hi.GetValue() == value + 1 && value % 2 == 0) { in WriteDebugLocEntry()
243 reg_hi.GetValue() == reg_lo.GetValue()) { in WriteDebugLocEntry()
/art/cmdline/
Dcmdline_parse_result.h83 const T& GetValue() const { in GetValue() function
91 T& GetValue() { in GetValue() function

1234