Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dstring.cc44 const uint16_t* chars = GetValue(); in FastIndexOf()
67 const int32_t hash_code = ComputeUtf16Hash(GetValue(), GetLength()); in ComputeHashCode()
73 return CountUtf8Bytes(GetValue(), GetLength()); in GetUtfLength()
78 GetValue()[index] = c; in SetCharAt()
90 uint16_t* new_value = new_string->GetValue(); in AllocFromStrings()
91 memcpy(new_value, string->GetValue(), length * sizeof(uint16_t)); in AllocFromStrings()
92 memcpy(new_value + length, string2->GetValue(), length2 * sizeof(uint16_t)); in AllocFromStrings()
104 uint16_t* array = string->GetValue(); in AllocFromUtf16()
123 uint16_t* utf16_data_out = string->GetValue(); in AllocFromModifiedUtf8()
216 const uint16_t* chars = GetValue(); in ToModifiedUtf8()
[all …]
Dstring-inl.h68 uint16_t* value = string->GetValue(); in operator()
96 memcpy(string->GetValue(), src, count_ * sizeof(uint16_t)); in operator()
118 const uint16_t* const src = src_string_->GetValue() + offset_; in operator()
119 memcpy(string->GetValue(), src, count_ * sizeof(uint16_t)); in operator()
140 return GetValue()[index]; in CharAt()
200 DCHECK(result != 0 || ComputeUtf16Hash(GetValue(), GetLength()) == 0) in GetHashCode()
Dobject-inl.h73 SetField32Volatile<false, false>(OFFSET_OF_OBJECT_MEMBER(Object, monitor_), new_val.GetValue()); in SetLockWord()
75 SetField32<false, false>(OFFSET_OF_OBJECT_MEMBER(Object, monitor_), new_val.GetValue()); in SetLockWord()
82 OFFSET_OF_OBJECT_MEMBER(Object, monitor_), old_val.GetValue(), new_val.GetValue()); in CasLockWordWeakSequentiallyConsistent()
88 OFFSET_OF_OBJECT_MEMBER(Object, monitor_), old_val.GetValue(), new_val.GetValue()); in CasLockWordWeakRelaxed()
Dstring.h52 uint16_t* GetValue() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetValue() function
/art/compiler/optimizing/
Dconstant_folding_test.cc118 ASSERT_EQ(inst->AsIntConstant()->GetValue(), -1); in TEST()
179 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 3); in TEST()
259 ASSERT_EQ(inst1->AsIntConstant()->GetValue(), 12); in TEST()
262 ASSERT_EQ(inst2->AsIntConstant()->GetValue(), 9); in TEST()
265 ASSERT_EQ(inst3->AsIntConstant()->GetValue(), 3); in TEST()
331 ASSERT_EQ(inst->AsIntConstant()->GetValue(), 1); in TEST()
395 ASSERT_EQ(inst->AsLongConstant()->GetValue(), 3); in TEST()
460 ASSERT_EQ(inst->AsLongConstant()->GetValue(), 1); in TEST()
562 ASSERT_EQ(inst1->AsIntConstant()->GetValue(), 20); in TEST()
565 ASSERT_EQ(inst2->AsIntConstant()->GetValue(), 12); in TEST()
[all …]
Dgraph_visualizer.cc137 output_ << " " << constant->AsIntConstant()->GetValue(); in DumpLocation()
139 output_ << " " << constant->AsLongConstant()->GetValue(); in DumpLocation()
177 output_ << " " << instruction->GetValue(); in VisitIntConstant()
181 output_ << " " << instruction->GetValue(); in VisitLongConstant()
185 output_ << " " << instruction->GetValue(); in VisitFloatConstant()
189 output_ << " " << instruction->GetValue(); in VisitDoubleConstant()
Dssa_builder.cc203 DCHECK_EQ(0, int_operand->AsIntConstant()->GetValue()); in FixNullConstantType()
430 result = new (allocator) HFloatConstant(bit_cast<float, int32_t>(constant->GetValue())); in GetFloatEquivalent()
436 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent()
453 result = new (allocator) HDoubleConstant(bit_cast<double, int64_t>(constant->GetValue())); in GetDoubleEquivalent()
459 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()
525 if (value->IsIntConstant() && value->AsIntConstant()->GetValue() == 0) { in GetReferenceTypeEquivalent()
Dbounds_check_elimination.cc34 int32_t instr_const = instruction->AsIntConstant()->GetValue(); in ValueBound()
70 int32_t c = right->AsIntConstant()->GetValue(); in IsAddOrSubAConstant()
86 return ValueBound(nullptr, instruction->AsIntConstant()->GetValue()); in DetectValueBoundFromValue()
590 int32_t initial_constant = initial_->AsIntConstant()->GetValue(); in Narrow()
740 if (value->AsIntConstant()->GetValue() >= constant) { in CanAddDeoptimizationConstant()
757 int32_t initial_val = initial_->AsIntConstant()->GetValue(); in LoopEntryTestUseful()
758 int32_t end_val = end_->AsIntConstant()->GetValue(); in LoopEntryTestUseful()
1406 int32_t constant = index->AsIntConstant()->GetValue(); in VisitBoundsCheck()
1412 if (constant < array_length->AsIntConstant()->GetValue()) { in VisitBoundsCheck()
1580 ValueRange* range = left_range->Add(right->AsIntConstant()->GetValue()); in VisitAdd()
[all …]
Dcode_generator.h300 return constant->AsIntConstant()->GetValue(); in GetInt32ValueOf()
305 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
311 return constant->AsIntConstant()->GetValue(); in GetInt64ValueOf()
315 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
317 return constant->AsLongConstant()->GetValue(); in GetInt64ValueOf()
320 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()
Dcode_generator_x86_64.cc674 value = bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in Move()
677 value = constant->AsLongConstant()->GetValue(); in Move()
710 int64_t value = const_to_move->AsLongConstant()->GetValue(); in Move()
806 int32_t cond_value = cond->AsIntConstant()->GetValue(); in GenerateTestAndBranch()
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()
1733 Immediate(static_cast<int8_t>(in.GetConstant()->AsIntConstant()->GetValue()))); in VisitTypeConversion()
1759 Immediate(static_cast<int16_t>(in.GetConstant()->AsIntConstant()->GetValue()))); in VisitTypeConversion()
1781 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion()
[all …]
Dstack_map_test.cc112 ASSERT_EQ(0, location0.GetValue()); in TEST()
113 ASSERT_EQ(-2, location1.GetValue()); in TEST()
208 ASSERT_EQ(0, location0.GetValue()); in TEST()
209 ASSERT_EQ(-2, location1.GetValue()); in TEST()
265 ASSERT_EQ(18, location0.GetValue()); in TEST()
266 ASSERT_EQ(3, location1.GetValue()); in TEST()
343 ASSERT_EQ(0, location0.GetValue()); in TEST()
344 ASSERT_EQ(-2, location1.GetValue()); in TEST()
Dcode_generator_x86.cc698 value = constant->AsLongConstant()->GetValue(); in Move64()
701 value = bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in Move64()
737 int64_t value = const_to_move->AsLongConstant()->GetValue(); in Move()
843 int32_t cond_value = cond->AsIntConstant()->GetValue(); in GenerateTestAndBranch()
1641 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion()
1666 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion()
1688 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion()
1796 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion()
1967 int32_t value = second.GetConstant()->AsIntConstant()->GetValue(); in VisitAdd()
1990 int64_t value = second.GetConstant()->AsLongConstant()->GetValue(); in VisitAdd()
[all …]
Dnodes.h2221 float GetValue() const { return value_; } in GetValue() function
2228 size_t ComputeHashCode() const OVERRIDE { return static_cast<size_t>(GetValue()); } in ComputeHashCode()
2231 return bit_cast<uint32_t, float>(AsFloatConstant()->GetValue()) == in IsMinusOne()
2235 return AsFloatConstant()->GetValue() == 0.0f; in IsZero()
2238 return bit_cast<uint32_t, float>(AsFloatConstant()->GetValue()) == in IsOne()
2259 double GetValue() const { return value_; } in GetValue() function
2266 size_t ComputeHashCode() const OVERRIDE { return static_cast<size_t>(GetValue()); } in ComputeHashCode()
2269 return bit_cast<uint64_t, double>(AsDoubleConstant()->GetValue()) == in IsMinusOne()
2273 return AsDoubleConstant()->GetValue() == 0.0; in IsZero()
2276 return bit_cast<uint64_t, double>(AsDoubleConstant()->GetValue()) == in IsOne()
[all …]
Dinstruction_simplifier.cc290 HInstruction* value = instruction->GetValue(); in VisitArraySet()
417 double value = input_cst->AsDoubleConstant()->GetValue(); in VisitDiv()
423 float value = input_cst->AsFloatConstant()->GetValue(); in VisitDiv()
472 ((input_cst->IsFloatConstant() && input_cst->AsFloatConstant()->GetValue() == 2.0f) || in VisitMul()
473 (input_cst->IsDoubleConstant() && input_cst->AsDoubleConstant()->GetValue() == 2.0))) { in VisitMul()
Dnodes.cc338 int32_t value = bit_cast<int32_t, float>(constant->GetValue()); in CacheFloatConstant()
344 int64_t value = bit_cast<int64_t, double>(constant->GetValue()); in CacheDoubleConstant()
819 int32_t value = Evaluate(GetInput()->AsIntConstant()->GetValue()); in TryStaticEvaluation()
834 int32_t value = Evaluate(GetLeft()->AsIntConstant()->GetValue(), in TryStaticEvaluation()
835 GetRight()->AsIntConstant()->GetValue()); in TryStaticEvaluation()
838 int64_t value = Evaluate(GetLeft()->AsLongConstant()->GetValue(), in TryStaticEvaluation()
839 GetRight()->AsLongConstant()->GetValue()); in TryStaticEvaluation()
1368 current->ReplaceWith(outer_graph->GetIntConstant(current->AsIntConstant()->GetValue())); in InlineInto()
1370 current->ReplaceWith(outer_graph->GetLongConstant(current->AsLongConstant()->GetValue())); in InlineInto()
1372 current->ReplaceWith(outer_graph->GetFloatConstant(current->AsFloatConstant()->GetValue())); in InlineInto()
[all …]
Dlocations.cc59 int64_t value = instruction->AsConstant()->AsLongConstant()->GetValue(); in RegisterOrInt32LongConstant()
Dcommon_arm64.h122 return instr->AsIntConstant()->GetValue(); in Int64ConstantFrom()
127 return instr->AsLongConstant()->GetValue(); in Int64ConstantFrom()
Dcode_generator_arm.cc822 int64_t value = const_to_move->AsLongConstant()->GetValue(); in Move()
943 int32_t cond_value = cond->AsIntConstant()->GetValue(); in GenerateTestAndBranch()
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()
3184 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet()
3198 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet()
[all …]
Dcode_generator_mips64.cc804 __ LoadConst64(dst, instruction->AsLongConstant()->GetValue()); in Move()
813 __ LoadConst64(TMP, instruction->AsLongConstant()->GetValue()); in Move()
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()
1337 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_4) + data_offset; in VisitArrayGet()
1352 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_8) + data_offset; in VisitArrayGet()
1367 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_4) + data_offset; in VisitArrayGet()
1382 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_8) + data_offset; in VisitArrayGet()
[all …]
/art/runtime/
Dcheck_reference_map_visitor.h85 DCHECK_EQ(location.GetValue() % kFrameSlotSize, 0); in CheckOptimizedMethod()
86 CHECK(stack_mask.LoadBit(location.GetValue() / kFrameSlotSize)); in CheckOptimizedMethod()
89 CHECK_NE(register_mask & (1 << location.GetValue()), 0u); in CheckOptimizedMethod()
96 CHECK_EQ(location.GetValue(), 0); in CheckOptimizedMethod()
Dlock_word.h139 return LockWord().GetValue() == lw.GetValue(); in IsDefault()
208 return lw1.GetValue() == lw2.GetValue(); in Equal()
242 uint32_t GetValue() const { in GetValue() function
Dstack_map.h208 int32_t GetValue() const { return value_; } in GetValue() function
243 int32_t value = dex_register_location.GetValue(); in SetRegisterInfo()
335 DCHECK_EQ(location.GetValue(), 0); in ComputeCompressedKind()
339 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
340 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
344 DCHECK_GE(location.GetValue(), 0); in ComputeCompressedKind()
345 DCHECK_LT(location.GetValue(), 1 << kValueBits); in ComputeCompressedKind()
349 return IsShortStackOffsetValue(location.GetValue()) in ComputeCompressedKind()
354 return IsShortConstantValue(location.GetValue()) in ComputeCompressedKind()
374 return IsShortStackOffsetValue(location.GetValue()); in CanBeEncodedAsShortLocation()
[all …]
/art/cmdline/
Dcmdline_parse_result.h83 const T& GetValue() const { in GetValue() function
91 T& GetValue() { in GetValue() function
/art/runtime/interpreter/
Dunstarted_runtime_test.cc274 EXPECT_EQ(memcmp(string_arg->GetValue(), string_result->GetValue(), in TEST_F()
/art/runtime/native/
Dlibcore_util_CharsetUtils.cc168 const jchar* src = &(string->GetValue()[offset]); in charsToBytes()

12