Searched refs:type (Results 1 - 25 of 197) sorted by relevance

12345678

/art/runtime/
H A Dprimitive.cc34 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 Dprimitive.h51 static Type GetType(char type) { argument
52 switch (type) {
76 static size_t ComponentSizeShift(Type type) { argument
77 switch (type) {
89 LOG(FATAL) << "Invalid type " << static_cast<int>(type);
94 static size_t ComponentSize(Type type) { argument
95 switch (type) {
107 LOG(FATAL) << "Invalid type " << static_cast<int>(type);
112 Descriptor(Type type) argument
140 IsFloatingPointType(Type type) argument
144 IsIntegralType(Type type) argument
160 IsIntOrLongType(Type type) argument
164 Is64BitType(Type type) argument
[all...]
H A Druntime-inl.h68 inline ArtMethod* Runtime::GetCalleeSaveMethod(CalleeSaveType type)
70 DCHECK(HasCalleeSaveMethod(type));
71 return GetCalleeSaveMethodUnchecked(type);
74 inline ArtMethod* Runtime::GetCalleeSaveMethodUnchecked(CalleeSaveType type)
76 return reinterpret_cast<ArtMethod*>(callee_save_methods_[type]);
H A Dart_field-inl.h122 #define FIELD_GET(object, type) \
123 DCHECK_EQ(Primitive::kPrim ## type, GetTypeAsPrimitiveType()) << PrettyField(this); \
127 return object->GetField ## type ## Volatile(GetOffset()); \
129 return object->GetField ## type(GetOffset());
131 #define FIELD_SET(object, type, value) \
132 DCHECK_EQ(Primitive::kPrim ## type, GetTypeAsPrimitiveType()) << PrettyField(this); \
136 object->SetField ## type ## Volatile<kTransactionActive>(GetOffset(), value); \
138 object->SetField ## type<kTransactionActive>(GetOffset(), value); \
182 Primitive::Type type = GetTypeAsPrimitiveType(); local
183 CHECK(type
191 Primitive::Type type = GetTypeAsPrimitiveType(); local
199 Primitive::Type type = GetTypeAsPrimitiveType(); local
208 Primitive::Type type = GetTypeAsPrimitiveType(); local
298 mirror::Class* type = dex_cache->GetResolvedType(field_id.type_idx_); local
[all...]
/art/runtime/arch/x86/
H A Dquick_method_frame_info_x86.h47 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/mips/
H A Dquick_method_frame_info_mips.h40 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument
42 (type == Runtime::kRefsAndArgs ? kMipsCalleeSaveArgSpills : 0) |
43 (type == Runtime::kSaveAll ? kMipsCalleeSaveAllSpills : 0) | (1 << art::mips::RA);
46 constexpr uint32_t MipsCalleeSaveFPSpills(Runtime::CalleeSaveType type) { argument
47 return type == Runtime::kSaveAll ? kMipsCalleeSaveAllFPSpills : 0;
50 constexpr uint32_t MipsCalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument
51 return RoundUp((POPCOUNT(MipsCalleeSaveCoreSpills(type)) /* gprs */ +
52 POPCOUNT(MipsCalleeSaveFPSpills(type)) /* fprs */ +
56 constexpr QuickMethodFrameInfo MipsCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument
57 return QuickMethodFrameInfo(MipsCalleeSaveFrameSize(type),
[all...]
/art/runtime/arch/arm/
H A Dquick_method_frame_info_arm.h51 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 Dquick_method_frame_info_arm64.h60 constexpr uint32_t Arm64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { argument
62 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveArgSpills : 0) |
63 (type == Runtime::kSaveAll ? kArm64CalleeSaveAllSpills : 0);
66 constexpr uint32_t Arm64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { argument
68 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveFpArgSpills: 0) |
69 (type == Runtime::kSaveAll ? kArm64CalleeSaveFpAllSpills : 0);
72 constexpr uint32_t Arm64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { argument
73 return RoundUp((POPCOUNT(Arm64CalleeSaveCoreSpills(type)) /* gprs */ +
74 POPCOUNT(Arm64CalleeSaveFpSpills(type)) /* fprs */ +
78 constexpr QuickMethodFrameInfo Arm64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { argument
84 Arm64CalleeSaveFpr1Offset(Runtime::CalleeSaveType type) argument
90 Arm64CalleeSaveGpr1Offset(Runtime::CalleeSaveType type) argument
95 Arm64CalleeSaveLrOffset(Runtime::CalleeSaveType type) argument
[all...]
/art/runtime/arch/x86_64/
H A Dquick_method_frame_info_x86_64.h42 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 Dtype_static_if.h20 // 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/mips64/
H A Dquick_method_frame_info_mips64.h50 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...]
H A Dasm_support_mips64.S33 .type \name, %function
50 .type \name, %function
/art/runtime/entrypoints/quick/
H A Dcallee_save_frame.h73 static constexpr size_t GetCalleeSaveFrameSize(InstructionSet isa, Runtime::CalleeSaveType type) { argument
75 return (isa == kArm || isa == kThumb2) ? arm::ArmCalleeSaveFrameSize(type) :
76 isa == kArm64 ? arm64::Arm64CalleeSaveFrameSize(type) :
77 isa == kMips ? mips::MipsCalleeSaveFrameSize(type) :
78 isa == kMips64 ? mips64::Mips64CalleeSaveFrameSize(type) :
79 isa == kX86 ? x86::X86CalleeSaveFrameSize(type) :
80 isa == kX86_64 ? x86_64::X86_64CalleeSaveFrameSize(type) :
100 Runtime::CalleeSaveType type) {
101 return GetCalleeSaveFrameSize(isa, type) - GetConstExprPointerSize(isa);
99 GetCalleeSaveReturnPcOffset(InstructionSet isa, Runtime::CalleeSaveType type) argument
H A Dquick_trampoline_entrypoints_test.cc34 static ArtMethod* CreateCalleeSaveMethod(InstructionSet isa, Runtime::CalleeSaveType type)
43 r->SetCalleeSaveMethod(save_method, type);
50 static void CheckFrameSize(InstructionSet isa, Runtime::CalleeSaveType type, uint32_t save_size)
52 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type);
55 << type << " core spills=" << std::hex << frame_info.CoreSpillMask() << " fp spills="
59 static void CheckPCOffset(InstructionSet isa, Runtime::CalleeSaveType type, size_t pc_offset)
61 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type);
64 << "Expected and real pc offset differs for " << type
/art/compiler/dex/
H A Dcompiler_ir.h42 * Structure abstracting pass option values, which can be of type string or integer.
46 type(option.type), container(option.container, option.type) {}
49 type(kString), container(value) {}
52 type(kInteger), container(value) {}
55 type(kInteger), container(value) {}
58 if (type == kString) {
67 if (option.type == kString) {
87 * the parameter @p value. It will return false if the type o
125 OptionType type; member in struct:art::OptionContent
[all...]
H A Dpass_me.h74 explicit PassME(const char* name, DataFlowAnalysisMode type = kAllNodes,
76 : Pass(name), traversal_type_(type), flags_(flags), dump_cfg_folder_(dump) {
79 PassME(const char* name, DataFlowAnalysisMode type, const char* dump) argument
80 : Pass(name), traversal_type_(type), flags_(0), dump_cfg_folder_(dump) {
191 if (option_content.type != OptionContent::kString) {
201 if (option_content.type != OptionContent::kInteger) {
/art/runtime/interpreter/
H A Dsafe_math.h26 // 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/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc27 static void DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, argument
32 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset]));
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DMapItem.java41 public short type; field in class:MapItem
47 type = file.readUShort();
50 if (type == TYPE_HEADER_ITEM) {
59 file.writeUShort(type);
/art/compiler/optimizing/
H A Dcommon_arm64.h64 static inline vixl::Register RegisterFrom(Location location, Primitive::Type type) { argument
65 DCHECK(type != Primitive::kPrimVoid && !Primitive::IsFloatingPointType(type));
66 return type == Primitive::kPrimLong ? XRegisterFrom(location) : WRegisterFrom(location);
88 static inline vixl::FPRegister FPRegisterFrom(Location location, Primitive::Type type) { argument
89 DCHECK(Primitive::IsFloatingPointType(type));
90 return type == Primitive::kPrimDouble ? DRegisterFrom(location) : SRegisterFrom(location);
102 static inline vixl::CPURegister CPURegisterFrom(Location location, Primitive::Type type) { argument
103 return Primitive::IsFloatingPointType(type) ? vixl::CPURegister(FPRegisterFrom(location, type))
131 OperandFrom(Location location, Primitive::Type type) argument
[all...]
H A Dbuilder.h103 HInstruction* LoadLocal(int register_index, Primitive::Type type) const;
109 void Unop_12x(const Instruction& instruction, Primitive::Type type);
112 void Binop_23x(const Instruction& instruction, Primitive::Type type);
115 void Binop_23x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
118 void Binop_23x_shift(const Instruction& instruction, Primitive::Type type);
121 Primitive::Type type,
126 void Binop_12x(const Instruction& instruction, Primitive::Type type);
129 void Binop_12x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
132 void Binop_12x_shift(const Instruction& instruction, Primitive::Type type);
152 Primitive::Type type,
[all...]
H A Dconstant_folding.cc113 Primitive::Type type = instruction->GetType(); local
114 if (Primitive::IsIntOrLongType(type) &&
146 Primitive::Type type = instruction->GetType(); local
148 if (!Primitive::IsIntegralType(type)) {
176 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0));
190 Primitive::Type type = instruction->GetType(); local
192 if (!Primitive::IsIntegralType(type)) {
209 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0));
224 Primitive::Type type = instruction->GetType(); local
226 instruction->ReplaceWith(GetGraph()->GetConstant(type,
[all...]
/art/runtime/mirror/
H A Dfield-inl.h34 // 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());
/art/compiler/utils/arm/
H A Dassembler_thumb2_test.cc251 arm::StoreOperandType type = arm::kStoreWord; local
253 ASSERT_TRUE(arm::Address::CanHoldStoreOffsetThumb(type, offset));
255 __ StoreToOffset(type, arm::R0, arm::SP, offset);
256 __ StoreToOffset(type, arm::IP, arm::SP, offset);
257 __ StoreToOffset(type, arm::IP, arm::R5, offset);
267 arm::StoreOperandType type = arm::kStoreWord; local
269 ASSERT_FALSE(arm::Address::CanHoldStoreOffsetThumb(type, offset));
271 __ StoreToOffset(type, arm::R0, arm::SP, offset);
272 __ StoreToOffset(type, arm::IP, arm::SP, offset);
273 __ StoreToOffset(type, ar
295 arm::StoreOperandType type = arm::kStoreWordPair; local
319 arm::StoreOperandType type = arm::kStoreWordPair; local
[all...]
/art/runtime/gc/accounting/
H A Dmod_union_table_test.cc40 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space);
66 void RunTest(ModUnionTableFactory::TableType type);
119 std::ostream& operator<<(std::ostream& oss, ModUnionTableFactory::TableType type) { argument
120 switch (type) {
130 UNIMPLEMENTED(FATAL) << static_cast<size_t>(type);
137 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) {
139 name << "Mod union table: " << type; local
140 switch (type) {
149 UNIMPLEMENTED(FATAL) << "Invalid type " << type;
136 Create( TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) argument
163 RunTest(ModUnionTableFactory::TableType type) argument
[all...]

Completed in 2562 milliseconds

12345678