Searched refs:value (Results 1 - 25 of 164) sorted by relevance

1234567

/art/test/078-polymorphic-virtual/src/
H A DDerived1.java19 value += 1;
H A DDerived2.java19 value += 2;
H A DDerived3.java19 value += 3;
H A DBase.java18 int value; field in class:Base
30 return value;
/art/runtime/base/
H A Dbit_field.h32 // Tells whether the provided value fits into the bit field.
33 static bool IsValid(T value) { argument
34 return (static_cast<uword>(value) & ~((kUwordOne << size) - 1)) == 0;
59 // Returns a uword with the bit field value encoded.
60 static uword Encode(T value) { argument
61 DCHECK(IsValid(value));
62 return static_cast<uword>(value) << position;
65 // Extracts the bit field from the value.
66 static T Decode(uword value) { argument
67 return static_cast<T>((value >> positio
73 Update(T value, uword original) argument
[all...]
H A Dbounded_fifo.h46 void push_back(const T& value) { argument
50 data_[back_index_++ & mask_] = value;
/art/runtime/verifier/
H A Dreg_type_cache-inl.h34 inline ConstantType& RegTypeCache::FromCat1Const(int32_t value, bool precise) { argument
36 DCHECK(value != 0 || precise);
37 if (precise && (value >= kMinSmallConstant) && (value <= kMaxSmallConstant)) {
38 return *small_precise_constants_[value - kMinSmallConstant];
40 return FromCat1NonSmallConstant(value, precise);
/art/runtime/jdwp/
H A Djdwp_bits.h35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { argument
36 bytes.push_back(value);
39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { argument
40 bytes.push_back(static_cast<uint8_t>(value >> 8));
41 bytes.push_back(static_cast<uint8_t>(value));
44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { argument
45 bytes.push_back(static_cast<uint8_t>(value >> 24));
46 bytes.push_back(static_cast<uint8_t>(value >> 16));
47 bytes.push_back(static_cast<uint8_t>(value >> 8));
48 bytes.push_back(static_cast<uint8_t>(value));
51 Append8BE(std::vector<uint8_t>& bytes, uint64_t value) argument
100 Write1BE(uint8_t** dst, uint8_t value) argument
105 Write2BE(uint8_t** dst, uint16_t value) argument
110 Write4BE(uint8_t** dst, uint32_t value) argument
115 Write8BE(uint8_t** dst, uint64_t value) argument
[all...]
H A Djdwp_constants.h90 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...]
H A Djdwp_request.cc64 // Helper function: read a variable-width value from the input buffer.
66 uint64_t value = -1; local
68 case 1: value = Read1(); break;
69 case 2: value = Read2BE(); break;
70 case 4: value = Read4BE(); break;
71 case 8: value = Read8BE(); break;
74 return value;
78 int32_t value = static_cast<int32_t>(Read4BE()); local
79 VLOG(jdwp) << " " << what << " " << value; local
80 return value;
84 uint32_t value = Read4BE(); local
85 VLOG(jdwp) << " " << what << " " << value; local
[all...]
/art/test/112-double-math/src/
H A DMain.java18 public static double cond_neg_double(double value, boolean cond) { argument
19 return cond ? -value : value;
/art/runtime/
H A Dleb128.h25 // Reads an unsigned LEB128 value, updating the given pointer to point
26 // just past the end of the read value. This function tolerates
53 // Reads an unsigned LEB128 + 1 value. updating the given pointer to point
54 // just past the end of the read value. This function tolerates
61 // Reads a signed LEB128 value, updating the given pointer to point
62 // just past the end of the read value. This function tolerates
97 // Returns the number of bytes needed to encode the value in unsigned LEB128.
107 // Returns the number of bytes needed to encode the value in unsigned LEB128.
115 static inline uint8_t* EncodeUnsignedLeb128(uint8_t* dest, uint32_t value) { argument
116 uint8_t out = value
127 EncodeSignedLeb128(uint8_t* dest, int32_t value) argument
150 PushBackUnsigned(uint32_t value) argument
168 PushBackSigned(int32_t value) argument
[all...]
H A Datomic.h58 // Reads the 64-bit value at "addr" without tearing.
61 int64_t value; local
63 value = *addr;
70 : "=r" (value)
76 : "=r" (value)
82 : "=x" (value)
88 return value;
94 // Writes to the 64-bit value at "addr" without tearing.
95 static void Write64(volatile int64_t* addr, int64_t value) { argument
98 *addr = value;
192 Atomic(T value) argument
269 FetchAndAddSequentiallyConsistent(const T value) argument
273 FetchAndSubSequentiallyConsistent(const T value) argument
277 FetchAndOrSequentiallyConsistent(const T value) argument
281 FetchAndAndSequentiallyConsistent(const T value) argument
[all...]
H A Dtransaction.cc60 void Transaction::RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value, argument
65 object_log.Log32BitsValue(field_offset, value, is_volatile);
68 void Transaction::RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value, argument
73 object_log.Log64BitsValue(field_offset, value, is_volatile);
77 mirror::Object* value, bool is_volatile) {
81 object_log.LogReferenceValue(field_offset, value, is_volatile);
84 void Transaction::RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) { argument
90 array_log.LogValue(index, value);
226 void Transaction::ObjectLog::Log32BitsValue(MemberOffset offset, uint32_t value, bool is_volatile) { argument
230 field_value.value
76 RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset, mirror::Object* value, bool is_volatile) argument
237 Log64BitsValue(MemberOffset offset, uint64_t value, bool is_volatile) argument
370 LogValue(size_t index, uint64_t value) argument
386 UndoArrayWrite(mirror::Array* array, Primitive::Type array_type, size_t index, uint64_t value) argument
[all...]
H A Dutils.h105 #define CHECK_ALIGNED(value, alignment) \
106 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
108 #define DCHECK_ALIGNED(value, alignment) \
109 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
111 #define DCHECK_ALIGNED_PARAM(value, alignment) \
112 DCHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
114 // Check whether an N-bit two's-complement representation can hold value
115 IsInt(int N, word value) argument
122 IsUint(int N, word value) argument
129 IsAbsoluteUint(int N, word value) argument
136 Low16Bits(uint32_t value) argument
140 High16Bits(uint32_t value) argument
144 Low32Bits(uint64_t value) argument
148 High32Bits(uint64_t value) argument
248 MostSignificantBit(T value) argument
254 MinimumBitsToStore(T value) argument
[all...]
/art/test/402-optimizing-control-flow/src/
H A DMain.java22 public static void expectEquals(int expected, int value) { argument
23 if (expected != value) {
24 throw new Error("Expected: " + expected + ", found: " + value);
/art/compiler/dex/quick/mips/
H A Dutility_mips.cc54 bool MipsMir2Lir::InexpensiveConstantInt(int32_t value) { argument
55 return ((value == 0) || IsUint(16, value) || ((value < 0) && (value >= -32768)));
58 bool MipsMir2Lir::InexpensiveConstantFloat(int32_t value) { argument
62 bool MipsMir2Lir::InexpensiveConstantLong(int64_t value) { argument
66 bool MipsMir2Lir::InexpensiveConstantDouble(int64_t value) { argument
79 LIR* MipsMir2Lir::LoadConstantNoClobber(RegStorage r_dest, int value) { argument
89 /* See if the value ca
131 OpRegImm(OpKind op, RegStorage r_dest_src1, int value) argument
202 OpRegRegImm(OpKind op, RegStorage r_dest, RegStorage r_src1, int value) argument
344 LoadConstantWide(RegStorage r_dest, int64_t value) argument
[all...]
/art/compiler/dex/quick/arm/
H A Dutility_arm.cc26 static int32_t EncodeImmSingle(int32_t value) { argument
28 int32_t bit_a = (value & 0x80000000) >> 31;
29 int32_t not_bit_b = (value & 0x40000000) >> 30;
30 int32_t bit_b = (value & 0x20000000) >> 29;
31 int32_t b_smear = (value & 0x3e000000) >> 25;
32 int32_t slice = (value & 0x01f80000) >> 19;
33 int32_t zeroes = (value & 0x0007ffff);
48 * Determine whether value can be encoded as a Thumb2 floating point
49 * immediate. If not, return -1. If so return encoded 8-bit value.
51 static int32_t EncodeImmDouble(int64_t value) { argument
72 LoadFPConstantValue(int r_dest, int value) argument
120 ModifiedImmediate(uint32_t value) argument
149 InexpensiveConstantInt(int32_t value) argument
153 InexpensiveConstantFloat(int32_t value) argument
157 InexpensiveConstantLong(int64_t value) argument
161 InexpensiveConstantDouble(int64_t value) argument
173 LoadConstantNoClobber(RegStorage r_dest, int value) argument
463 OpRegRegImm(OpKind op, RegStorage r_dest, RegStorage r_src1, int value) argument
600 OpRegImm(OpKind op, RegStorage r_dest_src1, int value) argument
641 LoadConstantWide(RegStorage r_dest, int64_t value) argument
[all...]
/art/compiler/dex/quick/arm64/
H A Dutility_arm64.cc110 LIR* Arm64Mir2Lir::LoadFPConstantValue(RegStorage r_dest, int32_t value) { argument
112 if (value == 0) {
115 int32_t encoded_imm = EncodeImmSingle((uint32_t)value);
121 LIR* data_target = ScanLiteralPool(literal_list_, value, 0);
124 data_target = AddWideData(&literal_list_, value, 0);
134 LIR* Arm64Mir2Lir::LoadFPConstantValueWide(RegStorage r_dest, int64_t value) { argument
136 if (value == 0) {
139 int32_t encoded_imm = EncodeImmDouble(value);
146 int32_t val_lo = Low32Bits(value);
147 int32_t val_hi = High32Bits(value);
160 CountLeadingZeros(bool is_wide, uint64_t value) argument
164 CountTrailingZeros(bool is_wide, uint64_t value) argument
168 CountSetBits(bool is_wide, uint64_t value) argument
182 EncodeLogicalImmediate(bool is_wide, uint64_t value) argument
285 GetNumFastHalfWords(uint64_t value) argument
309 InexpensiveConstantInt(int32_t value) argument
315 InexpensiveConstantFloat(int32_t value) argument
319 InexpensiveConstantLong(int64_t value) argument
327 InexpensiveConstantDouble(int64_t value) argument
334 InexpensiveConstantInt(int32_t value, Instruction::Code opcode) argument
392 LoadConstantNoClobber(RegStorage r_dest, int value) argument
456 LoadConstantWide(RegStorage r_dest, int64_t value) argument
805 OpRegRegImm(OpKind op, RegStorage r_dest, RegStorage r_src1, int value) argument
809 OpRegRegImm64(OpKind op, RegStorage r_dest, RegStorage r_src1, int64_t value) argument
935 OpRegImm(OpKind op, RegStorage r_dest_src1, int value) argument
939 OpRegImm64(OpKind op, RegStorage r_dest_src1, int64_t value) argument
[all...]
/art/test/701-easy-div-rem/
H A DgenMain.py28 for key, value in variables.iteritems():
29 text = text.replace(str(key), str(value))
39 for i, value in enumerate(values):
41 local_vars['@VALUE@'] = value
/art/runtime/native/
H A Djava_lang_reflect_Field.cc51 Primitive::Type field_type, JValue* value)
53 DCHECK_EQ(value->GetJ(), INT64_C(0));
56 value->SetZ(f->GetBoolean(o));
59 value->SetB(f->GetByte(o));
62 value->SetC(f->GetChar(o));
65 value->SetD(f->GetDouble(o));
68 value->SetF(f->GetFloat(o));
71 value->SetI(f->GetInt(o));
74 value->SetJ(f->GetLong(o));
77 value
139 JValue value; local
346 JValue value; local
353 JValue value; local
360 JValue value; local
367 JValue value; local
374 JValue value; local
381 JValue value; local
388 JValue value; local
395 JValue value; local
[all...]
/art/compiler/optimizing/
H A Dpretty_printer.h97 virtual void PrintInt(int value) = 0;
98 virtual void PrintString(const char* value) = 0;
109 virtual void PrintInt(int value) { argument
110 str_ += StringPrintf("%d", value);
113 virtual void PrintString(const char* value) { argument
114 str_ += value;
/art/disassembler/
H A Ddisassembler.h73 static inline bool HasBitSet(uint32_t value, uint32_t bit) { argument
74 return (value & (1 << bit)) != 0;
/art/runtime/arch/
H A Dcontext.h46 // Sets the stack pointer value.
49 // Sets the program counter value.
56 // set its value into 'val', returns false otherwise.
59 // Sets the given GPR. Returns true if we successfully write the given value
61 virtual bool SetGPR(uint32_t reg, uintptr_t value) = 0;
64 // set its value into 'val', returns false otherwise.
67 // Sets the given FPR. Returns true if we successfully write the given value
69 virtual bool SetFPR(uint32_t reg, uintptr_t value) = 0;
/art/runtime/gc/accounting/
H A Datomic_stack.h58 bool AtomicPushBackIgnoreGrowthLimit(const T& value) { argument
59 return AtomicPushBackInternal(value, capacity_);
63 bool AtomicPushBack(const T& value) { argument
64 return AtomicPushBackInternal(value, growth_limit_);
103 void PushBack(const T& value) { argument
110 begin_[index] = value;
173 bool ContainsSorted(const T& value) const {
175 return std::binary_search(Begin(), End(), value);
178 bool Contains(const T& value) const {
179 return std::find(Begin(), End(), value) !
[all...]

Completed in 476 milliseconds

1234567