Lines Matching refs:descriptor

199   void UninstantiableError(const char* descriptor) {  in UninstantiableError()  argument
201 << "non-instantiable klass " << descriptor; in UninstantiableError()
691 const char* descriptor in GetDeclaringClass() local
695 declaring_class_ = &FromClass(descriptor, klass, klass->CannotBeAssignedFromOtherTypes()); in GetDeclaringClass()
697 declaring_class_ = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in GetDeclaringClass()
715 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) in FromClass() argument
720 << "non-instantiable klass " << descriptor; in FromClass()
723 return reg_types_.FromClass(descriptor, klass, precise); in FromClass()
1323 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewInstance() local
1324 if (UNLIKELY(descriptor[0] != 'L')) { in CheckNewInstance()
1325 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "can't call new-instance on type '" << descriptor << "'"; in CheckNewInstance()
1327 } else if (UNLIKELY(strcmp(descriptor, "Ljava/lang/Class;") == 0)) { in CheckNewInstance()
1343 const char* descriptor = dex_file_->StringByTypeIdx(idx); in CheckNewArray() local
1344 const char* cp = descriptor; in CheckNewArray()
1351 << "can't new-array class '" << descriptor << "' (not an array)"; in CheckNewArray()
1356 << "can't new-array class '" << descriptor << "' (exceeds limit)"; in CheckNewArray()
1665 static bool IsPrimitiveDescriptor(char descriptor) { in IsPrimitiveDescriptor() argument
1666 switch (descriptor) { in IsPrimitiveDescriptor()
1726 const char* descriptor = iterator.GetDescriptor(); in SetTypesFromSignature() local
1727 if (descriptor == nullptr) { in SetTypesFromSignature()
1732 << " args, found more (" << descriptor << ")"; in SetTypesFromSignature()
1735 switch (descriptor[0]) { in SetTypesFromSignature()
1775 << " args, found more (" << descriptor << ")"; in SetTypesFromSignature()
1781 if (descriptor[0] == 'J') { in SetTypesFromSignature()
1794 << descriptor << "'"; in SetTypesFromSignature()
1804 const char* descriptor = dex_file_->GetReturnTypeDescriptor(proto_id); in SetTypesFromSignature() local
1808 if (IsPrimitiveDescriptor(descriptor[0]) || descriptor[0] == 'V') { in SetTypesFromSignature()
1809 result = descriptor[1] == '\0'; in SetTypesFromSignature()
1810 } else if (descriptor[0] == '[') { // single/multi-dimensional array of object/primitive in SetTypesFromSignature()
1814 } while (descriptor[i] == '['); // process leading [ in SetTypesFromSignature()
1815 if (descriptor[i] == 'L') { // object array in SetTypesFromSignature()
1818 } while (descriptor[i] != ';' && descriptor[i] != '\0'); in SetTypesFromSignature()
1819 result = descriptor[i] == ';'; in SetTypesFromSignature()
1821 result = IsPrimitiveDescriptor(descriptor[i]) && descriptor[i + 1] == '\0'; in SetTypesFromSignature()
1823 } else if (descriptor[0] == 'L') { in SetTypesFromSignature()
1828 } while (descriptor[i] != ';' && descriptor[i] != '\0'); in SetTypesFromSignature()
1829 result = descriptor[i] == ';'; in SetTypesFromSignature()
1835 << descriptor << "'"; in SetTypesFromSignature()
2976 const char* descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction() local
2977 return_type = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in CodeFlowVerifyInstruction()
3073 const char* descriptor; in CodeFlowVerifyInstruction() local
3079 descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
3081 descriptor = called_method->GetReturnTypeDescriptor(); in CodeFlowVerifyInstruction()
3084 descriptor, in CodeFlowVerifyInstruction()
3130 const char* descriptor; in CodeFlowVerifyInstruction() local
3136 descriptor = dex_file_->StringByTypeIdx(return_type_idx); in CodeFlowVerifyInstruction()
3138 descriptor = abs_method->GetReturnTypeDescriptor(); in CodeFlowVerifyInstruction()
3141 descriptor, in CodeFlowVerifyInstruction()
3738 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass() local
3739 UninstantiableError(descriptor); in ResolveClass()
3744 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass() local
3745 result = reg_types_.InsertClass(descriptor, klass, precise); in ResolveClass()
3748 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass() local
3749 result = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in ResolveClass()
3753 const char* descriptor = dex_file_->StringByTypeIdx(class_idx); in ResolveClass() local
3754 Fail(VERIFY_ERROR_BAD_CLASS_SOFT) << "accessing broken descriptor '" << descriptor in ResolveClass()
4882 const char* descriptor = dex_file_->GetFieldTypeDescriptor(field_id); in VerifyISFieldAccess() local
4883 field_type = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in VerifyISFieldAccess()
5025 const char* descriptor = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(return_type_idx)); in GetMethodReturnType() local
5026 return_type_ = &reg_types_.FromDescriptor(class_loader_.Get(), descriptor, false); in GetMethodReturnType()