Home
last modified time | relevance | path

Searched refs:field_type (Results 1 – 25 of 29) sorted by relevance

12

/art/runtime/native/
Djava_lang_reflect_Field.cc79 Primitive::Type field_type, in GetFieldValue() argument
85 switch (field_type) { in GetFieldValue()
168 Primitive::Type field_type = f->GetTypeAsPrimitiveType(); in Field_get() local
170 if (!GetFieldValue<true>(o, f, field_type, &value)) { in Field_get()
174 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get()
197 Primitive::Type field_type = f->GetTypeAsPrimitiveType(); in GetPrimitiveField() local
199 if (field_type == kPrimitiveType) { in GetPrimitiveField()
207 if (!GetFieldValue<false>(o, f, field_type, &field_value)) { in GetPrimitiveField()
213 if (!ConvertPrimitiveValue(false, field_type, kPrimitiveType, field_value, in GetPrimitiveField()
255 Primitive::Type field_type, in SetFieldValue() argument
[all …]
/art/runtime/
Dcommon_dex_operations.h90 template<Primitive::Type field_type>
119 switch (field_type) { in DoFieldGetCommon()
142 LOG(FATAL) << "Unreachable " << field_type; in DoFieldGetCommon()
148 template<Primitive::Type field_type, bool do_assignability_check, bool transaction_active>
167 field_type == Primitive::kPrimNot ? value.GetGCRoot() : &fake_root)); in DoFieldPutCommon()
187 switch (field_type) { in DoFieldPutCommon()
238 LOG(FATAL) << "Unreachable " << field_type; in DoFieldPutCommon()
Dmethod_handles.cc768 Primitive::Type field_type, in MethodHandleFieldGet() argument
771 switch (field_type) { in MethodHandleFieldGet()
800 LOG(FATAL) << "Unreachable: " << field_type; in MethodHandleFieldGet()
810 Primitive::Type field_type, in MethodHandleFieldPut() argument
816 switch (field_type) { in MethodHandleFieldPut()
842 LOG(FATAL) << "Unreachable: " << field_type; in MethodHandleFieldPut()
848 Primitive::Type field_type, in GetValueFromShadowFrame() argument
852 switch (field_type) { in GetValueFromShadowFrame()
877 LOG(FATAL) << "Unreachable: " << field_type; in GetValueFromShadowFrame()
894 Primitive::Type field_type = field->GetTypeAsPrimitiveType(); in MethodHandleFieldAccess() local
[all …]
Dclass_linker_test.cc371 ObjPtr<mirror::Class> field_type = field->ResolveType(); in AssertClass() local
372 ASSERT_TRUE(field_type != nullptr); in AssertClass()
374 ASSERT_TRUE(!field_type->IsPrimitive()); in AssertClass()
/art/runtime/mirror/
Dobject.cc246 ObjPtr<mirror::Class> field_type = in CheckFieldAssignmentImpl() local
248 if (field_type != nullptr) { in CheckFieldAssignmentImpl()
249 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
264 ObjPtr<mirror::Class> field_type = in CheckFieldAssignmentImpl() local
266 if (field_type != nullptr) { in CheckFieldAssignmentImpl()
267 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
/art/tools/veridex/
Dresolver.cc68 const char* field_type) { in HasSameNameAndType() argument
70 strcmp(field_type, dex_file.GetFieldTypeDescriptor(field_id)) == 0; in HasSameNameAndType()
182 const char* field_type) { in LookupFieldIn() argument
202 field_type)) { in LookupFieldIn()
214 VeriField itf_field = resolver->LookupFieldIn(*itf, field_name, field_type); in LookupFieldIn()
226 VeriField super_field = resolver->LookupFieldIn(*super, field_name, field_type); in LookupFieldIn()
Dresolver.h67 const char* field_type);
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc47 std::string field_type; in SplitField() local
51 std::getline(is, field_type, '\0'); in SplitField()
55 jfieldID field = env->GetFieldID(klass, field_name.c_str(), field_type.c_str()); in SplitField()
/art/runtime/interpreter/
Dinterpreter_common.cc94 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check,
102 Primitive::ComponentSize(field_type)); in DoFieldGet()
126 if (UNLIKELY(!DoFieldGetCommon<field_type>(self, shadow_frame, obj, f, &result))) { in DoFieldGet()
132 switch (field_type) { in DoFieldGet()
155 LOG(FATAL) << "Unreachable: " << field_type; in DoFieldGet()
197 template<Primitive::Type field_type> in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
230 switch (field_type) { in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
253 LOG(FATAL) << "Unreachable: " << field_type; in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
273 template<Primitive::Type field_type>
277 switch (field_type) { in GetFieldValue()
[all …]
Dinterpreter_common.h373 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check,
380 template<Primitive::Type field_type>
386 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check,
393 template<Primitive::Type field_type, bool transaction_active>
/art/compiler/optimizing/
Dcode_generator.cc604 DataType::Type field_type, in CreateUnresolvedFieldLocationSummary() argument
626 if (DataType::IsFloatingPointType(field_type)) { in CreateUnresolvedFieldLocationSummary()
633 locations->SetOut(calling_convention.GetFpuLocation(field_type)); in CreateUnresolvedFieldLocationSummary()
635 locations->SetOut(calling_convention.GetReturnLocation(field_type)); in CreateUnresolvedFieldLocationSummary()
639 if (DataType::IsFloatingPointType(field_type)) { in CreateUnresolvedFieldLocationSummary()
643 AddLocationAsTemp(calling_convention.GetSetValueLocation(field_type, is_instance), locations); in CreateUnresolvedFieldLocationSummary()
644 locations->SetInAt(set_index, calling_convention.GetFpuLocation(field_type)); in CreateUnresolvedFieldLocationSummary()
647 calling_convention.GetSetValueLocation(field_type, is_instance)); in CreateUnresolvedFieldLocationSummary()
654 DataType::Type field_type, in GenerateUnresolvedFieldAccess() argument
667 if (!is_get && DataType::IsFloatingPointType(field_type)) { in GenerateUnresolvedFieldAccess()
[all …]
Dinstruction_builder.cc1551 DataType::Type field_type = GetFieldAccessType(*dex_file_, field_index); in BuildInstanceFieldAccess() local
1553 HInstruction* value = LoadLocal(source_or_dest_reg, field_type); in BuildInstanceFieldAccess()
1560 field_type, in BuildInstanceFieldAccess()
1568 field_type, in BuildInstanceFieldAccess()
1583 field_type, in BuildInstanceFieldAccess()
1590 field_type, in BuildInstanceFieldAccess()
1608 DataType::Type field_type) { in BuildUnresolvedStaticFieldAccess() argument
1613 HInstruction* value = LoadLocal(source_or_dest_reg, field_type); in BuildUnresolvedStaticFieldAccess()
1615 new (allocator_) HUnresolvedStaticFieldSet(value, field_type, field_index, dex_pc)); in BuildUnresolvedStaticFieldAccess()
1617 AppendInstruction(new (allocator_) HUnresolvedStaticFieldGet(field_type, field_index, dex_pc)); in BuildUnresolvedStaticFieldAccess()
[all …]
Dscheduler_arm.cc919 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldGetLatencies() local
922 switch (field_type) { in HandleFieldGetLatencies()
979 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSetLatencies() local
981 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSetLatencies()
984 switch (field_type) { in HandleFieldSetLatencies()
Dnodes.h5754 DataType::Type field_type, in FieldInfo() argument
5761 field_type_(field_type), in FieldInfo()
5789 DataType::Type field_type, in HInstanceFieldGet() argument
5797 field_type, in HInstanceFieldGet()
5798 SideEffects::FieldReadOfType(field_type, is_volatile), in HInstanceFieldGet()
5802 field_type, in HInstanceFieldGet()
5852 DataType::Type field_type, in HInstanceFieldSet() argument
5860 SideEffects::FieldWriteOfType(field_type, is_volatile), in HInstanceFieldSet()
5864 field_type, in HInstanceFieldSet()
6777 DataType::Type field_type, in HStaticFieldGet() argument
[all …]
Dinstruction_builder.h152 DataType::Type field_type);
Dcode_generator.h551 DataType::Type field_type,
556 DataType::Type field_type,
Dcode_generator_arm_vixl.cc5298 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
5299 if (DataType::IsFloatingPointType(field_type)) { in HandleFieldSet()
5305 bool is_wide = field_type == DataType::Type::kInt64 || field_type == DataType::Type::kFloat64; in HandleFieldSet()
5310 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet()
5326 if (field_type == DataType::Type::kFloat64) { in HandleFieldSet()
5345 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
5348 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet()
5354 switch (field_type) { in HandleFieldSet()
5361 StoreOperandType operand_type = GetStoreOperandType(field_type); in HandleFieldSet()
5371 DCHECK_EQ(field_type, DataType::Type::kReference); in HandleFieldSet()
[all …]
Dcode_generator_x86.cc5315 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
5316 bool is_byte_type = DataType::Size(field_type) == 1u; in HandleFieldSet()
5323 } else if (DataType::IsFloatingPointType(field_type)) { in HandleFieldSet()
5324 if (is_volatile && field_type == DataType::Type::kFloat64) { in HandleFieldSet()
5330 } else if (is_volatile && field_type == DataType::Type::kInt64) { in HandleFieldSet()
5344 if (CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1))) { in HandleFieldSet()
5362 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
5365 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet()
5373 switch (field_type) { in HandleFieldSet()
5398 DCHECK_EQ(field_type, DataType::Type::kReference); in HandleFieldSet()
[all …]
Dcode_generator_x86_64.cc4696 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
4699 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet()
4721 } else if (kPoisonHeapReferences && field_type == DataType::Type::kReference) { in HandleFieldSet()
4736 DataType::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local
4745 switch (field_type) { in HandleFieldSet()
4774 DCHECK((field_type != DataType::Type::kReference) || (v == 0)); in HandleFieldSet()
4779 if (kPoisonHeapReferences && field_type == DataType::Type::kReference) { in HandleFieldSet()
4834 LOG(FATAL) << "Unreachable type " << field_type; in HandleFieldSet()
4842 if (CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1))) { in HandleFieldSet()
/art/runtime/verifier/
Dmethod_verifier.cc4827 const RegType* field_type = nullptr; in VerifyISFieldAccess() local
4840 field_type = &FromClass(field->GetTypeDescriptor(), in VerifyISFieldAccess()
4873 if (field_type == nullptr) { in VerifyISFieldAccess()
4876 field_type = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in VerifyISFieldAccess()
4878 DCHECK(field_type != nullptr); in VerifyISFieldAccess()
4885 VerifyPrimitivePut(*field_type, insn_type, vregA); in VerifyISFieldAccess()
4887 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess()
4891 VerifyError error = field_type->IsReferenceTypes() ? VERIFY_ERROR_BAD_CLASS_SOFT in VerifyISFieldAccess()
4895 << "' but found type '" << *field_type in VerifyISFieldAccess()
4899 work_line_->VerifyRegisterType(this, vregA, *field_type); in VerifyISFieldAccess()
[all …]
/art/libdexfile/dex/
Ddex_file_verifier.cc983 Primitive::Type field_type = Primitive::GetType(field_type_name[0]); in CheckStaticFieldTypes() local
988 if (field_type != Primitive::kPrimBoolean) { in CheckStaticFieldTypes()
995 if (field_type != Primitive::kPrimByte) { in CheckStaticFieldTypes()
1002 if (field_type != Primitive::kPrimShort) { in CheckStaticFieldTypes()
1009 if (field_type != Primitive::kPrimChar) { in CheckStaticFieldTypes()
1016 if (field_type != Primitive::kPrimInt) { in CheckStaticFieldTypes()
1023 if (field_type != Primitive::kPrimLong) { in CheckStaticFieldTypes()
1030 if (field_type != Primitive::kPrimFloat) { in CheckStaticFieldTypes()
1037 if (field_type != Primitive::kPrimDouble) { in CheckStaticFieldTypes()
1046 if (field_type != Primitive::kPrimNot) { in CheckStaticFieldTypes()
/art/tools/hiddenapi/
DREADME.md26 `class_descriptor->field_name:field_type`
/art/test/testrunner/
Dtestrunner.py682 field_type = type(entry[field])
683 if field_type not in supported_field[field]:
685 str(field_type),
/art/runtime/jni/
Djni_internal.cc494 ObjPtr<mirror::Class> field_type; in FindFieldID() local
500 field_type = class_linker->FindClass(soa.Self(), sig, class_loader); in FindFieldID()
502 field_type = class_linker->FindPrimitiveClass(*sig); in FindFieldID()
504 if (field_type == nullptr) { in FindFieldID()
523 soa.Self(), c.Get(), name, field_type->GetDescriptor(&temp)); in FindFieldID()
525 field = c->FindInstanceField(name, field_type->GetDescriptor(&temp)); in FindFieldID()
/art/oatdump/
Doatdump.cc2106 ObjPtr<mirror::Class> field_type = field->LookupResolvedType(); in PrintField() local
2107 if (field_type != nullptr) { in PrintField()
2108 PrettyObjectValue(os, field_type, value); in PrintField()

12