Lines Matching refs:dex_file_

333     uint32_t limit = dex_file_->NumCallSiteIds();  in CheckCallSiteIndex()
345 if (UNLIKELY(idx >= dex_file_->GetHeader().field_ids_size_)) { in CheckFieldIndex()
347 << dex_file_->GetHeader().field_ids_size_ << ")"; in CheckFieldIndex()
356 if (UNLIKELY(idx >= dex_file_->GetHeader().method_ids_size_)) { in CheckMethodIndex()
358 << dex_file_->GetHeader().method_ids_size_ << ")"; in CheckMethodIndex()
367 uint32_t limit = dex_file_->NumMethodHandles(); in CheckMethodHandleIndex()
383 if (UNLIKELY(idx >= dex_file_->GetHeader().proto_ids_size_)) { in CheckPrototypeIndex()
385 << dex_file_->GetHeader().proto_ids_size_ << ")"; in CheckPrototypeIndex()
393 if (UNLIKELY(idx >= dex_file_->GetHeader().string_ids_size_)) { in CheckStringIndex()
395 << dex_file_->GetHeader().string_ids_size_ << ")"; in CheckStringIndex()
404 if (UNLIKELY(idx.index_ >= dex_file_->GetHeader().type_ids_size_)) { in CheckTypeIndex()
406 << dex_file_->GetHeader().type_ids_size_ << ")"; in CheckTypeIndex()
692 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetDeclaringClass()
694 = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(method_id.class_idx_)); in GetDeclaringClass()
834 << dex_file_->PrettyMethod(dex_method_idx_); in FailOrAbort()
886 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in Verify()
887 const char* method_name = dex_file_->StringDataByIdx(method_id.name_idx_); in Verify()
900 LOG(WARNING) << "Method " << dex_file_->PrettyMethod(dex_method_idx_) in Verify()
943 *dex_file_, class_def_, dex_method_idx_); in Verify()
959 const char* shorty = dex_file_->GetMethodShorty(method_id); in Verify()
1032 if (dex_file_->SupportsDefaultMethods()) { in Verify()
1323 if (UNLIKELY(idx.index_ >= dex_file_->GetHeader().type_ids_size_)) { in CheckNewInstance()
1325 << dex_file_->GetHeader().type_ids_size_ << ")"; in CheckNewInstance()
1329 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewInstance()
1343 if (UNLIKELY(idx.index_ >= dex_file_->GetHeader().type_ids_size_)) { in CheckNewArray()
1345 << dex_file_->GetHeader().type_ids_size_ << ")"; in CheckNewArray()
1349 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewArray()
1618 prepend += dex_file_->PrettyMethod(dex_method_idx_); in VerifyCodeFlow()
1667 vios->Stream() << inst->DumpString(dex_file_) << "\n"; in Dump()
1728 dex_file_->GetMethodPrototype(dex_file_->GetMethodId(dex_method_idx_)); in SetTypesFromSignature()
1729 DexFileParameterIterator iterator(*dex_file_, proto_id); in SetTypesFromSignature()
1810 const char* descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); in SetTypesFromSignature()
1918 LOG(FATAL) << "work_line diverged in " << dex_file_->PrettyMethod(dex_method_idx_) in CodeFlowVerifyMethod()
1935 std::string prepend(dex_file_->PrettyMethod(dex_method_idx_)); in CodeFlowVerifyMethod()
2055 LogVerifyInfo() << "Processing " << inst->DumpString(dex_file_) << std::endl in CodeFlowVerifyInstruction()
2439 << dex_file_->StringByTypeIdx(type_idx) << " in instanceof in " in CodeFlowVerifyInstruction()
2949 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction()
2951 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
2952 const char* descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
2972 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction()
2973 is_constructor = strcmp("<init>", dex_file_->StringDataByIdx(method_id.name_idx_)) == 0; in CodeFlowVerifyInstruction()
2975 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
2976 return_type_descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
3052 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction()
3054 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
3055 descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
3109 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction()
3111 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
3112 descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
3149 dex_file_->GetReturnTypeDescriptor(dex_file_->GetProtoId(proto_idx)); in CodeFlowVerifyInstruction()
3175 const dex::ProtoIndex proto_idx = dex_file_->GetProtoIndexForCallSite(call_site_idx); in CodeFlowVerifyInstruction()
3176 const dex::ProtoId& proto_id = dex_file_->GetProtoId(proto_idx); in CodeFlowVerifyInstruction()
3177 DexFileParameterIterator param_it(*dex_file_, proto_id); in CodeFlowVerifyInstruction()
3180 const char* return_descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); in CodeFlowVerifyInstruction()
3411 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "Unexpected opcode " << inst->DumpString(dex_file_); in CodeFlowVerifyInstruction()
3435 info_messages_ << "Rejecting opcode " << inst->DumpString(dex_file_); in CodeFlowVerifyInstruction()
3682 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass()
3688 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass()
3692 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass()
3697 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass()
3817 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx); in ResolveMethodAndCheckAccess()
3821 append += dex_file_->GetMethodName(method_id); in ResolveMethodAndCheckAccess()
3855 << dex_file_->GetMethodName(method_id) << " " in ResolveMethodAndCheckAccess()
3856 << dex_file_->GetMethodSignature(method_id); in ResolveMethodAndCheckAccess()
3884 (!dex_file_->SupportsDefaultMethods() || in ResolveMethodAndCheckAccess()
3888 << "non-interface method " << dex_file_->PrettyMethod(dex_method_idx) in ResolveMethodAndCheckAccess()
3895 << "interface method " << dex_file_->PrettyMethod(dex_method_idx) in ResolveMethodAndCheckAccess()
3908 << dex_file_->GetMethodName(method_id) << " " in ResolveMethodAndCheckAccess()
3909 << dex_file_->GetMethodSignature(method_id) << " resolved to " in ResolveMethodAndCheckAccess()
3946 << dex_file_->GetMethodName(method_id) << " " in ResolveMethodAndCheckAccess()
3947 << dex_file_->GetMethodSignature(method_id) << " unexpectedly resolved to " in ResolveMethodAndCheckAccess()
3994 if (strcmp(dex_file_->GetMethodName(dex_file_->GetMethodId(method_idx)), "<init>") != 0) { in VerifyInvocationArgsFromIterator()
4016 const dex::TypeIndex class_idx = dex_file_->GetMethodId(method_idx).class_idx_; in VerifyInvocationArgsFromIterator()
4019 dex_file_->StringByTypeIdx(class_idx), in VerifyInvocationArgsFromIterator()
4110 DexFileParameterIterator it(*dex_file_, in VerifyInvocationArgsUnresolvedMethod()
4111 dex_file_->GetProtoId(dex_file_->GetMethodId(method_idx).proto_idx_)); in VerifyInvocationArgsUnresolvedMethod()
4117 if (call_site_idx >= dex_file_->NumCallSiteIds()) { in CheckCallSite()
4119 << " >= " << dex_file_->NumCallSiteIds(); in CheckCallSite()
4123 CallSiteArrayValueIterator it(*dex_file_, dex_file_->GetCallSiteId(call_site_idx)); in CheckCallSite()
4135 { { EncodedArrayValueIterator::ValueType::kMethodHandle, dex_file_->NumMethodHandles() }, in CheckCallSite()
4136 { EncodedArrayValueIterator::ValueType::kString, dex_file_->NumStringIds() }, in CheckCallSite()
4137 { EncodedArrayValueIterator::ValueType::kMethodType, dex_file_->NumProtoIds() } in CheckCallSite()
4160 const dex::MethodHandleItem& mh = dex_file_->GetMethodHandle(index[0]); in CheckCallSite()
4214 dex::TypeIndex class_idx = dex_file_->GetMethodId(method_idx).class_idx_; in VerifyInvocationArgs()
4217 dex_file_->StringByTypeIdx(class_idx), in VerifyInvocationArgs()
4232 << dex_file_->PrettyMethod(dex_method_idx_) << " to method " in VerifyInvocationArgs()
4233 << dex_file_->PrettyMethod(method_idx) << " references " in VerifyInvocationArgs()
4241 << dex_file_->PrettyMethod(dex_method_idx_) in VerifyInvocationArgs()
4248 << dex_file_->PrettyMethod(dex_method_idx_) in VerifyInvocationArgs()
4260 DexFileParameterIterator it(*dex_file_, dex_file_->GetProtoId(proto_idx)); in VerifyInvocationArgs()
4593 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField()
4598 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4599 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4615 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4616 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4640 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField()
4645 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4646 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
4662 << dex_file_->GetFieldName(field_id) << ") in " in GetInstanceField()
4663 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetInstanceField()
4685 << " of " << dex_file_->PrettyMethod(dex_method_idx_); in GetInstanceField()
4754 << dex_file_->PrettyMethod(dex_method_idx_); in VerifyISFieldAccess()
4759 << dex_file_->PrettyMethod(dex_method_idx_); in VerifyISFieldAccess()
4795 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in VerifyISFieldAccess()
4796 const char* field_class_descriptor = dex_file_->GetFieldDeclaringClassDescriptor(field_id); in VerifyISFieldAccess()
4804 << dex_file_->GetFieldName(field_id) in VerifyISFieldAccess()
4811 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in VerifyISFieldAccess()
4812 const char* descriptor = dex_file_->GetFieldTypeDescriptor(field_id); in VerifyISFieldAccess()
4952 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetMethodReturnType()
4953 const dex::ProtoId& proto_id = dex_file_->GetMethodPrototype(method_id); in GetMethodReturnType()
4955 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(return_type_idx)); in GetMethodReturnType()
5013 dex_file_(dex_file), in MethodVerifier()
5527 std::string location(StringPrintf("%s: [0x%X] ", dex_file_->PrettyMethod(dex_method_idx_).c_str(), in Fail()
5536 ret << "VFY: " << dex_file_->PrettyMethod(dex_method_idx_) in LogVerifyInfo()