/art/runtime/ |
H A D | primitive.cc | 34 const char* Primitive::PrettyDescriptor(Primitive::Type type) { argument 35 CHECK(Primitive::kPrimNot <= type && type <= Primitive::kPrimVoid) << static_cast<int>(type); 36 return kTypeNames[type]; 39 std::ostream& operator<<(std::ostream& os, const Primitive::Type& type) { argument 40 int32_t int_type = static_cast<int32_t>(type); 41 if (type >= Primitive::kPrimNot && type <= Primitive::kPrimVoid) {
|
H A D | primitive.h | 52 static Type GetType(char type) { argument 53 switch (type) { 77 static size_t ComponentSizeShift(Type type) { argument 78 switch (type) { 90 LOG(FATAL) << "Invalid type " << static_cast<int>(type); 95 static size_t ComponentSize(Type type) { argument 96 switch (type) { 108 LOG(FATAL) << "Invalid type " << static_cast<int>(type); 113 Descriptor(Type type) argument 141 IsFloatingPointType(Type type) argument 145 IsIntegralType(Type type) argument 161 IsIntOrLongType(Type type) argument 165 Is64BitType(Type type) argument 170 PrimitiveKind(Type type) argument 183 MinValueOfIntegralType(Type type) argument 203 MaxValueOfIntegralType(Type type) argument [all...] |
H A D | runtime-inl.h | 69 inline ArtMethod* Runtime::GetCalleeSaveMethod(CalleeSaveType type) 71 DCHECK(HasCalleeSaveMethod(type)); 72 return GetCalleeSaveMethodUnchecked(type); 75 inline ArtMethod* Runtime::GetCalleeSaveMethodUnchecked(CalleeSaveType type) 77 return reinterpret_cast<ArtMethod*>(callee_save_methods_[type]);
|
H A D | art_field.cc | 41 Primitive::Type type = GetTypeAsPrimitiveType(); local 42 if (type == Primitive::kPrimDouble || type == Primitive::kPrimLong) {
|
H A D | art_field-inl.h | 123 #define FIELD_GET(object, type) \ 124 DCHECK_EQ(Primitive::kPrim ## type, GetTypeAsPrimitiveType()) << PrettyField(this); \ 128 return object->GetField ## type ## Volatile(GetOffset()); \ 130 return object->GetField ## type(GetOffset()); 132 #define FIELD_SET(object, type, value) \ 133 DCHECK_EQ(Primitive::kPrim ## type, GetTypeAsPrimitiveType()) << PrettyField(this); \ 137 object->SetField ## type ## Volatile<kTransactionActive>(GetOffset(), value); \ 139 object->SetField ## type<kTransactionActive>(GetOffset(), value); \ 183 Primitive::Type type = GetTypeAsPrimitiveType(); local 184 CHECK(type 192 Primitive::Type type = GetTypeAsPrimitiveType(); local 200 Primitive::Type type = GetTypeAsPrimitiveType(); local 209 Primitive::Type type = GetTypeAsPrimitiveType(); local 299 mirror::Class* type = dex_cache->GetResolvedType(field_id.type_idx_); local 359 Primitive::Type type = field.GetTypeAsPrimitiveType(); local [all...] |
/art/test/964-default-iface-init-generated/src/ |
H A D | Displayer.java | 18 public Displayer(String type) { argument 19 System.out.println("initialization of " + type);
|
/art/runtime/arch/x86/ |
H A D | quick_method_frame_info_x86.h | 47 constexpr uint32_t X86CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 48 return kX86CalleeSaveRefSpills | (type == Runtime::kRefsAndArgs ? kX86CalleeSaveArgSpills : 0) | 52 constexpr uint32_t X86CalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument 53 return type == Runtime::kRefsAndArgs ? kX86CalleeSaveFpArgSpills : 0; 56 constexpr uint32_t X86CalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 57 return RoundUp((POPCOUNT(X86CalleeSaveCoreSpills(type)) /* gprs */ + 58 2 * POPCOUNT(X86CalleeSaveFpSpills(type)) /* fprs */ + 62 constexpr QuickMethodFrameInfo X86CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument 63 return QuickMethodFrameInfo(X86CalleeSaveFrameSize(type), 64 X86CalleeSaveCoreSpills(type), [all...] |
/art/runtime/arch/arm/ |
H A D | quick_method_frame_info_arm.h | 51 constexpr uint32_t ArmCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 53 (type == Runtime::kRefsAndArgs ? kArmCalleeSaveArgSpills : 0) | 54 (type == Runtime::kSaveAll ? kArmCalleeSaveAllSpills : 0); 57 constexpr uint32_t ArmCalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument 59 (type == Runtime::kRefsAndArgs ? kArmCalleeSaveFpArgSpills: 0) | 60 (type == Runtime::kSaveAll ? kArmCalleeSaveFpAllSpills : 0); 63 constexpr uint32_t ArmCalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 64 return RoundUp((POPCOUNT(ArmCalleeSaveCoreSpills(type)) /* gprs */ + 65 POPCOUNT(ArmCalleeSaveFpSpills(type)) /* fprs */ + 69 constexpr QuickMethodFrameInfo ArmCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument 75 ArmCalleeSaveFpr1Offset(Runtime::CalleeSaveType type) argument 81 ArmCalleeSaveGpr1Offset(Runtime::CalleeSaveType type) argument 86 ArmCalleeSaveLrOffset(Runtime::CalleeSaveType type) argument [all...] |
/art/runtime/arch/arm64/ |
H A D | quick_method_frame_info_arm64.h | 59 constexpr uint32_t Arm64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 61 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveArgSpills : 0) | 62 (type == Runtime::kSaveAll ? kArm64CalleeSaveAllSpills : 0); 65 constexpr uint32_t Arm64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument 67 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveFpArgSpills: 0) | 68 (type == Runtime::kSaveAll ? kArm64CalleeSaveFpAllSpills : 0); 71 constexpr uint32_t Arm64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 72 return RoundUp((POPCOUNT(Arm64CalleeSaveCoreSpills(type)) /* gprs */ + 73 POPCOUNT(Arm64CalleeSaveFpSpills(type)) /* fprs */ + 77 constexpr QuickMethodFrameInfo Arm64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument 83 Arm64CalleeSaveFpr1Offset(Runtime::CalleeSaveType type) argument 89 Arm64CalleeSaveGpr1Offset(Runtime::CalleeSaveType type) argument 94 Arm64CalleeSaveLrOffset(Runtime::CalleeSaveType type) argument [all...] |
/art/runtime/arch/x86_64/ |
H A D | quick_method_frame_info_x86_64.h | 42 constexpr uint32_t X86_64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 44 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveArgSpills : 0) | 48 constexpr uint32_t X86_64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument 50 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveFpArgSpills : 0); 53 constexpr uint32_t X86_64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 54 return RoundUp((POPCOUNT(X86_64CalleeSaveCoreSpills(type)) /* gprs */ + 55 POPCOUNT(X86_64CalleeSaveFpSpills(type)) /* fprs */ + 59 constexpr QuickMethodFrameInfo X86_64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument 60 return QuickMethodFrameInfo(X86_64CalleeSaveFrameSize(type), 61 X86_64CalleeSaveCoreSpills(type), [all...] |
/art/runtime/base/ |
H A D | type_static_if.h | 20 // A static if which determines whether to return type A or B based on the condition boolean. 23 typedef A type; typedef in struct:TypeStaticIf 29 typedef B type; typedef in struct:TypeStaticIf
|
/art/runtime/arch/mips/ |
H A D | quick_method_frame_info_mips.h | 47 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 49 (type == Runtime::kRefsAndArgs ? kMipsCalleeSaveArgSpills : 0) | 50 (type == Runtime::kSaveAll ? kMipsCalleeSaveAllSpills : 0); 53 constexpr uint32_t MipsCalleeSaveFPSpills(Runtime::CalleeSaveType type) { argument 55 (type == Runtime::kRefsAndArgs ? kMipsCalleeSaveFpArgSpills : 0) | 56 (type == Runtime::kSaveAll ? kMipsCalleeSaveAllFPSpills : 0); 59 constexpr uint32_t MipsCalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 60 return RoundUp((POPCOUNT(MipsCalleeSaveCoreSpills(type)) /* gprs */ + 61 POPCOUNT(MipsCalleeSaveFPSpills(type)) /* fprs */ + 65 constexpr QuickMethodFrameInfo MipsCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument [all...] |
/art/runtime/arch/mips64/ |
H A D | quick_method_frame_info_mips64.h | 50 constexpr uint32_t Mips64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument 52 (type == Runtime::kRefsAndArgs ? kMips64CalleeSaveArgSpills : 0) | 53 (type == Runtime::kSaveAll ? kMips64CalleeSaveAllSpills : 0) | (1 << art::mips64::RA); 56 constexpr uint32_t Mips64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument 58 (type == Runtime::kRefsAndArgs ? kMips64CalleeSaveFpArgSpills: 0) | 59 (type == Runtime::kSaveAll ? kMips64CalleeSaveFpAllSpills : 0); 62 constexpr uint32_t Mips64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument 63 return RoundUp((POPCOUNT(Mips64CalleeSaveCoreSpills(type)) /* gprs */ + 64 POPCOUNT(Mips64CalleeSaveFpSpills(type)) /* fprs */ + 68 constexpr QuickMethodFrameInfo Mips64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument [all...] |
/art/runtime/entrypoints/quick/ |
H A D | callee_save_frame.h | 76 static constexpr size_t GetCalleeSaveFrameSize(InstructionSet isa, Runtime::CalleeSaveType type) { argument 78 return (isa == kArm || isa == kThumb2) ? arm::ArmCalleeSaveFrameSize(type) : 79 isa == kArm64 ? arm64::Arm64CalleeSaveFrameSize(type) : 80 isa == kMips ? mips::MipsCalleeSaveFrameSize(type) : 81 isa == kMips64 ? mips64::Mips64CalleeSaveFrameSize(type) : 82 isa == kX86 ? x86::X86CalleeSaveFrameSize(type) : 83 isa == kX86_64 ? x86_64::X86_64CalleeSaveFrameSize(type) : 103 Runtime::CalleeSaveType type) { 104 return GetCalleeSaveFrameSize(isa, type) - GetConstExprPointerSize(isa); 102 GetCalleeSaveReturnPcOffset(InstructionSet isa, Runtime::CalleeSaveType type) argument
|
H A D | quick_trampoline_entrypoints_test.cc | 41 static ArtMethod* CreateCalleeSaveMethod(InstructionSet isa, Runtime::CalleeSaveType type) 51 r->SetCalleeSaveMethod(save_method, type); 56 static void CheckFrameSize(InstructionSet isa, Runtime::CalleeSaveType type, uint32_t save_size) 58 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type); 61 << type << " core spills=" << std::hex << frame_info.CoreSpillMask() << " fp spills=" 65 static void CheckPCOffset(InstructionSet isa, Runtime::CalleeSaveType type, size_t pc_offset) 67 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type); 70 << "Expected and real pc offset differs for " << type
|
/art/runtime/interpreter/ |
H A D | safe_math.h | 26 // Declares a type which is the larger in bit size of the two template parameters. 29 typedef typename std::conditional<sizeof(T1) >= sizeof(T2), T1, T2>::type type; typedef in struct:art::interpreter::select_bigger 34 static inline typename select_bigger<T1, T2>::type SafeMath(T1 a, T2 b) { 35 typedef typename select_bigger<T1, T2>::type biggest_T; 36 typedef typename std::make_unsigned<biggest_T>::type unsigned_biggest_T; 46 static inline typename select_bigger<T1, T2>::type SafeAdd(T1 a, T2 b) { 52 static inline typename select_bigger<T1, T2>::type SafeSub(T1 a, T2 b) { 58 static inline typename select_bigger<T1, T2>::type SafeMul(T1 a, T2 b) {
|
/art/compiler/optimizing/ |
H A D | ssa_builder.h | 43 * that require merging and have a proper type after the merge, are 65 HInstruction* GetFloatOrDoubleEquivalent(HInstruction* instruction, Primitive::Type type); 69 Primitive::Type type = aget->GetType(); local 70 DCHECK(!Primitive::IsFloatingPointType(type)); 71 if (Primitive::IsIntOrLongType(type)) { 77 Primitive::Type type = aset->GetValue()->GetType(); local 78 if (Primitive::IsIntOrLongType(type)) { 101 // Attempts to resolve types of aget(-wide) instructions and type values passed 102 // to aput(-wide) instructions from reference type information on the array 103 // input. Returns false if the type o [all...] |
H A D | side_effects_test.cc | 92 // Apply test to each individual primitive type. 93 for (Primitive::Type type = Primitive::kPrimNot; 94 type < Primitive::kPrimVoid; 95 type = Primitive::Type(type + 1)) { 96 // Same primitive type and access type: proper write/read dep. 98 SideEffects::FieldWriteOfType(type, false), 99 SideEffects::FieldReadOfType(type, false)); 101 SideEffects::ArrayWriteOfType(type), [all...] |
H A D | induction_var_analysis.h | 107 type(t) {} 113 Primitive::Type type; // precision of induction member in struct:art::HInductionVarAnalysis::InductionInfo 134 Primitive::Type type) { 136 return new (graph_->GetArena()) InductionInfo(kInvariant, op, a, b, nullptr, type); 142 Primitive::Type type) { 144 return new (graph_->GetArena()) InductionInfo(ic, kNop, a, b, nullptr, type); 159 InductionInfo* TransferShl(InductionInfo* a, InductionInfo* b, Primitive::Type type); 182 Primitive::Type type, 189 Primitive::Type type, 194 Primitive::Type type, 131 CreateTripCount(InductionOp op, InductionInfo* a, InductionInfo* b, Primitive::Type type) argument 139 CreateInduction(InductionClass ic, InductionInfo* a, InductionInfo* b, Primitive::Type type) argument [all...] |
H A D | instruction_simplifier_shared.cc | 89 Primitive::Type type = mul->GetType(); local 93 if (type != Primitive::kPrimInt) { 98 if (!Primitive::IsIntOrLongType(type)) { 138 new (arena) HMultiplyAccumulate(type, 151 new (arena) HMultiplyAccumulate(type, 153 mul->GetBlock()->GetGraph()->GetConstant(type, 0),
|
H A D | common_arm64.h | 65 static inline vixl::Register RegisterFrom(Location location, Primitive::Type type) { argument 66 DCHECK(type != Primitive::kPrimVoid && !Primitive::IsFloatingPointType(type)) << type; 67 return type == Primitive::kPrimLong ? XRegisterFrom(location) : WRegisterFrom(location); 89 static inline vixl::FPRegister FPRegisterFrom(Location location, Primitive::Type type) { argument 90 DCHECK(Primitive::IsFloatingPointType(type)) << type; 91 return type == Primitive::kPrimDouble ? DRegisterFrom(location) : SRegisterFrom(location); 103 static inline vixl::CPURegister CPURegisterFrom(Location location, Primitive::Type type) { argument 132 OperandFrom(Location location, Primitive::Type type) argument [all...] |
/art/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 27 static void DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, argument 32 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset]));
|
/art/tools/checker/common/ |
H A D | mixins.py | 26 return "<%s: %s>" % (type(self).__name__, str(self.__dict__))
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | MapItem.java | 41 public short type; field in class:MapItem 47 type = file.readUShort(); 50 if (type == TYPE_HEADER_ITEM) { 59 file.writeUShort(type);
|
/art/runtime/mirror/ |
H A D | field-inl.h | 34 // Try to resolve type before allocating since this is a thread suspension point. 35 Handle<mirror::Class> type = hs.NewHandle(field->GetType<true>()); local 37 if (type.Get() == nullptr) { 44 // Can't resolve, clear the exception if it isn't OOME and continue with a null type. 76 ret->SetType<kTransactionActive>(type.Get());
|