Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 25 of 54) sorted by relevance

123

/art/compiler/optimizing/
Dinduction_var_range_test.cc27 using Value = InductionVarRange::Value; typedef
43 void ExpectEqual(Value v1, Value v2) { in ExpectEqual()
253 Value GetMin(HInductionVarAnalysis::InductionInfo* info, in GetMin()
258 Value GetMax(HInductionVarAnalysis::InductionInfo* info, in GetMax()
263 Value GetMul(HInductionVarAnalysis::InductionInfo* info1, in GetMul()
269 Value GetDiv(HInductionVarAnalysis::InductionInfo* info1, in GetDiv()
275 Value GetRem(HInductionVarAnalysis::InductionInfo* info1, in GetRem()
280 Value GetXor(HInductionVarAnalysis::InductionInfo* info1, in GetXor()
297 Value AddValue(Value v1, Value v2) { return range_.AddValue(v1, v2); } in AddValue()
298 Value SubValue(Value v1, Value v2) { return range_.SubValue(v1, v2); } in SubValue()
[all …]
Dinduction_var_range.h45 struct Value { struct
46 Value() : instruction(nullptr), a_constant(0), b_constant(0), is_known(false) {} in Value() argument
47 Value(HInstruction* i, int32_t a, int32_t b) in Value() function
49 explicit Value(int32_t b) : Value(nullptr, 0, b) {} in Value() argument
70 /*out*/ Value* min_val, argument
71 /*out*/ Value* max_val,
232 Value GetLinear(HInductionVarAnalysis::InductionInfo* info,
236 Value GetPolynomial(HInductionVarAnalysis::InductionInfo* info,
240 Value GetGeometric(HInductionVarAnalysis::InductionInfo* info,
244 Value GetFetch(HInstruction* instruction,
[all …]
Dinduction_var_range.cc87 static InductionVarRange::Value SimplifyMin(InductionVarRange::Value v) { in SimplifyMin()
92 return InductionVarRange::Value(v.b_constant); in SimplifyMin()
99 static InductionVarRange::Value SimplifyMax(InductionVarRange::Value v, HInstruction* hint) { in SimplifyMax()
107 return InductionVarRange::Value(v.instruction->InputAt(0), 1, v.b_constant); in SimplifyMax()
112 return InductionVarRange::Value(suitable, 1, v.b_constant); in SimplifyMax()
119 static bool IsConstantValue(InductionVarRange::Value v) { in IsConstantValue()
124 static InductionVarRange::Value CorrectForType(InductionVarRange::Value v, DataType::Type type) { in CorrectForType()
136 : InductionVarRange::Value(); in CorrectForType()
171 /*out*/Value* min_val, in GetInductionRange()
172 /*out*/Value* max_val, in GetInductionRange()
[all …]
Dload_store_elimination.cc375 class Value;
379 constexpr explicit PriorValueHolder(Value prior);
399 Value ToValue() const;
415 class Value { class in art::LSEVisitor
432 static constexpr Value Invalid() { in Invalid()
433 return Value(ValuelessType::kInvalid); in Invalid()
440 static constexpr Value PureUnknown() { in PureUnknown()
441 return Value(ValuelessType::kPureUnknown); in PureUnknown()
444 static constexpr Value PartialUnknown(Value old_value) { in PartialUnknown()
448 return Value(PriorValueHolder(old_value)); in PartialUnknown()
[all …]
/art/libartbase/base/
Dhistogram.h31 template <class Value> class Histogram {
37 friend class Histogram<Value>;
49 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100);
50 void AddValue(Value);
51 void AdjustAndAddValue(Value); // Add a value after dividing it by kAdjust.
68 Value GetRange(size_t bucket_idx) const;
75 Value Sum() const { in Sum()
79 Value AdjustedSum() const { in AdjustedSum()
83 Value Min() const { in Min()
87 Value Max() const { in Max()
[all …]
Dhistogram-inl.h35 template <class Value> inline void Histogram<Value>::AddValue(Value value) { in AddValue()
36 CHECK_GE(value, static_cast<Value>(0)); in AddValue()
38 Value new_max = ((value + 1) / bucket_width_ + 1) * bucket_width_; in AddValue()
45 template <class Value> inline void Histogram<Value>::AdjustAndAddValue(Value value) { in AdjustAndAddValue()
49 template <class Value> inline Histogram<Value>::Histogram(const char* name) in Histogram()
57 template <class Value>
58 inline Histogram<Value>::Histogram(const char* name, Value initial_bucket_width, in Histogram()
70 template <class Value>
71 inline void Histogram<Value>::GrowBuckets(Value new_max) { in GrowBuckets()
94 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const { in FindBucket()
[all …]
Dhash_map.h26 template <typename Key, typename Value, typename HashFn>
33 size_t operator()(const std::pair<Key, Value>& pair) const { in operator()
41 template <typename Key, typename Value, typename PredFn>
44 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator()
49 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { in operator()
57 template <typename Key, typename Value>
60 void MakeEmpty(std::pair<Key, Value>& item) const { in MakeEmpty()
61 item = std::pair<Key, Value>(); in MakeEmpty()
63 bool IsEmpty(const std::pair<Key, Value>& item) const { in IsEmpty()
69 class Value,
[all …]
Dhiddenapi_flags.h87 enum class Value : uint32_t { enum
123 static_assert(kValueBitSize >= MinimumBitsToStore(helper::ToUint(Value::kMax)),
127 static_assert(helper::MatchesBitMask(Value::kMin, kValueBitMask));
128 static_assert(helper::MatchesBitMask(Value::kMax, kValueBitMask));
131 static_assert(helper::ToUint(Value::kMax) < helper::ToUint(Value::kInvalid));
165 explicit ApiList(Value val, uint32_t domain_apis = 0u)
171 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList()
173 Value GetValue() const { in GetValue()
177 if (value == helper::ToUint(Value::kInvalid)) { in GetValue()
178 return Value::kInvalid; in GetValue()
[all …]
Dflags.cc99 template <typename Value>
100 Flag<Value>::Flag(const std::string& name, Value default_value, FlagType type) : in Flag()
110 template <typename Value>
111 Flag<Value>::~Flag() { in ~Flag()
115 template <typename Value>
116 void Flag<Value>::Reload() { in Reload()
144 template <typename Value>
145 void DumpValue(std::ostream& oss, const std::optional<Value>& val) { in DumpValue()
153 template <typename Value>
154 void Flag<Value>::Dump(std::ostream& oss) const { in Dump()
[all …]
Dstats-inl.h28 Dump(os, name, Value(), 1000.0, "KB"); in DumpSizes()
36 double percent = total > 0 ? 100.0 * Value() / total : 0; in Dump()
46 << std::setw(10) << std::fixed << std::setprecision(3) << Value() / unit_size << unit << " " in Dump()
52 sorted_children.emplace(std::make_pair(-it.second.Value(), it.first), it.second); in Dump()
57 other.AddBytes(Value() - SumChildrenValues(), Count()); in Dump()
58 if (other.Value() != 0.0 && !Children().empty()) { in Dump()
59 sorted_children.emplace(std::make_pair(-other.Value(), "(other)"), other); in Dump()
Dflags.h157 template <typename Value>
162 Flag(const std::string& name, Value default_value, FlagType type);
173 ALWAYS_INLINE Value GetValue() const { in GetValue()
177 ALWAYS_INLINE Value operator()() const { in operator()
189 ALWAYS_INLINE std::optional<Value> GetValueOptional() const { in GetValueOptional()
190 std::pair<Value, FlagOrigin> result = GetValueAndOrigin(); in GetValueOptional()
197 ALWAYS_INLINE std::pair<Value, FlagOrigin> GetValueAndOrigin() const { in GetValueAndOrigin()
223 const Value default_;
224 std::optional<Value> from_command_line_;
225 std::optional<Value> from_system_property_;
[all …]
/art/compiler/utils/
Datomic_dex_ref_map-inl.h31 template <typename DexFileReferenceType, typename Value>
32 inline size_t AtomicDexRefMap<DexFileReferenceType, Value>::NumberOfDexIndices( in NumberOfDexIndices()
51 template <typename DexFileReferenceType, typename Value>
52 inline typename AtomicDexRefMap<DexFileReferenceType, Value>::InsertResult
53 AtomicDexRefMap<DexFileReferenceType, Value>::Insert(const DexFileReferenceType& ref, in Insert()
54 const Value& expected, in Insert()
55 const Value& desired) { in Insert()
66 template <typename DexFileReferenceType, typename Value>
67 inline bool AtomicDexRefMap<DexFileReferenceType, Value>::Get(const DexFileReferenceType& ref, in Get()
68 Value* out) const { in Get()
[all …]
Datomic_dex_ref_map.h30 template <typename DexFileReferenceType, typename Value>
43 const Value& expected,
44 const Value& desired);
47 bool Get(const DexFileReferenceType& ref, Value* out) const;
50 bool Remove(const DexFileReferenceType& ref, Value* out);
72 using ElementArray = dchecked_vector<Atomic<Value>>;
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java39 private List<Value> mValues;
53 mValues = new AbstractList<Value>() { in initialize()
58 @Override public Value get(int index) { in initialize()
59 return Value.pack(bools[index]); in initialize()
69 mValues = new AbstractList<Value>() { in initialize()
74 @Override public Value get(int index) { in initialize()
75 return Value.pack(chars[index]); in initialize()
84 mValues = new AbstractList<Value>() { in initialize()
89 @Override public Value get(int index) { in initialize()
90 return Value.pack(floats[index]); in initialize()
[all …]
DValue.java26 public abstract class Value { class
27 Value() { } in Value() method in Value
35 public static Value pack(AhatInstance value) { in pack()
45 public static Value pack(boolean value) { in pack()
55 public static Value pack(char value) { in pack()
65 public static Value pack(float value) { in pack()
75 public static Value pack(double value) { in pack()
85 public static Value pack(byte value) { in pack()
95 public static Value pack(short value) { in pack()
105 public static Value pack(int value) { in pack()
[all …]
DAhatClassInstance.java37 private Value[] mFields;
43 void initialize(Value[] fields) { in initialize()
52 @Override public Value getField(String fieldName) { in getField()
62 Value value = getField(fieldName); in getRefField()
73 Value value = getField(fieldName); in getIntField()
87 Value value = getField(fieldName); in getLongField()
115 Value value = getField("value"); in asString()
153 Value value = inst.getField("mRemote"); in getBinderProxyInterfaceName()
217 Value value = getField("mDescriptor");; in getBinderDescriptor()
312 Value vthunk = getField("thunk"); in asRegisteredNativeAllocation()
[all …]
/art/test/122-npe/src/
DMain.java70 ((Value) null).objectField.toString(); in methodTwo()
77 useInt(((Value) null).intField); in methodTwo()
84 useFloat(((Value) null).floatField); in methodTwo()
91 useLong(((Value) null).longField); in methodTwo()
98 useDouble(((Value) null).doubleField); in methodTwo()
105 ((Value) null).objectField = "Fisk"; in methodTwo()
112 ((Value) null).intField = 42; in methodTwo()
119 ((Value) null).floatField = 42.0F; in methodTwo()
126 ((Value) null).longField = 42L; in methodTwo()
133 ((Value) null).doubleField = 42.0d; in methodTwo()
[all …]
/art/cmdline/
Dmemory_representation.h39 Memory() : Value(0u) {} in Memory()
40 Memory(size_t value) : Value(value) { // NOLINT [runtime/explicit] [5] in Memory()
43 operator size_t() const { return Value; } in size_t()
46 return Value; in ToBytes()
58 size_t Value; member
63 return stream << memory.Value << '*' << kDivisor;
/art/test/1912-get-set-local-primitive/
Dexpected-stdout.txt3 Value is '42' (class: class java.lang.Integer)
6 Value is '42' (class: class java.lang.Integer)
9 Value is '42' (class: class java.lang.Integer)
12 Value is '42' (class: class java.lang.Integer)
15 Value is '42' (class: class java.lang.Integer)
18 Value is '2147483647' (class: class java.lang.Integer)
21 Value is '42' (class: class java.lang.Integer)
24 Value is '42' (class: class java.lang.Integer)
27 Value is '42' (class: class java.lang.Integer)
30 Value is '42' (class: class java.lang.Integer)
[all …]
/art/test/1967-get-set-local-bad-slot/
Dexpected-stdout.txt3 Value is '42' (class: class java.lang.Integer)
6 Value is '42' (class: class java.lang.Integer)
9 Value is '42' (class: class java.lang.Integer)
12 Value is '42' (class: class java.lang.Integer)
15 Value is '42' (class: class java.lang.Integer)
18 Value is '42' (class: class java.lang.Integer)
21 Value is '42' (class: class java.lang.Integer)
24 Value is '42' (class: class java.lang.Integer)
27 Value is '42' (class: class java.lang.Integer)
30 Value is '42' (class: class java.lang.Integer)
[all …]
/art/test/1966-get-set-local-objects-no-table/
Dexpected-stdout.txt3 Value is 'TestClass1("ObjectMethod")' (class: class art.Test1966$TestClass1)
6 Value is 'null' (class: NULL)
9 Value is 'TestClass1("Set TestClass1")' (class: class art.Test1966$TestClass1)
12Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1966$TestClass1e…
15 Value is 'TestClass2("Set TestClass2")' (class: class art.Test1966$TestClass2)
18Value is 'TestClass2impl("TestClass2("Set TestClass2impl")")' (class: class art.Test1966$TestClass…
21 Value is 'TestClass1("ObjectMethod")' (class: class art.Test1966$TestClass1)
24 Value is 'null' (class: NULL)
27 Value is 'TestClass1("Set TestClass1")' (class: class art.Test1966$TestClass1)
30Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1966$TestClass1e…
[all …]
/art/test/1913-get-set-local-objects/
Dexpected-stdout.txt3 Value is 'TestClass1("ObjectMethod")' (class: class art.Test1913$TestClass1)
6 Value is 'null' (class: NULL)
9 Value is 'TestClass1("Set TestClass1")' (class: class art.Test1913$TestClass1)
12Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1913$TestClass1e…
15 Value is 'TestClass2("Set TestClass2")' (class: class art.Test1913$TestClass2)
18Value is 'TestClass2impl("TestClass2("Set TestClass2impl")")' (class: class art.Test1913$TestClass…
21 Value is 'TestClass1("InterfaceMethod")' (class: class art.Test1913$TestClass1)
24 Value is 'null' (class: NULL)
27 Value is 'TestClass1("Set TestClass1")' (class: class art.Test1913$TestClass1)
30Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1913$TestClass1e…
[all …]
/art/test/1965-get-set-local-primitive-no-tables/
Dexpected-stdout.txt3 Value is '42' (class: class java.lang.Integer)
6 Value is '42' (class: class java.lang.Integer)
9 Value is '42' (class: class java.lang.Integer)
12 Value is '42' (class: class java.lang.Integer)
15 Value is '42' (class: class java.lang.Integer)
18 Value is '2147483647' (class: class java.lang.Integer)
21 Value is '42' (class: class java.lang.Integer)
24 Value is '1091777331' (class: class java.lang.Integer)
27 Value is '42' (class: class java.lang.Integer)
30 Value is '42' (class: class java.lang.Integer)
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DDiffFieldsTest.java23 import com.android.ahat.heapdump.Value;
45 FieldValue normal1 = new FieldValue("name", t0, Value.pack(1)); in normalMatchedDiffedFieldValues()
46 FieldValue normal2 = new FieldValue("name", t0, Value.pack(2)); in normalMatchedDiffedFieldValues()
51 assertEquals(Value.pack(1), x.current); in normalMatchedDiffedFieldValues()
52 assertEquals(Value.pack(2), x.baseline); in normalMatchedDiffedFieldValues()
58 FieldValue normal = new FieldValue("name", t0, Value.pack(1)); in nulledMatchedDiffedFieldValues()
64 assertEquals(Value.pack(1), x.current); in nulledMatchedDiffedFieldValues()
72 assertEquals(Value.pack(1), y.baseline); in nulledMatchedDiffedFieldValues()
78 FieldValue normal = new FieldValue("name", t0, Value.pack(1)); in normalAddedDiffedFieldValues()
83 assertEquals(Value.pack(1), x.current); in normalAddedDiffedFieldValues()
[all …]
/art/test/1914-get-local-instance/
Dexpected-stdout.txt3 Value is 'null' (class: NULL)
6 Value is 'null' (class: NULL)
9 Value is 'TargetClass("InstanceMethodObject")' (class: class art.Test1914$TargetClass)
12 Value is 'TargetClass("NativeInstanceMethodObject")' (class: class art.Test1914$TargetClass)
15 Value is 'Proxy for [interface art.Test1914$Foo]' (class: PROXY CLASS)

123