/art/tools/cpp-define-generator/ |
D | main.cc | 106 #define DEFINE_EXPR(macro_name, field_type, expr) \ in main() argument 107 cpp_define(to_upper(#macro_name), static_cast<field_type>(expr)); \ in main() 108 emit_check_eq(z + "static_cast<" #field_type ">(" + to_upper(#macro_name) + ")", \ in main() 109 "static_cast<" #field_type ">(" #expr ")"); in main()
|
D | common.def | 20 #define DEFINE_OFFSET_EXPR(holder_type, field_name, field_type, expr) \ 21 DEFINE_EXPR(holder_type ## _ ## field_name ## _OFFSET, field_type, expr)
|
D | offsets_all.def | 26 // #define DEFINE_EXPR(define_name, field_type, expr) ... 30 #define DEFINE_EXPR(define_name, field_type, expr)
|
/art/runtime/ |
D | common_dex_operations.h | 64 template<Primitive::Type field_type> 93 switch (field_type) { in DoFieldGetCommon() 116 LOG(FATAL) << "Unreachable " << field_type; in DoFieldGetCommon() 122 template<Primitive::Type field_type, bool do_assignability_check, bool transaction_active> 141 field_type == Primitive::kPrimNot ? value.GetGCRoot() : &fake_root)); in DoFieldPutCommon() 153 switch (field_type) { in DoFieldPutCommon() 199 LOG(FATAL) << "Unreachable " << field_type; in DoFieldPutCommon()
|
D | method_handles.cc | 782 Primitive::Type field_type, in DoFieldGetForInvokePolymorphic() argument 785 switch (field_type) { in DoFieldGetForInvokePolymorphic() 814 LOG(FATAL) << "Unreachable: " << field_type; in DoFieldGetForInvokePolymorphic() 824 Primitive::Type field_type, in DoFieldPutForInvokePolymorphic() argument 830 switch (field_type) { in DoFieldPutForInvokePolymorphic() 856 LOG(FATAL) << "Unreachable: " << field_type; in DoFieldPutForInvokePolymorphic() 862 Primitive::Type field_type, in GetValueFromShadowFrame() argument 866 switch (field_type) { in GetValueFromShadowFrame() 891 LOG(FATAL) << "Unreachable: " << field_type; in GetValueFromShadowFrame() 910 Primitive::Type field_type = field->GetTypeAsPrimitiveType(); in DoInvokePolymorphicFieldAccess() local [all …]
|
D | dex_file_verifier.cc | 1010 Primitive::Type field_type = Primitive::GetType(field_type_name[0]); in CheckStaticFieldTypes() local 1015 if (field_type != Primitive::kPrimBoolean) { in CheckStaticFieldTypes() 1022 if (field_type != Primitive::kPrimByte) { in CheckStaticFieldTypes() 1029 if (field_type != Primitive::kPrimShort) { in CheckStaticFieldTypes() 1036 if (field_type != Primitive::kPrimChar) { in CheckStaticFieldTypes() 1043 if (field_type != Primitive::kPrimInt) { in CheckStaticFieldTypes() 1050 if (field_type != Primitive::kPrimLong) { in CheckStaticFieldTypes() 1057 if (field_type != Primitive::kPrimFloat) { in CheckStaticFieldTypes() 1064 if (field_type != Primitive::kPrimDouble) { in CheckStaticFieldTypes() 1073 if (field_type != Primitive::kPrimNot) { in CheckStaticFieldTypes()
|
D | jni_internal.cc | 288 mirror::Class* field_type; in FindFieldID() local 292 field_type = class_linker->FindClass(soa.Self(), sig, class_loader); in FindFieldID() 294 field_type = class_linker->FindPrimitiveClass(*sig); in FindFieldID() 296 if (field_type == nullptr) { in FindFieldID() 313 soa.Self(), c.Get(), name, field_type->GetDescriptor(&temp)); in FindFieldID() 315 field = c->FindInstanceField(name, field_type->GetDescriptor(&temp)); in FindFieldID()
|
D | class_linker_test.cc | 369 ObjPtr<mirror::Class> field_type = field->GetType<true>(); in AssertClass() local 370 ASSERT_TRUE(field_type != nullptr); in AssertClass() 372 ASSERT_TRUE(!field_type->IsPrimitive()); in AssertClass()
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 77 Primitive::Type field_type, in GetFieldValue() argument 83 switch (field_type) { in GetFieldValue() 166 Primitive::Type field_type = f->GetTypeAsPrimitiveType(); in Field_get() local 168 if (!GetFieldValue<true>(o, f, field_type, &value)) { in Field_get() 172 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get() 195 Primitive::Type field_type = f->GetTypeAsPrimitiveType(); in GetPrimitiveField() local 197 if (field_type == kPrimitiveType) { in GetPrimitiveField() 205 if (!GetFieldValue<false>(o, f, field_type, &field_value)) { in GetPrimitiveField() 211 if (!ConvertPrimitiveValue(false, field_type, kPrimitiveType, field_value, in GetPrimitiveField() 253 Primitive::Type field_type, in SetFieldValue() argument [all …]
|
/art/runtime/mirror/ |
D | object.cc | 242 ObjPtr<mirror::Class> field_type = field.GetType<!kMovingCollector>(); in CheckFieldAssignmentImpl() local 243 if (field_type != nullptr) { in CheckFieldAssignmentImpl() 244 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl() 259 ObjPtr<mirror::Class> field_type = field.GetType<!kMovingCollector>(); in CheckFieldAssignmentImpl() local 260 if (field_type != nullptr) { in CheckFieldAssignmentImpl() 261 CHECK(field_type->IsAssignableFrom(new_value->GetClass())); in CheckFieldAssignmentImpl()
|
/art/runtime/interpreter/ |
D | interpreter_common.cc | 45 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check> 52 Primitive::ComponentSize(field_type)); in DoFieldGet() 69 if (UNLIKELY(!DoFieldGetCommon<field_type>(self, shadow_frame, obj, f, &result))) { in DoFieldGet() 75 switch (field_type) { in DoFieldGet() 98 LOG(FATAL) << "Unreachable: " << field_type; in DoFieldGet() 138 template<Primitive::Type field_type> in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL() 171 switch (field_type) { in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL() 194 LOG(FATAL) << "Unreachable: " << field_type; in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL() 214 template<Primitive::Type field_type> 218 switch (field_type) { in GetFieldValue() [all …]
|
D | interpreter_common.h | 273 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check> 279 template<Primitive::Type field_type> 285 template<FindFieldType find_type, Primitive::Type field_type, bool do_access_check, 292 template<Primitive::Type field_type, bool transaction_active>
|
/art/compiler/optimizing/ |
D | code_generator.cc | 415 Primitive::Type field_type, in CreateUnresolvedFieldLocationSummary() argument 437 if (Primitive::IsFloatingPointType(field_type)) { in CreateUnresolvedFieldLocationSummary() 444 locations->SetOut(calling_convention.GetFpuLocation(field_type)); in CreateUnresolvedFieldLocationSummary() 446 locations->SetOut(calling_convention.GetReturnLocation(field_type)); in CreateUnresolvedFieldLocationSummary() 450 if (Primitive::IsFloatingPointType(field_type)) { in CreateUnresolvedFieldLocationSummary() 454 AddLocationAsTemp(calling_convention.GetSetValueLocation(field_type, is_instance), locations); in CreateUnresolvedFieldLocationSummary() 455 locations->SetInAt(set_index, calling_convention.GetFpuLocation(field_type)); in CreateUnresolvedFieldLocationSummary() 458 calling_convention.GetSetValueLocation(field_type, is_instance)); in CreateUnresolvedFieldLocationSummary() 465 Primitive::Type field_type, in GenerateUnresolvedFieldAccess() argument 478 if (!is_get && Primitive::IsFloatingPointType(field_type)) { in GenerateUnresolvedFieldAccess() [all …]
|
D | scheduler_arm.cc | 588 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldGetLatencies() local 591 switch (field_type) { in HandleFieldGetLatencies() 647 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSetLatencies() local 649 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSetLatencies() 652 switch (field_type) { in HandleFieldSetLatencies()
|
D | instruction_builder.cc | 1282 Primitive::Type field_type = (resolved_field == nullptr) in BuildInstanceFieldAccess() local 1286 HInstruction* value = LoadLocal(source_or_dest_reg, field_type); in BuildInstanceFieldAccess() 1292 field_type, in BuildInstanceFieldAccess() 1300 field_type, in BuildInstanceFieldAccess() 1314 field_type, in BuildInstanceFieldAccess() 1321 field_type, in BuildInstanceFieldAccess() 1374 Primitive::Type field_type) { in BuildUnresolvedStaticFieldAccess() argument 1379 HInstruction* value = LoadLocal(source_or_dest_reg, field_type); in BuildUnresolvedStaticFieldAccess() 1381 new (arena_) HUnresolvedStaticFieldSet(value, field_type, field_index, dex_pc)); in BuildUnresolvedStaticFieldAccess() 1383 AppendInstruction(new (arena_) HUnresolvedStaticFieldGet(field_type, field_index, dex_pc)); in BuildUnresolvedStaticFieldAccess() [all …]
|
D | nodes.h | 5244 Primitive::Type field_type, in FieldInfo() argument 5251 field_type_(field_type), in FieldInfo() 5279 Primitive::Type field_type, in HInstanceFieldGet() argument 5286 : HExpression(field_type, SideEffects::FieldReadOfType(field_type, is_volatile), dex_pc), in HInstanceFieldGet() 5289 field_type, in HInstanceFieldGet() 5330 Primitive::Type field_type, in HInstanceFieldSet() argument 5337 : HTemplateInstruction(SideEffects::FieldWriteOfType(field_type, is_volatile), dex_pc), in HInstanceFieldSet() 5340 field_type, in HInstanceFieldSet() 6040 Primitive::Type field_type, in HStaticFieldGet() argument 6047 : HExpression(field_type, SideEffects::FieldReadOfType(field_type, is_volatile), dex_pc), in HStaticFieldGet() [all …]
|
D | instruction_builder.h | 169 Primitive::Type field_type);
|
D | code_generator.h | 496 Primitive::Type field_type, 501 Primitive::Type field_type,
|
D | code_generator_x86.cc | 4782 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldGet() local 4785 switch (field_type) { in HandleFieldGet() 4862 LOG(FATAL) << "Unreachable type " << field_type; in HandleFieldGet() 4866 if (field_type == Primitive::kPrimNot || field_type == Primitive::kPrimLong) { in HandleFieldGet() 4874 if (field_type == Primitive::kPrimNot) { in HandleFieldGet() 4890 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 4891 bool is_byte_type = (field_type == Primitive::kPrimBoolean) in HandleFieldSet() 4892 || (field_type == Primitive::kPrimByte); in HandleFieldSet() 4899 } else if (Primitive::IsFloatingPointType(field_type)) { in HandleFieldSet() 4900 if (is_volatile && field_type == Primitive::kPrimDouble) { in HandleFieldSet() [all …]
|
D | code_generator_arm_vixl.cc | 5590 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 5591 if (Primitive::IsFloatingPointType(field_type)) { in HandleFieldSet() 5597 bool is_wide = field_type == Primitive::kPrimLong || field_type == Primitive::kPrimDouble; in HandleFieldSet() 5602 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet() 5618 if (field_type == Primitive::kPrimDouble) { in HandleFieldSet() 5637 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 5640 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet() 5646 switch (field_type) { in HandleFieldSet() 5665 DCHECK_EQ(field_type, Primitive::kPrimNot); in HandleFieldSet() 5720 LOG(FATAL) << "Unreachable type " << field_type; in HandleFieldSet() [all …]
|
D | code_generator_x86_64.cc | 4279 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldGet() local 4282 switch (field_type) { in HandleFieldGet() 4348 LOG(FATAL) << "Unreachable type " << field_type; in HandleFieldGet() 4352 if (field_type == Primitive::kPrimNot) { in HandleFieldGet() 4360 if (field_type == Primitive::kPrimNot) { in HandleFieldGet() 4375 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 4378 CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1)); in HandleFieldSet() 4400 } else if (kPoisonHeapReferences && field_type == Primitive::kPrimNot) { in HandleFieldSet() 4415 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 4424 switch (field_type) { in HandleFieldSet() [all …]
|
D | code_generator_arm64.cc | 2334 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldGet() local 2337 if (field_type == Primitive::kPrimNot && kEmitCompilerReadBarrier && kUseBakerReadBarrier) { in HandleFieldGet() 2364 codegen_->Load(field_type, OutputCPURegister(instruction), field); in HandleFieldGet() 2367 if (field_type == Primitive::kPrimNot) { in HandleFieldGet() 2398 Primitive::Type field_type = field_info.GetFieldType(); in HandleFieldSet() local 2405 if (kPoisonHeapReferences && field_type == Primitive::kPrimNot) { in HandleFieldSet() 2415 instruction, field_type, source, HeapOperand(obj, offset), /* needs_null_check */ true); in HandleFieldSet() 2419 codegen_->Store(field_type, source, HeapOperand(obj, offset)); in HandleFieldSet() 2424 if (CodeGenerator::StoreNeedsWriteBarrier(field_type, instruction->InputAt(1))) { in HandleFieldSet()
|
/art/runtime/verifier/ |
D | method_verifier.cc | 4973 const RegType* field_type = nullptr; in VerifyISFieldAccess() local 4986 field_type = &FromClass(field->GetTypeDescriptor(), in VerifyISFieldAccess() 4994 if (field_type == nullptr) { in VerifyISFieldAccess() 4997 field_type = ®_types_.FromDescriptor(GetClassLoader(), descriptor, false); in VerifyISFieldAccess() 4999 DCHECK(field_type != nullptr); in VerifyISFieldAccess() 5006 VerifyPrimitivePut(*field_type, insn_type, vregA); in VerifyISFieldAccess() 5008 if (!insn_type.IsAssignableFrom(*field_type, this)) { in VerifyISFieldAccess() 5012 VerifyError error = field_type->IsReferenceTypes() ? VERIFY_ERROR_BAD_CLASS_SOFT in VerifyISFieldAccess() 5016 << "' but found type '" << *field_type in VerifyISFieldAccess() 5020 work_line_->VerifyRegisterType(this, vregA, *field_type); in VerifyISFieldAccess() [all …]
|
/art/test/testrunner/ |
D | testrunner.py | 622 field_type = type(entry[field]) 623 if field_type not in supported_field[field]: 625 str(field_type),
|
/art/runtime/interpreter/mterp/ |
D | mterp.cc | 778 template <typename field_type, Primitive::Type primitive_type> 780 field_type new_value, in MterpSetStatic() 783 void (ArtField::*func)(ObjPtr<mirror::Object>, field_type val)) in MterpSetStatic()
|