/art/compiler/dwarf/ |
D | writer.h | 32 void PushUint8(int value) { in PushUint8() argument 33 DCHECK_GE(value, 0); in PushUint8() 34 DCHECK_LE(value, UINT8_MAX); in PushUint8() 35 data_->push_back(value & 0xff); in PushUint8() 38 void PushUint16(int value) { in PushUint16() argument 39 DCHECK_GE(value, 0); in PushUint16() 40 DCHECK_LE(value, UINT16_MAX); in PushUint16() 41 data_->push_back((value >> 0) & 0xff); in PushUint16() 42 data_->push_back((value >> 8) & 0xff); in PushUint16() 45 void PushUint32(uint32_t value) { in PushUint32() argument [all …]
|
D | debug_info_entry_writer.h | 90 void WriteAddr(Attribute attrib, uint64_t value) { in WriteAddr() argument 94 this->PushUint64(value); in WriteAddr() 96 this->PushUint32(value); in WriteAddr() 106 void WriteData1(Attribute attrib, uint8_t value) { in WriteData1() argument 108 this->PushUint8(value); in WriteData1() 111 void WriteData2(Attribute attrib, uint16_t value) { in WriteData2() argument 113 this->PushUint16(value); in WriteData2() 116 void WriteData4(Attribute attrib, uint32_t value) { in WriteData4() argument 118 this->PushUint32(value); in WriteData4() 121 void WriteData8(Attribute attrib, uint64_t value) { in WriteData8() argument [all …]
|
/art/test/457-regs/ |
D | regs_jni.cc | 39 uint32_t value = 0; in VisitFrame() local 41 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 42 CHECK_EQ(value, 0u); in VisitFrame() 44 CHECK(GetVReg(m, 1, kIntVReg, &value)); in VisitFrame() 45 CHECK_EQ(value, 1u); in VisitFrame() 47 CHECK(GetVReg(m, 2, kIntVReg, &value)); in VisitFrame() 48 CHECK_EQ(value, 2u); in VisitFrame() 50 CHECK(GetVReg(m, 3, kIntVReg, &value)); in VisitFrame() 51 CHECK_EQ(value, 1u); in VisitFrame() 53 CHECK(GetVReg(m, 4, kIntVReg, &value)); in VisitFrame() [all …]
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | DexRandomAccessFile.java | 63 public void writeUShort(short value) throws IOException { in writeUShort() argument 64 int b1 = value & 0xff; in writeUShort() 65 int b2 = (value & 0xff00) >> 8; in writeUShort() 84 public void writeUInt(int value) throws IOException { in writeUInt() argument 85 int b1 = value & 0xff; in writeUInt() 87 int b2 = (value & 0xff00) >> 8; in writeUInt() 89 int b3 = (value & 0xff0000) >> 16; in writeUInt() 91 int b4 = (value & 0xff000000) >> 24; in writeUInt() 100 int value = 0; in readUleb128() local 106 value |= ((rawByte & 0x7f) << shift); in readUleb128() [all …]
|
/art/test/454-get-vreg/ |
D | get_vreg_jni.cc | 42 uint32_t value = 0; in VisitFrame() local 44 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 45 CHECK_EQ(value, 42u); in VisitFrame() 47 bool success = GetVReg(m, 1, kIntVReg, &value); in VisitFrame() 50 success = GetVReg(m, 2, kIntVReg, &value); in VisitFrame() 53 CHECK(GetVReg(m, 3, kReferenceVReg, &value)); in VisitFrame() 54 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value_); in VisitFrame() 56 CHECK(GetVReg(m, 4, kIntVReg, &value)); in VisitFrame() 57 CHECK_EQ(value, 1u); in VisitFrame() 59 CHECK(GetVReg(m, 5, kFloatVReg, &value)); in VisitFrame() [all …]
|
/art/runtime/jdwp/ |
D | jdwp_bits.h | 35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE() argument 36 bytes.push_back(value); in Append1BE() 39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE() argument 40 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append2BE() 41 bytes.push_back(static_cast<uint8_t>(value)); in Append2BE() 44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE() argument 45 bytes.push_back(static_cast<uint8_t>(value >> 24)); in Append4BE() 46 bytes.push_back(static_cast<uint8_t>(value >> 16)); in Append4BE() 47 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append4BE() 48 bytes.push_back(static_cast<uint8_t>(value)); in Append4BE() [all …]
|
D | jdwp_constants.h | 90 std::ostream& operator<<(std::ostream& os, const JdwpError& value); 102 std::ostream& operator<<(std::ostream& os, const JdwpClassStatus& value); 132 std::ostream& operator<<(std::ostream& os, const JdwpEventKind& value); 151 std::ostream& operator<<(std::ostream& os, const JdwpModKind& value); 160 std::ostream& operator<<(std::ostream& os, const JdwpInvokeOptions& value); 170 std::ostream& operator<<(std::ostream& os, const JdwpStepDepth& value); 179 std::ostream& operator<<(std::ostream& os, const JdwpStepSize& value); 189 std::ostream& operator<<(std::ostream& os, const JdwpSuspendPolicy& value); 198 std::ostream& operator<<(std::ostream& os, const JdwpSuspendStatus& value); 210 std::ostream& operator<<(std::ostream& os, const JdwpThreadStatus& value); [all …]
|
/art/runtime/ |
D | leb128.h | 118 static inline uint8_t* EncodeUnsignedLeb128(uint8_t* dest, uint32_t value) { in EncodeUnsignedLeb128() argument 119 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128() 120 value >>= 7; in EncodeUnsignedLeb128() 121 while (value != 0) { in EncodeUnsignedLeb128() 123 out = value & 0x7f; in EncodeUnsignedLeb128() 124 value >>= 7; in EncodeUnsignedLeb128() 131 static inline void EncodeUnsignedLeb128(std::vector<uint8_t, Allocator>* dest, uint32_t value) { in EncodeUnsignedLeb128() argument 132 uint8_t out = value & 0x7f; in EncodeUnsignedLeb128() 133 value >>= 7; in EncodeUnsignedLeb128() 134 while (value != 0) { in EncodeUnsignedLeb128() [all …]
|
D | atomic.h | 64 int64_t value; in Read64() local 66 value = *addr; in Read64() 73 : "=r" (value) in Read64() 79 : "=r" (value) in Read64() 85 : "=x" (value) in Read64() 91 return value; in Read64() 98 static void Write64(volatile int64_t* addr, int64_t value) { in Write64() argument 101 *addr = value; in Write64() 109 : "r" (value)); in Write64() 119 : "r" (value) in Write64() [all …]
|
D | transaction.cc | 102 uint8_t value, bool is_volatile) { in RecordWriteFieldBoolean() argument 106 object_log.LogBooleanValue(field_offset, value, is_volatile); in RecordWriteFieldBoolean() 110 int8_t value, bool is_volatile) { in RecordWriteFieldByte() argument 114 object_log.LogByteValue(field_offset, value, is_volatile); in RecordWriteFieldByte() 118 uint16_t value, bool is_volatile) { in RecordWriteFieldChar() argument 122 object_log.LogCharValue(field_offset, value, is_volatile); in RecordWriteFieldChar() 127 int16_t value, bool is_volatile) { in RecordWriteFieldShort() argument 131 object_log.LogShortValue(field_offset, value, is_volatile); in RecordWriteFieldShort() 135 void Transaction::RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value, in RecordWriteField32() argument 140 object_log.Log32BitsValue(field_offset, value, is_volatile); in RecordWriteField32() [all …]
|
/art/runtime/base/ |
D | bit_utils.h | 31 static_assert(std::is_integral<T>::value, "T must be integral"); in CLZ() 42 static_assert(std::is_integral<T>::value, "T must be integral"); in CTZ() 58 static constexpr ssize_t MostSignificantBit(T value) { in MostSignificantBit() argument 59 static_assert(std::is_integral<T>::value, "T must be integral"); in MostSignificantBit() 60 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in MostSignificantBit() 62 return (value == 0) ? -1 : std::numeric_limits<T>::digits - 1 - CLZ(value); in MostSignificantBit() 67 static constexpr ssize_t LeastSignificantBit(T value) { in LeastSignificantBit() argument 68 static_assert(std::is_integral<T>::value, "T must be integral"); in LeastSignificantBit() 69 static_assert(std::is_unsigned<T>::value, "T must be unsigned"); in LeastSignificantBit() 70 return (value == 0) ? -1 : CTZ(value); in LeastSignificantBit() [all …]
|
D | bit_field.h | 33 static bool IsValid(T value) { in IsValid() argument 34 return (static_cast<uintptr_t>(value) & ~((kUintPtrTOne << size) - 1)) == 0; in IsValid() 60 static uintptr_t Encode(T value) { in Encode() argument 61 DCHECK(IsValid(value)); in Encode() 62 return static_cast<uintptr_t>(value) << position; in Encode() 66 static T Decode(uintptr_t value) { in Decode() argument 67 return static_cast<T>((value >> position) & ((kUintPtrTOne << size) - 1)); in Decode() 73 static uintptr_t Update(T value, uintptr_t original) { in Update() argument 74 DCHECK(IsValid(value)); in Update() 75 return (static_cast<uintptr_t>(value) << position) | in Update()
|
/art/cmdline/detail/ |
D | cmdline_parser_detail.h | 37 static std::true_type InsertionOperatorTest(TStream& os, const T& value, 38 … std::remove_reference<decltype(os << value)>* = 0); // NOLINT [whitespace/operators] [3] 44 static constexpr bool value = 45 decltype(InsertionOperatorTest(FakeReference<TStream2>(), std::declval<T2>()))::value; 62 static constexpr bool value = 63 decltype(EqualityOperatorTest(std::declval<TLeft>(), std::declval<TRight>()))::value; 72 static constexpr bool value = true; 81 std::is_floating_point<TLeft>::value 82 && std::is_floating_point<TRight>::value> { 91 std::string ToStringAny(const T& value, [all …]
|
/art/compiler/dex/ |
D | compiler_ir.h | 48 explicit OptionContent(const char* value) : in OptionContent() 49 type(kString), container(value) {} in OptionContent() 51 explicit OptionContent(int value) : in OptionContent() 52 type(kInteger), container(value) {} in OptionContent() 54 explicit OptionContent(int64_t value) : in OptionContent() 55 type(kInteger), container(value) {} in OptionContent() 93 inline bool Equals(const char* value) const { in Equals() 94 DCHECK(value != nullptr); in Equals() 98 return !strncmp(container.s, value, kOptionStringMaxLength); in Equals() 110 inline bool Equals(int64_t value) const { in Equals() [all …]
|
/art/compiler/dex/quick/mips/ |
D | utility_mips.cc | 101 bool MipsMir2Lir::InexpensiveConstantInt(int32_t value) { in InexpensiveConstantInt() argument 103 return ((value == 0) || IsUint<16>(value) || IsInt<16>(value)); in InexpensiveConstantInt() 106 bool MipsMir2Lir::InexpensiveConstantFloat(int32_t value) { in InexpensiveConstantFloat() argument 107 UNUSED(value); in InexpensiveConstantFloat() 111 bool MipsMir2Lir::InexpensiveConstantLong(int64_t value) { in InexpensiveConstantLong() argument 112 UNUSED(value); in InexpensiveConstantLong() 116 bool MipsMir2Lir::InexpensiveConstantDouble(int64_t value) { in InexpensiveConstantDouble() argument 117 UNUSED(value); in InexpensiveConstantDouble() 130 LIR* MipsMir2Lir::LoadConstantNoClobber(RegStorage r_dest, int value) { in LoadConstantNoClobber() argument 141 if (value == 0) { in LoadConstantNoClobber() [all …]
|
/art/test/438-volatile/src/ |
D | Main.java | 41 public static void checkVolatileUpdate(long value) { in checkVolatileUpdate() argument 42 if (value != $opt$update(value)) { in checkVolatileUpdate() 43 throw new RuntimeException("Volatile update failed for long:" + value); in checkVolatileUpdate() 47 public static void checkVolatileUpdate(double value) { in checkVolatileUpdate() argument 48 if (value != $opt$update(value)) { in checkVolatileUpdate() 49 throw new RuntimeException("Volatile update failed for double:" + value); in checkVolatileUpdate()
|
/art/compiler/dex/quick/arm/ |
D | utility_arm.cc | 31 static int32_t EncodeImmSingle(int32_t value) { in EncodeImmSingle() argument 33 int32_t bit_a = (value & 0x80000000) >> 31; in EncodeImmSingle() 34 int32_t not_bit_b = (value & 0x40000000) >> 30; in EncodeImmSingle() 35 int32_t bit_b = (value & 0x20000000) >> 29; in EncodeImmSingle() 36 int32_t b_smear = (value & 0x3e000000) >> 25; in EncodeImmSingle() 37 int32_t slice = (value & 0x01f80000) >> 19; in EncodeImmSingle() 38 int32_t zeroes = (value & 0x0007ffff); in EncodeImmSingle() 56 static int32_t EncodeImmDouble(int64_t value) { in EncodeImmDouble() argument 58 int32_t bit_a = (value & INT64_C(0x8000000000000000)) >> 63; in EncodeImmDouble() 59 int32_t not_bit_b = (value & INT64_C(0x4000000000000000)) >> 62; in EncodeImmDouble() [all …]
|
/art/test/461-get-reference-vreg/ |
D | get_reference_vreg_jni.cc | 42 uint32_t value = 0; in VisitFrame() local 43 CHECK(GetVReg(m, 1, kReferenceVReg, &value)); in VisitFrame() 44 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value_); in VisitFrame() 48 uint32_t value = 0; in VisitFrame() local 49 CHECK(GetVReg(m, 1, kReferenceVReg, &value)); in VisitFrame() 52 uint32_t value = 0; in VisitFrame() local 53 CHECK(GetVReg(m, 1, kReferenceVReg, &value)); in VisitFrame() 56 uint32_t value = 0; in VisitFrame() local 57 CHECK(GetVReg(m, 0, kReferenceVReg, &value)); in VisitFrame() 70 extern "C" JNIEXPORT jint JNICALL Java_Main_doNativeCallRef(JNIEnv*, jobject value) { in Java_Main_doNativeCallRef() argument [all …]
|
/art/test/455-set-vreg/ |
D | set_vreg_jni.cc | 40 uint32_t value = 0; in VisitFrame() local 41 CHECK(GetVReg(m, 1, kReferenceVReg, &value)); in VisitFrame() 42 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value_); in VisitFrame() 50 uint32_t value = 0; in VisitFrame() local 51 CHECK(GetVReg(m, 3, kReferenceVReg, &value)); in VisitFrame() 52 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value_); in VisitFrame() 60 uint32_t value = 0; in VisitFrame() local 61 CHECK(GetVReg(m, 1, kReferenceVReg, &value)); in VisitFrame() 62 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value_); in VisitFrame() 70 uint32_t value = 0; in VisitFrame() local [all …]
|
/art/compiler/dex/quick/arm64/ |
D | utility_arm64.cc | 112 LIR* Arm64Mir2Lir::LoadFPConstantValue(RegStorage r_dest, int32_t value) { in LoadFPConstantValue() argument 114 if (value == 0) { in LoadFPConstantValue() 117 int32_t encoded_imm = EncodeImmSingle((uint32_t)value); in LoadFPConstantValue() 123 LIR* data_target = ScanLiteralPool(literal_list_, value, 0); in LoadFPConstantValue() 126 data_target = AddWideData(&literal_list_, value, 0); in LoadFPConstantValue() 136 LIR* Arm64Mir2Lir::LoadFPConstantValueWide(RegStorage r_dest, int64_t value) { in LoadFPConstantValueWide() argument 138 if (value == 0) { in LoadFPConstantValueWide() 141 int32_t encoded_imm = EncodeImmDouble(value); in LoadFPConstantValueWide() 148 int32_t val_lo = Low32Bits(value); in LoadFPConstantValueWide() 149 int32_t val_hi = High32Bits(value); in LoadFPConstantValueWide() [all …]
|
/art/cmdline/ |
D | cmdline_parse_result.h | 49 static CmdlineParseResult<T> Success(const T& value) { in Success() 50 return CmdlineParseResult(value); in Success() 54 static CmdlineParseResult<T> Success(T&& value) { in Success() 55 return CmdlineParseResult(std::forward<T>(value)); in Success() 72 static CmdlineParseResult<T> OutOfRange(const T& value, in OutOfRange() 76 "actual: " + art::detail::ToStringAny(value) + in OutOfRange() 125 explicit CmdlineParseResult(const T& value) in CmdlineParseResult() 126 : CmdlineResult(kSuccess), value_(value), has_value_(true) {} in CmdlineParseResult() 127 explicit CmdlineParseResult(T&& value) in CmdlineParseResult() 128 : CmdlineResult(kSuccess), value_(std::forward<T>(value)), has_value_(true) {} in CmdlineParseResult()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
D | RawInsnHelper.java | 105 public static void writeUnsignedIntToFourBytes(byte[] raw, int idx, int value) { in writeUnsignedIntToFourBytes() argument 106 raw[idx] = (byte) (value & 0xFF); in writeUnsignedIntToFourBytes() 107 raw[idx + 1] = (byte) ((value & 0xFF00) >>> 8); in writeUnsignedIntToFourBytes() 108 raw[idx + 2] = (byte) ((value & 0xFF0000) >>> 16); in writeUnsignedIntToFourBytes() 109 raw[idx + 3] = (byte) ((value & 0xFF000000) >>> 24); in writeUnsignedIntToFourBytes() 115 public static void writeUnsignedShortToTwoBytes(byte[] raw, int idx, int value) { in writeUnsignedShortToTwoBytes() argument 116 raw[idx] = (byte) (value & 0xFF); in writeUnsignedShortToTwoBytes() 117 raw[idx + 1] = (byte) ((value & 0xFF00) >>> 8); in writeUnsignedShortToTwoBytes()
|
/art/test/015-switch/src/ |
D | Main.java | 26 public static void packedSwitch(int value) { in packedSwitch() argument 27 switch (value) { in packedSwitch() 44 public static void packedSwitch2(int value) { in packedSwitch2() argument 45 switch (value) { in packedSwitch2() 64 public static void packedSwitch3(int value) { in packedSwitch3() argument 65 switch (value) { in packedSwitch3() 82 public static void packedSwitch4(int value) { in packedSwitch4() argument 83 switch (value) { in packedSwitch4() 94 public static void packedSwitch5(int value) { in packedSwitch5() argument 95 switch (value) { in packedSwitch5() [all …]
|
/art/test/466-get-live-vreg/ |
D | get_live_vreg_jni.cc | 39 uint32_t value = 0; in VisitFrame() local 40 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 41 CHECK_EQ(value, 42u); in VisitFrame() 44 uint32_t value = 0; in VisitFrame() local 46 CHECK_EQ(GetVReg(m, 0, kIntVReg, &value), false); in VisitFrame() 48 CHECK(GetVReg(m, 0, kIntVReg, &value)); in VisitFrame() 49 CHECK_EQ(value, 1u); in VisitFrame()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 62 Primitive::Type field_type, JValue* value) in GetFieldValue() argument 64 DCHECK_EQ(value->GetJ(), INT64_C(0)); in GetFieldValue() 69 value->SetZ(is_volatile ? o->GetFieldBooleanVolatile(offset) : o->GetFieldBoolean(offset)); in GetFieldValue() 72 value->SetB(is_volatile ? o->GetFieldByteVolatile(offset) : o->GetFieldByte(offset)); in GetFieldValue() 75 value->SetC(is_volatile ? o->GetFieldCharVolatile(offset) : o->GetFieldChar(offset)); in GetFieldValue() 79 value->SetI(is_volatile ? o->GetField32Volatile(offset) : o->GetField32(offset)); in GetFieldValue() 83 value->SetJ(is_volatile ? o->GetField64Volatile(offset) : o->GetField64(offset)); in GetFieldValue() 86 value->SetS(is_volatile ? o->GetFieldShortVolatile(offset) : o->GetFieldShort(offset)); in GetFieldValue() 90 value->SetL(is_volatile ? o->GetFieldObjectVolatile<mirror::Object>(offset) : in GetFieldValue() 149 JValue value; in Field_get() local [all …]
|