Home
last modified time | relevance | path

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

1234

/art/runtime/
Dprimitive.h45 static Type GetType(char type) { in GetType() argument
46 switch (type) { in GetType()
70 static size_t ComponentSize(Type type) { in ComponentSize() argument
71 switch (type) { in ComponentSize()
83 LOG(FATAL) << "Invalid type " << static_cast<int>(type); in ComponentSize()
88 static size_t FieldSize(Type type) { in FieldSize() argument
89 return ComponentSize(type) <= 4 ? 4 : 8; in FieldSize()
92 static const char* Descriptor(Type type) { in Descriptor() argument
93 switch (type) { in Descriptor()
113 LOG(FATAL) << "Primitive char conversion on invalid type " << static_cast<int>(type); in Descriptor()
Dprimitive.cc33 std::ostream& operator<<(std::ostream& os, const Primitive::Type& type) { in operator <<() argument
34 int32_t int_type = static_cast<int32_t>(type); in operator <<()
35 if (type >= Primitive::kPrimNot && type <= Primitive::kPrimVoid) { in operator <<()
Ddex_file_verifier.h62 bool CheckIntraSectionIterate(uint32_t offset, uint32_t count, uint16_t type);
63 bool CheckIntraIdSection(uint32_t offset, uint32_t count, uint16_t type);
64 bool CheckIntraDataSection(uint32_t offset, uint32_t count, uint16_t type);
67 bool CheckOffsetToTypeMap(uint32_t offset, uint16_t type);
82 bool CheckInterSectionIterate(uint32_t offset, uint32_t count, uint16_t type);
Dcommon_throws.h79 InvokeType type)
137 const StringPiece& type, const StringPiece& name)
142 void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name,
158 InvokeType type)
163 InvokeType type)
Dcommon_throws.cc141 InvokeType type) { in ThrowIllegalAccessErrorClassForMethodDispatch() argument
144 << PrettyDescriptor(accessed) << "') in attempt to invoke " << type in ThrowIllegalAccessErrorClassForMethodDispatch()
256 const StringPiece& type, const StringPiece& name) in ThrowNoSuchFieldError() argument
260 msg << "No " << scope << "field " << name << " of type " << type in ThrowNoSuchFieldError()
267 void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name, in ThrowNoSuchMethodError() argument
271 msg << "No " << type << " method " << name << signature in ThrowNoSuchMethodError()
300 InvokeType type) in ThrowNullPointerExceptionForMethodAccessImpl() argument
303 msg << "Attempt to invoke " << type << " method '" in ThrowNullPointerExceptionForMethodAccessImpl()
310 InvokeType type) { in ThrowNullPointerExceptionForMethodAccess() argument
314 dex_file, type); in ThrowNullPointerExceptionForMethodAccess()
[all …]
Dobject_utils.h286 mirror::Class* type = GetDexCache()->GetResolvedType(field_id.type_idx_); in SHARED_LOCKS_REQUIRED() local
287 if (resolve && (type == NULL)) { in SHARED_LOCKS_REQUIRED()
288 type = GetClassLinker()->ResolveType(field_id.type_idx_, field_); in SHARED_LOCKS_REQUIRED()
289 CHECK(type != NULL || Thread::Current()->IsExceptionPending()); in SHARED_LOCKS_REQUIRED()
291 return type; in SHARED_LOCKS_REQUIRED()
314 Primitive::Type type = GetTypeAsPrimitiveType(); in IsPrimitiveType() local
315 return type != Primitive::kPrimNot; in IsPrimitiveType()
318 Primitive::Type type = GetTypeAsPrimitiveType(); in FieldSize() local
319 return Primitive::FieldSize(type); in FieldSize()
561 Primitive::Type type = GetParamPrimitiveType(param); in IsParamALongOrDouble() local
[all …]
Ddex_file_verifier.cc973 bool DexFileVerifier::CheckIntraSectionIterate(uint32_t offset, uint32_t count, uint16_t type) { in CheckIntraSectionIterate() argument
976 switch (type) { in CheckIntraSectionIterate()
999 switch (type) { in CheckIntraSectionIterate()
1124 LOG(ERROR) << StringPrintf("Unknown map item type %x", type); in CheckIntraSectionIterate()
1128 if (IsDataSectionType(type)) { in CheckIntraSectionIterate()
1129 offset_to_type_map_.Put(aligned_offset, type); in CheckIntraSectionIterate()
1144 bool DexFileVerifier::CheckIntraIdSection(uint32_t offset, uint32_t count, uint16_t type) { in CheckIntraIdSection() argument
1149 switch (type) { in CheckIntraIdSection()
1175 LOG(ERROR) << StringPrintf("Bad type for id section: %x", type); in CheckIntraIdSection()
1189 return CheckIntraSectionIterate(offset, count, type); in CheckIntraIdSection()
[all …]
Druntime.h350 bool HasCalleeSaveMethod(CalleeSaveType type) const { in HasCalleeSaveMethod() argument
351 return callee_save_methods_[type] != NULL; in HasCalleeSaveMethod()
354 mirror::ArtMethod* GetCalleeSaveMethod(CalleeSaveType type) const { in GetCalleeSaveMethod() argument
355 DCHECK(HasCalleeSaveMethod(type)); in GetCalleeSaveMethod()
356 return callee_save_methods_[type]; in GetCalleeSaveMethod()
359 void SetCalleeSaveMethod(mirror::ArtMethod* method, CalleeSaveType type);
362 CalleeSaveType type)
/art/compiler/llvm/
Dir_builder.cc41 ::llvm::Type* type = module.getTypeByName("Method"); in IRBuilder()
42 if (type != NULL) { in IRBuilder()
43 java_method_type_ = type->getPointerTo(); in IRBuilder()
49 type = module.getTypeByName("Thread"); in IRBuilder()
50 if (type != NULL) { in IRBuilder()
51 java_thread_type_ = type->getPointerTo(); in IRBuilder()
114 if (::llvm::Type* type = module_->getTypeByName(name)) { in getShadowFrameTy()
115 CHECK(::llvm::isa< ::llvm::StructType>(type)); in getShadowFrameTy()
116 return static_cast< ::llvm::StructType*>(type); in getShadowFrameTy()
Dintrinsic_helper.cc41 IntrinsicHelper::IntrinsicValType type) { in GetLLVMTypeOfIntrinsicValType() argument
42 switch (type) { in GetLLVMTypeOfIntrinsicValType()
86 LOG(FATAL) << "Invalid intrinsic type " << type << "to get LLVM type!"; in GetLLVMTypeOfIntrinsicValType()
113 IntrinsicValType type = info.arg_type_[arg_iter]; in IntrinsicHelper() local
115 if (type == kNone) { in IntrinsicHelper()
117 } else if (type == kVarArgTy) { in IntrinsicHelper()
123 arg_type[num_args++] = GetLLVMTypeOfIntrinsicValType(irb, type); in IntrinsicHelper()
130 ::llvm::FunctionType* type = in IntrinsicHelper()
136 ::llvm::Function *fn = ::llvm::Function::Create(type, in IntrinsicHelper()
Druntime_support_builder_arm.cc41 char LDRSTRSuffixByType(art::llvm::IRBuilder& irb, Type* type) { in LDRSTRSuffixByType() argument
42 int width = type->isPointerTy() ? in LDRSTRSuffixByType()
44 ::llvm::cast<IntegerType>(type)->getBitWidth(); in LDRSTRSuffixByType()
71 Value* RuntimeSupportBuilderARM::EmitLoadFromThreadOffset(int64_t offset, ::llvm::Type* type, in EmitLoadFromThreadOffset() argument
73 FunctionType* func_ty = FunctionType::get(/*Result=*/type, in EmitLoadFromThreadOffset()
76 LDRSTRSuffixByType(irb_, type), in EmitLoadFromThreadOffset()
Dintrinsic_func_list.def36 // Note: These should be consistent with the type return from
37 // IRBuilder::GetJType([type], kArray).
45 // Note: These should be consistent with the type return from
46 // IRBuilder::GetJType([type], kField).
371 // [type] void art_portable_aget_[type](JavaObject* array, uint32_t index)
414 // void art_portable_aput_[type]([type] value, JavaObject* array, uint32_t index)
493 // [type] art_portable_iget_[type](uint32_t field_idx,
538 // [type] art_portable_iget_[type].fast(int field_offset,
583 // void art_portable_iput_[type](uint32_t field_idx,
586 // [type] new_value)
[all …]
/art/runtime/mirror/
Dart_field-inl.h144 Primitive::Type type = FieldHelper(this).GetTypeAsPrimitiveType(); in GetInt() local
145 CHECK(type == Primitive::kPrimInt || type == Primitive::kPrimFloat) << PrettyField(this); in GetInt()
152 Primitive::Type type = FieldHelper(this).GetTypeAsPrimitiveType(); in SetInt() local
153 CHECK(type == Primitive::kPrimInt || type == Primitive::kPrimFloat) << PrettyField(this); in SetInt()
160 Primitive::Type type = FieldHelper(this).GetTypeAsPrimitiveType(); in GetLong() local
161 CHECK(type == Primitive::kPrimLong || type == Primitive::kPrimDouble) << PrettyField(this); in GetLong()
168 Primitive::Type type = FieldHelper(this).GetTypeAsPrimitiveType(); in SetLong() local
169 CHECK(type == Primitive::kPrimLong || type == Primitive::kPrimDouble) << PrettyField(this); in SetLong()
Dart_field.cc47 Primitive::Type type = fh.GetTypeAsPrimitiveType(); in SetOffset()
48 if (type == Primitive::kPrimDouble || type == Primitive::kPrimLong) { in SetOffset()
Dclass.cc463 ArtField* Class::FindDeclaredInstanceField(const StringPiece& name, const StringPiece& type) { in FindDeclaredInstanceField() argument
470 if (name == fh.GetName() && type == fh.GetTypeDescriptor()) { in FindDeclaredInstanceField()
489 ArtField* Class::FindInstanceField(const StringPiece& name, const StringPiece& type) { in FindInstanceField() argument
493 ArtField* f = c->FindDeclaredInstanceField(name, type); in FindInstanceField()
513 ArtField* Class::FindDeclaredStaticField(const StringPiece& name, const StringPiece& type) { in FindDeclaredStaticField() argument
514 DCHECK(type != NULL); in FindDeclaredStaticField()
519 if (name == fh.GetName() && type == fh.GetTypeDescriptor()) { in FindDeclaredStaticField()
538 ArtField* Class::FindStaticField(const StringPiece& name, const StringPiece& type) { in FindStaticField() argument
544 ArtField* f = k->FindDeclaredStaticField(name, type); in FindStaticField()
552 f = interface->FindStaticField(name, type); in FindStaticField()
[all …]
/art/compiler/sea_ir/types/
Dtype_inference_visitor.cc86 const Type* type = NULL; in MergeTypes() local
88 type = *(types.begin()); in MergeTypes()
92 if (!type->Equals(**cit)) { in MergeTypes()
93 type = MergeTypes(type, *cit); in MergeTypes()
98 return type; in MergeTypes()
Dtypes.h47 void SetTypeOf(int instruction_id, const Type* type) { in SetTypeOf() argument
48 type_map_.Overwrite(instruction_id, type); in SetTypeOf()
/art/runtime/entrypoints/
Dentrypoint_utils.cc78 Thread* self, FindFieldType type, size_t expected_size, in FindFieldFromCode() argument
83 switch (type) { in FindFieldFromCode()
164 Thread* self, bool access_check, InvokeType type) { in FindMethodFromCode() argument
166 bool is_direct = type == kStatic || type == kDirect; in FindMethodFromCode()
167 mirror::ArtMethod* resolved_method = class_linker->ResolveMethod(method_idx, referrer, type); in FindMethodFromCode()
171 } else if (UNLIKELY(this_object == NULL && type != kStatic)) { in FindMethodFromCode()
176 ThrowNullPointerExceptionForMethodAccess(throw_location, method_idx, type); in FindMethodFromCode()
182 } else if (type == kInterface) { in FindMethodFromCode()
195 if (type == kSuper) { in FindMethodFromCode()
205 if (UNLIKELY(resolved_method->CheckIncompatibleClassChange(type))) { in FindMethodFromCode()
[all …]
Dentrypoint_utils.h129 Thread* self, FindFieldType type, size_t expected_size,
136 FindFieldType type, size_t expected_size) in FindFieldFast() argument
152 switch (type) { in FindFieldFast()
192 bool access_check, InvokeType type) in FindMethodFast() argument
194 bool is_direct = type == kStatic || type == kDirect; in FindMethodFast()
205 bool icce = resolved_method->CheckIncompatibleClassChange(type); in FindMethodFast()
218 if (type == kInterface) { // Most common form of slow path dispatch. in FindMethodFast()
222 } else if (type == kSuper) { in FindMethodFast()
226 DCHECK(type == kVirtual); in FindMethodFast()
233 Thread* self, bool access_check, InvokeType type)
/art/test/046-reflect/
Dexpected.txt6 Return type is int
11 Return type is int
15 Return type is void
22 Return type is int
38 Field type is java.lang.String
51 Field type is int
64 Field type is int
69 Field type is double
76 Field type is java.lang.String
81 Field type is int
/art/runtime/entrypoints/quick/
Dcallee_save_frame.h30 Runtime::CalleeSaveType type) in FinishCalleeSaveFrameSetup() argument
34 *sp = Runtime::Current()->GetCalleeSaveMethod(type); in FinishCalleeSaveFrameSetup()
/art/test/069-field-type/
Dinfo.txt2 inappropriate object type in an instance field. By compiling two
3 versions of the field-holder class we can bypass the compiler's type
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc24 static void DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, in DdmServer_nativeSendChunk() argument
29 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset])); in DdmServer_nativeSendChunk()
/art/runtime/arch/arm/
Dasm_support_arm.S29 .type \name, #function
40 .type \name, #function
/art/runtime/entrypoints/portable/
Dportable_invoke_entrypoints.cc28 InvokeType type, in FindMethodHelper() argument
35 type); in FindMethodHelper()
38 thread, access_check, type); in FindMethodHelper()

1234