Lines Matching refs:output
52 dex_ir::CollectionVector<T>& output, in VerifyIds() argument
56 auto output_iter = output.begin(); in VerifyIds()
57 for (; orig_iter != orig.end() && output_iter != output.end(); ++orig_iter, ++output_iter) { in VerifyIds()
62 if (orig_iter != orig.end() || output_iter != output.end()) { in VerifyIds()
75 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg) { in VerifyId() argument
76 if (strcmp(orig->Data(), output->Data()) != 0) { in VerifyId()
81 output->Data()); in VerifyId()
87 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg) { in VerifyId() argument
88 if (orig->GetStringId()->GetIndex() != output->GetStringId()->GetIndex()) { in VerifyId()
93 output->GetStringId()->GetIndex()); in VerifyId()
99 bool VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg) { in VerifyId() argument
100 if (orig->Shorty()->GetIndex() != output->Shorty()->GetIndex()) { in VerifyId()
105 output->Shorty()->GetIndex()); in VerifyId()
108 if (orig->ReturnType()->GetIndex() != output->ReturnType()->GetIndex()) { in VerifyId()
113 output->ReturnType()->GetIndex()); in VerifyId()
116 if (!VerifyTypeList(orig->Parameters(), output->Parameters())) { in VerifyId()
124 bool VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg) { in VerifyId() argument
125 if (orig->Class()->GetIndex() != output->Class()->GetIndex()) { in VerifyId()
131 output->Class()->GetIndex()); in VerifyId()
134 if (orig->Type()->GetIndex() != output->Type()->GetIndex()) { in VerifyId()
139 output->Class()->GetIndex()); in VerifyId()
142 if (orig->Name()->GetIndex() != output->Name()->GetIndex()) { in VerifyId()
147 output->Name()->GetIndex()); in VerifyId()
153 bool VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg) { in VerifyId() argument
154 if (orig->Class()->GetIndex() != output->Class()->GetIndex()) { in VerifyId()
159 output->Class()->GetIndex()); in VerifyId()
162 if (orig->Proto()->GetIndex() != output->Proto()->GetIndex()) { in VerifyId()
167 output->Class()->GetIndex()); in VerifyId()
170 if (orig->Name()->GetIndex() != output->Name()->GetIndex()) { in VerifyId()
176 output->Name()->GetIndex()); in VerifyId()
191 dex_ir::CollectionVector<dex_ir::ClassDef>& output, in VerifyClassDefs() argument
197 auto output_iter = output.begin(); in VerifyClassDefs()
198 for (; orig_iter != orig.end() && output_iter != output.end(); ++orig_iter, ++output_iter) { in VerifyClassDefs()
202 if (orig_iter != orig.end() || output_iter != output.end()) { in VerifyClassDefs()
224 bool VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg) { in VerifyClassDef() argument
225 if (orig->ClassType()->GetIndex() != output->ClassType()->GetIndex()) { in VerifyClassDef()
231 output->ClassType()->GetIndex()); in VerifyClassDef()
234 if (orig->GetAccessFlags() != output->GetAccessFlags()) { in VerifyClassDef()
240 output->GetAccessFlags()); in VerifyClassDef()
244 uint32_t output_super = output->Superclass() == nullptr ? 0 : output->Superclass()->GetIndex(); in VerifyClassDef()
254 if (!VerifyTypeList(orig->Interfaces(), output->Interfaces())) { in VerifyClassDef()
261 const char* output_source = output->SourceFile() == nullptr ? "" : output->SourceFile()->Data(); in VerifyClassDef()
270 if (!VerifyAnnotationsDirectory(orig->Annotations(), output->Annotations(), error_msg)) { in VerifyClassDef()
273 if (!VerifyClassData(orig->GetClassData(), output->GetClassData(), error_msg)) { in VerifyClassDef()
276 return VerifyEncodedArray(orig->StaticValues(), output->StaticValues(), error_msg); in VerifyClassDef()
279 bool VerifyTypeList(const dex_ir::TypeList* orig, const dex_ir::TypeList* output) { in VerifyTypeList() argument
280 if (orig == nullptr || output == nullptr) { in VerifyTypeList()
281 return orig == output; in VerifyTypeList()
284 const dex_ir::TypeIdVector* output_list = output->GetTypeList(); in VerifyTypeList()
297 dex_ir::AnnotationsDirectoryItem* output, in VerifyAnnotationsDirectory() argument
299 if (orig == nullptr || output == nullptr) { in VerifyAnnotationsDirectory()
300 if (orig != output) { in VerifyAnnotationsDirectory()
306 if (!VerifyAnnotationSet(orig->GetClassAnnotation(), output->GetClassAnnotation(), error_msg)) { in VerifyAnnotationsDirectory()
310 output->GetFieldAnnotations(), in VerifyAnnotationsDirectory()
316 output->GetMethodAnnotations(), in VerifyAnnotationsDirectory()
322 output->GetParameterAnnotations(), in VerifyAnnotationsDirectory()
328 dex_ir::FieldAnnotationVector* output, in VerifyFieldAnnotations() argument
331 if (orig == nullptr || output == nullptr) { in VerifyFieldAnnotations()
332 if (orig != output) { in VerifyFieldAnnotations()
340 if (orig->size() != output->size()) { in VerifyFieldAnnotations()
345 output->size()); in VerifyFieldAnnotations()
350 dex_ir::FieldAnnotation* output_field = (*output)[i].get(); in VerifyFieldAnnotations()
369 dex_ir::MethodAnnotationVector* output, in VerifyMethodAnnotations() argument
372 if (orig == nullptr || output == nullptr) { in VerifyMethodAnnotations()
373 if (orig != output) { in VerifyMethodAnnotations()
381 if (orig->size() != output->size()) { in VerifyMethodAnnotations()
386 output->size()); in VerifyMethodAnnotations()
391 dex_ir::MethodAnnotation* output_method = (*output)[i].get(); in VerifyMethodAnnotations()
410 dex_ir::ParameterAnnotationVector* output, in VerifyParameterAnnotations() argument
413 if (orig == nullptr || output == nullptr) { in VerifyParameterAnnotations()
414 if (orig != output) { in VerifyParameterAnnotations()
422 if (orig->size() != output->size()) { in VerifyParameterAnnotations()
427 output->size()); in VerifyParameterAnnotations()
432 dex_ir::ParameterAnnotation* output_param = (*output)[i].get(); in VerifyParameterAnnotations()
451 dex_ir::AnnotationSetRefList* output, in VerifyAnnotationSetRefList() argument
454 std::vector<dex_ir::AnnotationSetItem*>* output_items = output->GetItems(); in VerifyAnnotationSetRefList()
472 dex_ir::AnnotationSetItem* output, in VerifyAnnotationSet() argument
474 if (orig == nullptr || output == nullptr) { in VerifyAnnotationSet()
475 if (orig != output) { in VerifyAnnotationSet()
482 std::vector<dex_ir::AnnotationItem*>* output_items = output->GetItems(); in VerifyAnnotationSet()
499 dex_ir::AnnotationItem* output, in VerifyAnnotation() argument
501 if (orig->GetVisibility() != output->GetVisibility()) { in VerifyAnnotation()
505 output->GetVisibility()); in VerifyAnnotation()
509 output->GetAnnotation(), in VerifyAnnotation()
515 dex_ir::EncodedAnnotation* output, in VerifyEncodedAnnotation() argument
518 if (orig->GetType()->GetIndex() != output->GetType()->GetIndex()) { in VerifyEncodedAnnotation()
523 output->GetType()->GetIndex()); in VerifyEncodedAnnotation()
527 dex_ir::AnnotationElementVector* output_elements = output->GetAnnotationElements(); in VerifyEncodedAnnotation()
548 dex_ir::AnnotationElement* output, in VerifyAnnotationElement() argument
551 if (orig->GetName()->GetIndex() != output->GetName()->GetIndex()) { in VerifyAnnotationElement()
556 output->GetName()->GetIndex()); in VerifyAnnotationElement()
559 return VerifyEncodedValue(orig->GetValue(), output->GetValue(), orig_offset, error_msg); in VerifyAnnotationElement()
563 dex_ir::EncodedValue* output, in VerifyEncodedValue() argument
566 if (orig->Type() != output->Type()) { in VerifyEncodedValue()
571 output->Type()); in VerifyEncodedValue()
576 if (orig->GetByte() != output->GetByte()) { in VerifyEncodedValue()
580 output->GetByte()); in VerifyEncodedValue()
585 if (orig->GetShort() != output->GetShort()) { in VerifyEncodedValue()
589 output->GetShort()); in VerifyEncodedValue()
594 if (orig->GetChar() != output->GetChar()) { in VerifyEncodedValue()
598 output->GetChar()); in VerifyEncodedValue()
603 if (orig->GetInt() != output->GetInt()) { in VerifyEncodedValue()
607 output->GetInt()); in VerifyEncodedValue()
612 if (orig->GetLong() != output->GetLong()) { in VerifyEncodedValue()
617 output->GetLong()); in VerifyEncodedValue()
623 if (orig->GetInt() != output->GetInt()) { in VerifyEncodedValue()
628 output->GetInt()); in VerifyEncodedValue()
634 if (orig->GetLong() != output->GetLong()) { in VerifyEncodedValue()
640 output->GetLong()); in VerifyEncodedValue()
645 if (orig->GetStringId()->GetIndex() != output->GetStringId()->GetIndex()) { in VerifyEncodedValue()
650 output->GetStringId()->Data()); in VerifyEncodedValue()
655 if (orig->GetTypeId()->GetIndex() != output->GetTypeId()->GetIndex()) { in VerifyEncodedValue()
659 output->GetTypeId()->GetIndex()); in VerifyEncodedValue()
665 if (orig->GetFieldId()->GetIndex() != output->GetFieldId()->GetIndex()) { in VerifyEncodedValue()
669 output->GetFieldId()->GetIndex()); in VerifyEncodedValue()
674 if (orig->GetMethodId()->GetIndex() != output->GetMethodId()->GetIndex()) { in VerifyEncodedValue()
679 output->GetMethodId()->GetIndex()); in VerifyEncodedValue()
684 if (!VerifyEncodedArray(orig->GetEncodedArray(), output->GetEncodedArray(), error_msg)) { in VerifyEncodedValue()
690 output->GetEncodedAnnotation(), in VerifyEncodedValue()
699 if (orig->GetBoolean() != output->GetBoolean()) { in VerifyEncodedValue()
704 output->GetBoolean()); in VerifyEncodedValue()
715 dex_ir::EncodedArrayItem* output, in VerifyEncodedArray() argument
717 if (orig == nullptr || output == nullptr) { in VerifyEncodedArray()
718 if (orig != output) { in VerifyEncodedArray()
725 dex_ir::EncodedValueVector* output_vector = output->GetEncodedValues(); in VerifyEncodedArray()
744 bool VerifyClassData(dex_ir::ClassData* orig, dex_ir::ClassData* output, std::string* error_msg) { in VerifyClassData() argument
745 if (orig == nullptr || output == nullptr) { in VerifyClassData()
746 if (orig != output) { in VerifyClassData()
752 if (!VerifyFields(orig->StaticFields(), output->StaticFields(), orig->GetOffset(), error_msg)) { in VerifyClassData()
756 output->InstanceFields(), in VerifyClassData()
762 output->DirectMethods(), in VerifyClassData()
768 output->VirtualMethods(), in VerifyClassData()
774 dex_ir::FieldItemVector* output, in VerifyFields() argument
777 if (orig->size() != output->size()) { in VerifyFields()
781 output->size()); in VerifyFields()
786 dex_ir::FieldItem* output_field = &(*output)[i]; in VerifyFields()
807 dex_ir::MethodItemVector* output, in VerifyMethods() argument
810 if (orig->size() != output->size()) { in VerifyMethods()
814 output->size()); in VerifyMethods()
819 dex_ir::MethodItem* output_method = &(*output)[i]; in VerifyMethods()
842 bool VerifyCode(dex_ir::CodeItem* orig, dex_ir::CodeItem* output, std::string* error_msg) { in VerifyCode() argument
843 if (orig == nullptr || output == nullptr) { in VerifyCode()
844 if (orig != output) { in VerifyCode()
850 if (orig->RegistersSize() != output->RegistersSize()) { in VerifyCode()
854 output->RegistersSize()); in VerifyCode()
857 if (orig->InsSize() != output->InsSize()) { in VerifyCode()
861 output->InsSize()); in VerifyCode()
864 if (orig->OutsSize() != output->OutsSize()) { in VerifyCode()
868 output->OutsSize()); in VerifyCode()
871 if (orig->TriesSize() != output->TriesSize()) { in VerifyCode()
875 output->TriesSize()); in VerifyCode()
878 if (!VerifyDebugInfo(orig->DebugInfo(), output->DebugInfo(), error_msg)) { in VerifyCode()
881 if (orig->InsnsSize() != output->InsnsSize()) { in VerifyCode()
885 output->InsnsSize()); in VerifyCode()
888 if (memcmp(orig->Insns(), output->Insns(), orig->InsnsSize()) != 0) { in VerifyCode()
893 if (!VerifyTries(orig->Tries(), output->Tries(), orig->GetOffset(), error_msg)) { in VerifyCode()
896 return VerifyHandlers(orig->Handlers(), output->Handlers(), orig->GetOffset(), error_msg); in VerifyCode()
900 dex_ir::DebugInfoItem* output, in VerifyDebugInfo() argument
902 if (orig == nullptr || output == nullptr) { in VerifyDebugInfo()
903 if (orig != output) { in VerifyDebugInfo()
911 uint32_t output_size = output->GetDebugInfoSize(); in VerifyDebugInfo()
917 uint8_t* output_data = output->GetDebugInfo(); in VerifyDebugInfo()
931 dex_ir::TryItemVector* output, in VerifyTries() argument
934 if (orig == nullptr || output == nullptr) { in VerifyTries()
935 if (orig != output) { in VerifyTries()
941 if (orig->size() != output->size()) { in VerifyTries()
945 output->size()); in VerifyTries()
950 const dex_ir::TryItem* output_try = (*output)[i].get(); in VerifyTries()
978 dex_ir::CatchHandlerVector* output, in VerifyHandlers() argument
981 if (orig == nullptr || output == nullptr) { in VerifyHandlers()
982 if (orig != output) { in VerifyHandlers()
988 if (orig->size() != output->size()) { in VerifyHandlers()
993 output->size()); in VerifyHandlers()
997 if (!VerifyHandler((*orig)[i].get(), (*output)[i].get(), orig_offset, error_msg)) { in VerifyHandlers()
1005 const dex_ir::CatchHandler* output, in VerifyHandler() argument
1009 dex_ir::TypeAddrPairVector* output_handlers = output->GetHandlers(); in VerifyHandler()