Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 220) sorted by relevance

123456789

/art/runtime/
Dprimitive.h51 static Type GetType(char type) { in GetType() argument
52 switch (type) { in GetType()
76 static size_t ComponentSizeShift(Type type) { in ComponentSizeShift() argument
77 switch (type) { in ComponentSizeShift()
89 LOG(FATAL) << "Invalid type " << static_cast<int>(type); in ComponentSizeShift()
94 static size_t ComponentSize(Type type) { in ComponentSize() argument
95 switch (type) { in ComponentSize()
107 LOG(FATAL) << "Invalid type " << static_cast<int>(type); in ComponentSize()
112 static const char* Descriptor(Type type) { in Descriptor() argument
113 switch (type) { in Descriptor()
[all …]
Dprimitive.cc34 const char* Primitive::PrettyDescriptor(Primitive::Type type) { in PrettyDescriptor() argument
35 CHECK(Primitive::kPrimNot <= type && type <= Primitive::kPrimVoid) << static_cast<int>(type); in PrettyDescriptor()
36 return kTypeNames[type]; in PrettyDescriptor()
39 std::ostream& operator<<(std::ostream& os, const Primitive::Type& type) { in operator <<() argument
40 int32_t int_type = static_cast<int32_t>(type); in operator <<()
41 if (type >= Primitive::kPrimNot && type <= Primitive::kPrimVoid) { in operator <<()
Dart_field-inl.h122 #define FIELD_GET(object, type) \ argument
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) \ argument
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(); in GetInt() local
183 CHECK(type == Primitive::kPrimInt || type == Primitive::kPrimFloat) << PrettyField(this); in GetInt()
[all …]
Druntime-inl.h68 inline ArtMethod* Runtime::GetCalleeSaveMethod(CalleeSaveType type) in GetCalleeSaveMethod() argument
70 DCHECK(HasCalleeSaveMethod(type)); in GetCalleeSaveMethod()
71 return GetCalleeSaveMethodUnchecked(type); in GetCalleeSaveMethod()
74 inline ArtMethod* Runtime::GetCalleeSaveMethodUnchecked(CalleeSaveType type) in GetCalleeSaveMethodUnchecked() argument
76 return reinterpret_cast<ArtMethod*>(callee_save_methods_[type]); in GetCalleeSaveMethodUnchecked()
/art/runtime/arch/arm64/
Dquick_method_frame_info_arm64.h60 constexpr uint32_t Arm64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in Arm64CalleeSaveCoreSpills() argument
62 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveArgSpills : 0) | in Arm64CalleeSaveCoreSpills()
63 (type == Runtime::kSaveAll ? kArm64CalleeSaveAllSpills : 0); in Arm64CalleeSaveCoreSpills()
66 constexpr uint32_t Arm64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in Arm64CalleeSaveFpSpills() argument
68 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveFpArgSpills: 0) | in Arm64CalleeSaveFpSpills()
69 (type == Runtime::kSaveAll ? kArm64CalleeSaveFpAllSpills : 0); in Arm64CalleeSaveFpSpills()
72 constexpr uint32_t Arm64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in Arm64CalleeSaveFrameSize() argument
73 return RoundUp((POPCOUNT(Arm64CalleeSaveCoreSpills(type)) /* gprs */ + in Arm64CalleeSaveFrameSize()
74 POPCOUNT(Arm64CalleeSaveFpSpills(type)) /* fprs */ + in Arm64CalleeSaveFrameSize()
78 constexpr QuickMethodFrameInfo Arm64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in Arm64CalleeSaveMethodFrameInfo() argument
[all …]
/art/runtime/arch/arm/
Dquick_method_frame_info_arm.h51 constexpr uint32_t ArmCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in ArmCalleeSaveCoreSpills() argument
53 (type == Runtime::kRefsAndArgs ? kArmCalleeSaveArgSpills : 0) | in ArmCalleeSaveCoreSpills()
54 (type == Runtime::kSaveAll ? kArmCalleeSaveAllSpills : 0); in ArmCalleeSaveCoreSpills()
57 constexpr uint32_t ArmCalleeSaveFpSpills(Runtime::CalleeSaveType type) { in ArmCalleeSaveFpSpills() argument
59 (type == Runtime::kRefsAndArgs ? kArmCalleeSaveFpArgSpills: 0) | in ArmCalleeSaveFpSpills()
60 (type == Runtime::kSaveAll ? kArmCalleeSaveFpAllSpills : 0); in ArmCalleeSaveFpSpills()
63 constexpr uint32_t ArmCalleeSaveFrameSize(Runtime::CalleeSaveType type) { in ArmCalleeSaveFrameSize() argument
64 return RoundUp((POPCOUNT(ArmCalleeSaveCoreSpills(type)) /* gprs */ + in ArmCalleeSaveFrameSize()
65 POPCOUNT(ArmCalleeSaveFpSpills(type)) /* fprs */ + in ArmCalleeSaveFrameSize()
69 constexpr QuickMethodFrameInfo ArmCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in ArmCalleeSaveMethodFrameInfo() argument
[all …]
/art/runtime/arch/x86/
Dquick_method_frame_info_x86.h47 constexpr uint32_t X86CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in X86CalleeSaveCoreSpills() argument
48 return kX86CalleeSaveRefSpills | (type == Runtime::kRefsAndArgs ? kX86CalleeSaveArgSpills : 0) | in X86CalleeSaveCoreSpills()
52 constexpr uint32_t X86CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in X86CalleeSaveFpSpills() argument
53 return type == Runtime::kRefsAndArgs ? kX86CalleeSaveFpArgSpills : 0; in X86CalleeSaveFpSpills()
56 constexpr uint32_t X86CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in X86CalleeSaveFrameSize() argument
57 return RoundUp((POPCOUNT(X86CalleeSaveCoreSpills(type)) /* gprs */ + in X86CalleeSaveFrameSize()
58 2 * POPCOUNT(X86CalleeSaveFpSpills(type)) /* fprs */ + in X86CalleeSaveFrameSize()
62 constexpr QuickMethodFrameInfo X86CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in X86CalleeSaveMethodFrameInfo() argument
63 return QuickMethodFrameInfo(X86CalleeSaveFrameSize(type), in X86CalleeSaveMethodFrameInfo()
64 X86CalleeSaveCoreSpills(type), in X86CalleeSaveMethodFrameInfo()
[all …]
/art/runtime/arch/mips/
Dquick_method_frame_info_mips.h40 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in MipsCalleeSaveCoreSpills() argument
42 (type == Runtime::kRefsAndArgs ? kMipsCalleeSaveArgSpills : 0) | in MipsCalleeSaveCoreSpills()
43 (type == Runtime::kSaveAll ? kMipsCalleeSaveAllSpills : 0) | (1 << art::mips::RA); in MipsCalleeSaveCoreSpills()
46 constexpr uint32_t MipsCalleeSaveFPSpills(Runtime::CalleeSaveType type) { in MipsCalleeSaveFPSpills() argument
47 return type == Runtime::kSaveAll ? kMipsCalleeSaveAllFPSpills : 0; in MipsCalleeSaveFPSpills()
50 constexpr uint32_t MipsCalleeSaveFrameSize(Runtime::CalleeSaveType type) { in MipsCalleeSaveFrameSize() argument
51 return RoundUp((POPCOUNT(MipsCalleeSaveCoreSpills(type)) /* gprs */ + in MipsCalleeSaveFrameSize()
52 POPCOUNT(MipsCalleeSaveFPSpills(type)) /* fprs */ + in MipsCalleeSaveFrameSize()
56 constexpr QuickMethodFrameInfo MipsCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in MipsCalleeSaveMethodFrameInfo() argument
57 return QuickMethodFrameInfo(MipsCalleeSaveFrameSize(type), in MipsCalleeSaveMethodFrameInfo()
[all …]
/art/runtime/arch/mips64/
Dquick_method_frame_info_mips64.h50 constexpr uint32_t Mips64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in Mips64CalleeSaveCoreSpills() argument
52 (type == Runtime::kRefsAndArgs ? kMips64CalleeSaveArgSpills : 0) | in Mips64CalleeSaveCoreSpills()
53 (type == Runtime::kSaveAll ? kMips64CalleeSaveAllSpills : 0) | (1 << art::mips64::RA); in Mips64CalleeSaveCoreSpills()
56 constexpr uint32_t Mips64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in Mips64CalleeSaveFpSpills() argument
58 (type == Runtime::kRefsAndArgs ? kMips64CalleeSaveFpArgSpills: 0) | in Mips64CalleeSaveFpSpills()
59 (type == Runtime::kSaveAll ? kMips64CalleeSaveFpAllSpills : 0); in Mips64CalleeSaveFpSpills()
62 constexpr uint32_t Mips64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in Mips64CalleeSaveFrameSize() argument
63 return RoundUp((POPCOUNT(Mips64CalleeSaveCoreSpills(type)) /* gprs */ + in Mips64CalleeSaveFrameSize()
64 POPCOUNT(Mips64CalleeSaveFpSpills(type)) /* fprs */ + in Mips64CalleeSaveFrameSize()
68 constexpr QuickMethodFrameInfo Mips64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in Mips64CalleeSaveMethodFrameInfo() argument
[all …]
/art/runtime/arch/x86_64/
Dquick_method_frame_info_x86_64.h42 constexpr uint32_t X86_64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in X86_64CalleeSaveCoreSpills() argument
44 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveArgSpills : 0) | in X86_64CalleeSaveCoreSpills()
48 constexpr uint32_t X86_64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in X86_64CalleeSaveFpSpills() argument
50 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveFpArgSpills : 0); in X86_64CalleeSaveFpSpills()
53 constexpr uint32_t X86_64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in X86_64CalleeSaveFrameSize() argument
54 return RoundUp((POPCOUNT(X86_64CalleeSaveCoreSpills(type)) /* gprs */ + in X86_64CalleeSaveFrameSize()
55 POPCOUNT(X86_64CalleeSaveFpSpills(type)) /* fprs */ + in X86_64CalleeSaveFrameSize()
59 constexpr QuickMethodFrameInfo X86_64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in X86_64CalleeSaveMethodFrameInfo() argument
60 return QuickMethodFrameInfo(X86_64CalleeSaveFrameSize(type), in X86_64CalleeSaveMethodFrameInfo()
61 X86_64CalleeSaveCoreSpills(type), in X86_64CalleeSaveMethodFrameInfo()
[all …]
/art/compiler/dex/
Dcompiler_ir.h46 type(option.type), container(option.container, option.type) {} in OptionContent()
49 type(kString), container(value) {} in OptionContent()
52 type(kInteger), container(value) {} in OptionContent()
55 type(kInteger), container(value) {} in OptionContent()
58 if (type == kString) { in ~OptionContent()
67 if (option.type == kString) {
95 if (type != kString) { in Equals()
111 if (type != kInteger) { in Equals()
125 OptionType type; member
Dpass_me.h74 explicit PassME(const char* name, DataFlowAnalysisMode type = kAllNodes,
76 : Pass(name), traversal_type_(type), flags_(flags), dump_cfg_folder_(dump) { in Pass()
79 PassME(const char* name, DataFlowAnalysisMode type, const char* dump) in PassME() argument
80 : Pass(name), traversal_type_(type), flags_(0), dump_cfg_folder_(dump) { in PassME()
191 if (option_content.type != OptionContent::kString) { in GetStringPassOption()
201 if (option_content.type != OptionContent::kInteger) { in GetIntegerPassOption()
/art/runtime/entrypoints/quick/
Dcallee_save_frame.h73 static constexpr size_t GetCalleeSaveFrameSize(InstructionSet isa, Runtime::CalleeSaveType type) { in GetCalleeSaveFrameSize() argument
75 return (isa == kArm || isa == kThumb2) ? arm::ArmCalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
76 isa == kArm64 ? arm64::Arm64CalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
77 isa == kMips ? mips::MipsCalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
78 isa == kMips64 ? mips64::Mips64CalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
79 isa == kX86 ? x86::X86CalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
80 isa == kX86_64 ? x86_64::X86_64CalleeSaveFrameSize(type) : in GetCalleeSaveFrameSize()
100 Runtime::CalleeSaveType type) { in GetCalleeSaveReturnPcOffset() argument
101 return GetCalleeSaveFrameSize(isa, type) - GetConstExprPointerSize(isa); in GetCalleeSaveReturnPcOffset()
Dquick_trampoline_entrypoints_test.cc34 static ArtMethod* CreateCalleeSaveMethod(InstructionSet isa, Runtime::CalleeSaveType type) in CreateCalleeSaveMethod() argument
43 r->SetCalleeSaveMethod(save_method, type); in CreateCalleeSaveMethod()
50 static void CheckFrameSize(InstructionSet isa, Runtime::CalleeSaveType type, uint32_t save_size) in CheckFrameSize() argument
52 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type); in CheckFrameSize()
55 << type << " core spills=" << std::hex << frame_info.CoreSpillMask() << " fp spills=" in CheckFrameSize()
59 static void CheckPCOffset(InstructionSet isa, Runtime::CalleeSaveType type, size_t pc_offset) in CheckPCOffset() argument
61 ArtMethod* save_method = CreateCalleeSaveMethod(isa, type); in CheckPCOffset()
64 << "Expected and real pc offset differs for " << type in CheckPCOffset()
/art/runtime/interpreter/
Dsafe_math.h29 typedef typename std::conditional<sizeof(T1) >= sizeof(T2), T1, T2>::type type;
34 static inline typename select_bigger<T1, T2>::type SafeMath(T1 a, T2 b) { in SafeMath()
35 typedef typename select_bigger<T1, T2>::type biggest_T; in SafeMath()
36 typedef typename std::make_unsigned<biggest_T>::type unsigned_biggest_T; in SafeMath()
46 static inline typename select_bigger<T1, T2>::type SafeAdd(T1 a, T2 b) { in SafeAdd()
52 static inline typename select_bigger<T1, T2>::type SafeSub(T1 a, T2 b) { in SafeSub()
58 static inline typename select_bigger<T1, T2>::type SafeMul(T1 a, T2 b) { in SafeMul()
/art/compiler/utils/arm/
Dassembler_thumb2_test.cc251 arm::StoreOperandType type = arm::kStoreWord; in TEST_F() local
253 ASSERT_TRUE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); in TEST_F()
255 __ StoreToOffset(type, arm::R0, arm::SP, offset); in TEST_F()
256 __ StoreToOffset(type, arm::IP, arm::SP, offset); in TEST_F()
257 __ StoreToOffset(type, arm::IP, arm::R5, offset); in TEST_F()
267 arm::StoreOperandType type = arm::kStoreWord; in TEST_F() local
269 ASSERT_FALSE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); in TEST_F()
271 __ StoreToOffset(type, arm::R0, arm::SP, offset); in TEST_F()
272 __ StoreToOffset(type, arm::IP, arm::SP, offset); in TEST_F()
273 __ StoreToOffset(type, arm::IP, arm::R5, offset); in TEST_F()
[all …]
/art/compiler/optimizing/
Dcommon_arm64.h64 static inline vixl::Register RegisterFrom(Location location, Primitive::Type type) { in RegisterFrom() argument
65 DCHECK(type != Primitive::kPrimVoid && !Primitive::IsFloatingPointType(type)); in RegisterFrom()
66 return type == Primitive::kPrimLong ? XRegisterFrom(location) : WRegisterFrom(location); in RegisterFrom()
88 static inline vixl::FPRegister FPRegisterFrom(Location location, Primitive::Type type) { in FPRegisterFrom() argument
89 DCHECK(Primitive::IsFloatingPointType(type)); in FPRegisterFrom()
90 return type == Primitive::kPrimDouble ? DRegisterFrom(location) : SRegisterFrom(location); in FPRegisterFrom()
102 static inline vixl::CPURegister CPURegisterFrom(Location location, Primitive::Type type) { in CPURegisterFrom() argument
103 return Primitive::IsFloatingPointType(type) ? vixl::CPURegister(FPRegisterFrom(location, type)) in CPURegisterFrom()
104 : vixl::CPURegister(RegisterFrom(location, type)); in CPURegisterFrom()
131 static inline vixl::Operand OperandFrom(Location location, Primitive::Type type) { in OperandFrom() argument
[all …]
Dconstant_folding.cc113 Primitive::Type type = instruction->GetType(); in VisitMul() local
114 if (Primitive::IsIntOrLongType(type) && in VisitMul()
146 Primitive::Type type = instruction->GetType(); in VisitRem() local
148 if (!Primitive::IsIntegralType(type)) { in VisitRem()
176 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitRem()
190 Primitive::Type type = instruction->GetType(); in VisitSub() local
192 if (!Primitive::IsIntegralType(type)) { in VisitSub()
209 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitSub()
224 Primitive::Type type = instruction->GetType(); in VisitXor() local
226 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitXor()
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 …]
Dcode_generator_arm64.cc188 Primitive::Type type = at_->GetType(); in EmitNativeCode() local
189 arm64_codegen->MoveLocation(out, calling_convention.GetReturnLocation(type), type); in EmitNativeCode()
230 Primitive::Type type = instruction_->GetType(); in EmitNativeCode() local
231 arm64_codegen->MoveLocation(locations->Out(), calling_convention.GetReturnLocation(type), type); in EmitNativeCode()
378 Location InvokeDexCallingConventionVisitorARM64::GetNextLocation(Primitive::Type type) { in GetNextLocation() argument
380 if (type == Primitive::kPrimVoid) { in GetNextLocation()
381 LOG(FATAL) << "Unreachable type " << type; in GetNextLocation()
384 if (Primitive::IsFloatingPointType(type) && in GetNextLocation()
387 } else if (!Primitive::IsFloatingPointType(type) && in GetNextLocation()
392 next_location = Primitive::Is64BitType(type) ? Location::DoubleStackSlot(stack_offset) in GetNextLocation()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DMapItem.java41 public short type; field in MapItem
47 type = file.readUShort(); in read()
50 if (type == TYPE_HEADER_ITEM) { in read()
59 file.writeUShort(type); in write()
/art/test/505-simplifier-type-propagation/
Dinfo.txt2 the code generators did not expect type conversion
3 instructions from one type to the same type.
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h41 inline ArtMethod* GetCalleeSaveMethodCaller(Thread* self, Runtime::CalleeSaveType type) in GetCalleeSaveMethodCaller() argument
44 DCHECK_EQ(*refs_only_sp, Runtime::Current()->GetCalleeSaveMethod(type)); in GetCalleeSaveMethodCaller()
46 const size_t callee_frame_size = GetCalleeSaveFrameSize(kRuntimeISA, type); in GetCalleeSaveMethodCaller()
276 template<FindFieldType type, bool access_check>
282 switch (type) { in FindFieldFromCode()
369 template<InvokeType type, bool access_check>
378 hs.NewHandleWrapper(type == kStatic ? &null_this : this_object)); in FindMethodFromCode()
379 resolved_method = class_linker->ResolveMethod(self, method_idx, *referrer, type); in FindMethodFromCode()
384 } else if (UNLIKELY(*this_object == nullptr && type != kStatic)) { in FindMethodFromCode()
387 ThrowNullPointerExceptionForMethodAccess(method_idx, type); in FindMethodFromCode()
[all …]
/art/test/472-type-propagation/
Dinfo.txt1 Regression test for optimizing's type propagation:
2 If a phi requests its inputs to be of a certain type, the inputs need
3 to propagate that type to their users, as those users might be phis.
/art/runtime/gc/accounting/
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) { in operator <<() argument
120 switch (type) { in operator <<()
130 UNIMPLEMENTED(FATAL) << static_cast<size_t>(type); in operator <<()
137 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) { in Create() argument
139 name << "Mod union table: " << type; in Create()
140 switch (type) { in Create()
149 UNIMPLEMENTED(FATAL) << "Invalid type " << type; in Create()
163 void ModUnionTableTest::RunTest(ModUnionTableFactory::TableType type) { in RunTest() argument
[all …]

123456789