/art/compiler/optimizing/ |
D | induction_var_range_test.cc | 27 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 …]
|
D | induction_var_range.h | 45 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() function 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 …]
|
D | induction_var_range.cc | 87 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 …]
|
/art/libartbase/base/ |
D | histogram.h | 31 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 …]
|
D | histogram-inl.h | 35 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 …]
|
D | hash_map.h | 30 template <class Key, class Value> 31 size_t operator()(const std::pair<Key, Value>& pair) const { in operator() 38 template <class Key, class Value> 39 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator() 42 template <class Key, class Value, class Element> 43 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { in operator() 51 template <typename Key, typename Value> 54 void MakeEmpty(std::pair<Key, Value>& item) const { in MakeEmpty() 55 item = std::pair<Key, Value>(); in MakeEmpty() 57 bool IsEmpty(const std::pair<Key, Value>& item) const { in IsEmpty() [all …]
|
D | hiddenapi_flags.h | 87 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)); 161 explicit ApiList(Value val, uint32_t domain_apis = 0u) 167 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() 169 Value GetValue() const { in GetValue() 173 if (value == helper::ToUint(Value::kInvalid)) { in GetValue() 174 return Value::kInvalid; in GetValue() [all …]
|
/art/compiler/utils/ |
D | atomic_dex_ref_map-inl.h | 31 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 …]
|
D | atomic_dex_ref_map.h | 30 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/ |
D | AhatArrayInstance.java | 39 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 …]
|
D | Value.java | 26 public abstract class Value { class 34 public static Value pack(AhatInstance value) { in pack() 44 public static Value pack(boolean value) { in pack() 54 public static Value pack(char value) { in pack() 64 public static Value pack(float value) { in pack() 74 public static Value pack(double value) { in pack() 84 public static Value pack(byte value) { in pack() 94 public static Value pack(short value) { in pack() 104 public static Value pack(int value) { in pack() 114 public static Value pack(long value) { in pack() [all …]
|
D | AhatClassInstance.java | 37 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 …]
|
D | FieldValue.java | 36 public final Value value; 45 public FieldValue(String name, Type type, Value value) { in FieldValue()
|
/art/test/122-npe/src/ |
D | Main.java | 68 ((Value) null).objectField.toString(); in methodTwo() 75 useInt(((Value) null).intField); in methodTwo() 82 useFloat(((Value) null).floatField); in methodTwo() 89 useLong(((Value) null).longField); in methodTwo() 96 useDouble(((Value) null).doubleField); in methodTwo() 103 ((Value) null).objectField = "Fisk"; in methodTwo() 110 ((Value) null).intField = 42; in methodTwo() 117 ((Value) null).floatField = 42.0F; in methodTwo() 124 ((Value) null).longField = 42L; in methodTwo() 131 ((Value) null).doubleField = 42.0d; in methodTwo() [all …]
|
/art/cmdline/ |
D | memory_representation.h | 39 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/ |
D | expected.txt | 3 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/ |
D | expected.txt | 3 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/ |
D | expected.txt | 3 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) 12 …Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1966$TestClass1e… 15 Value is 'TestClass2("Set TestClass2")' (class: class art.Test1966$TestClass2) 18 …Value 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) 30 …Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1966$TestClass1e… [all …]
|
/art/test/1913-get-set-local-objects/ |
D | expected.txt | 3 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) 12 …Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1913$TestClass1e… 15 Value is 'TestClass2("Set TestClass2")' (class: class art.Test1913$TestClass2) 18 …Value 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) 30 …Value is 'TestClass1ext("TestClass1("Set TestClass1ext")")' (class: class art.Test1913$TestClass1e… [all …]
|
/art/test/1965-get-set-local-primitive-no-tables/ |
D | expected.txt | 3 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/test/1916-get-set-current-frame/ |
D | expected.txt | 2 Value is '42' 4 Value is '1337'
|
/art/test/1935-get-set-current-frame-jit/ |
D | expected.txt | 3 Value is '42' 5 Value is '1337'
|
/art/test/1915-get-set-local-current-thread/ |
D | expected.txt | 3 Value is '42' 5 Value is '1337'
|
/art/test/1914-get-local-instance/ |
D | expected.txt | 3 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)
|
/art/tools/ahat/src/test/com/android/ahat/ |
D | DiffFieldsTest.java | 23 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 …]
|