Lines Matching refs:output
35 dex_ir::Collections& output = output_header->GetCollections(); in VerifyOutputDexFile() local
38 if (!VerifyIds(orig.StringIds(), output.StringIds(), "string ids", error_msg) || in VerifyOutputDexFile()
39 !VerifyIds(orig.TypeIds(), output.TypeIds(), "type ids", error_msg) || in VerifyOutputDexFile()
40 !VerifyIds(orig.ProtoIds(), output.ProtoIds(), "proto ids", error_msg) || in VerifyOutputDexFile()
41 !VerifyIds(orig.FieldIds(), output.FieldIds(), "field ids", error_msg) || in VerifyOutputDexFile()
42 !VerifyIds(orig.MethodIds(), output.MethodIds(), "method ids", error_msg)) { in VerifyOutputDexFile()
46 if (!VerifyClassDefs(orig.ClassDefs(), output.ClassDefs(), error_msg)) { in VerifyOutputDexFile()
53 std::vector<std::unique_ptr<T>>& output, in VerifyIds() argument
56 if (orig.size() != output.size()) { in VerifyIds()
58 "Mismatched size for %s section: %zu vs %zu.", section_name, orig.size(), output.size()); in VerifyIds()
62 if (!VerifyId(orig[i].get(), output[i].get(), error_msg)) { in VerifyIds()
69 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg) { in VerifyId() argument
70 if (strcmp(orig->Data(), output->Data()) != 0) { in VerifyId()
75 output->Data()); in VerifyId()
81 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg) { in VerifyId() argument
82 if (orig->GetStringId()->GetIndex() != output->GetStringId()->GetIndex()) { in VerifyId()
87 output->GetStringId()->GetIndex()); in VerifyId()
93 bool VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg) { in VerifyId() argument
94 if (orig->Shorty()->GetIndex() != output->Shorty()->GetIndex()) { in VerifyId()
99 output->Shorty()->GetIndex()); in VerifyId()
102 if (orig->ReturnType()->GetIndex() != output->ReturnType()->GetIndex()) { in VerifyId()
107 output->ReturnType()->GetIndex()); in VerifyId()
110 if (!VerifyTypeList(orig->Parameters(), output->Parameters())) { in VerifyId()
118 bool VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg) { in VerifyId() argument
119 if (orig->Class()->GetIndex() != output->Class()->GetIndex()) { in VerifyId()
125 output->Class()->GetIndex()); in VerifyId()
128 if (orig->Type()->GetIndex() != output->Type()->GetIndex()) { in VerifyId()
133 output->Class()->GetIndex()); in VerifyId()
136 if (orig->Name()->GetIndex() != output->Name()->GetIndex()) { in VerifyId()
141 output->Name()->GetIndex()); in VerifyId()
147 bool VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg) { in VerifyId() argument
148 if (orig->Class()->GetIndex() != output->Class()->GetIndex()) { in VerifyId()
153 output->Class()->GetIndex()); in VerifyId()
156 if (orig->Proto()->GetIndex() != output->Proto()->GetIndex()) { in VerifyId()
161 output->Class()->GetIndex()); in VerifyId()
164 if (orig->Name()->GetIndex() != output->Name()->GetIndex()) { in VerifyId()
170 output->Name()->GetIndex()); in VerifyId()
185 std::vector<std::unique_ptr<dex_ir::ClassDef>>& output, in VerifyClassDefs() argument
187 if (orig.size() != output.size()) { in VerifyClassDefs()
189 "Mismatched size for class defs section: %zu vs %zu.", orig.size(), output.size()); in VerifyClassDefs()
197 output_set.insert(output[i].get()); in VerifyClassDefs()
211 bool VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg) { in VerifyClassDef() argument
212 if (orig->ClassType()->GetIndex() != output->ClassType()->GetIndex()) { in VerifyClassDef()
218 output->ClassType()->GetIndex()); in VerifyClassDef()
221 if (orig->GetAccessFlags() != output->GetAccessFlags()) { in VerifyClassDef()
227 output->GetAccessFlags()); in VerifyClassDef()
231 uint32_t output_super = output->Superclass() == nullptr ? 0 : output->Superclass()->GetIndex(); in VerifyClassDef()
241 if (!VerifyTypeList(orig->Interfaces(), output->Interfaces())) { in VerifyClassDef()
248 const char* output_source = output->SourceFile() == nullptr ? "" : output->SourceFile()->Data(); in VerifyClassDef()
257 if (!VerifyAnnotationsDirectory(orig->Annotations(), output->Annotations(), error_msg)) { in VerifyClassDef()
260 if (!VerifyClassData(orig->GetClassData(), output->GetClassData(), error_msg)) { in VerifyClassDef()
263 return VerifyEncodedArray(orig->StaticValues(), output->StaticValues(), error_msg); in VerifyClassDef()
266 bool VerifyTypeList(const dex_ir::TypeList* orig, const dex_ir::TypeList* output) { in VerifyTypeList() argument
267 if (orig == nullptr || output == nullptr) { in VerifyTypeList()
268 return orig == output; in VerifyTypeList()
271 const dex_ir::TypeIdVector* output_list = output->GetTypeList(); in VerifyTypeList()
284 dex_ir::AnnotationsDirectoryItem* output, in VerifyAnnotationsDirectory() argument
286 if (orig == nullptr || output == nullptr) { in VerifyAnnotationsDirectory()
287 if (orig != output) { in VerifyAnnotationsDirectory()
293 if (!VerifyAnnotationSet(orig->GetClassAnnotation(), output->GetClassAnnotation(), error_msg)) { in VerifyAnnotationsDirectory()
297 output->GetFieldAnnotations(), in VerifyAnnotationsDirectory()
303 output->GetMethodAnnotations(), in VerifyAnnotationsDirectory()
309 output->GetParameterAnnotations(), in VerifyAnnotationsDirectory()
315 dex_ir::FieldAnnotationVector* output, in VerifyFieldAnnotations() argument
318 if (orig == nullptr || output == nullptr) { in VerifyFieldAnnotations()
319 if (orig != output) { in VerifyFieldAnnotations()
327 if (orig->size() != output->size()) { in VerifyFieldAnnotations()
332 output->size()); in VerifyFieldAnnotations()
337 dex_ir::FieldAnnotation* output_field = (*output)[i].get(); in VerifyFieldAnnotations()
356 dex_ir::MethodAnnotationVector* output, in VerifyMethodAnnotations() argument
359 if (orig == nullptr || output == nullptr) { in VerifyMethodAnnotations()
360 if (orig != output) { in VerifyMethodAnnotations()
368 if (orig->size() != output->size()) { in VerifyMethodAnnotations()
373 output->size()); in VerifyMethodAnnotations()
378 dex_ir::MethodAnnotation* output_method = (*output)[i].get(); in VerifyMethodAnnotations()
397 dex_ir::ParameterAnnotationVector* output, in VerifyParameterAnnotations() argument
400 if (orig == nullptr || output == nullptr) { in VerifyParameterAnnotations()
401 if (orig != output) { in VerifyParameterAnnotations()
409 if (orig->size() != output->size()) { in VerifyParameterAnnotations()
414 output->size()); in VerifyParameterAnnotations()
419 dex_ir::ParameterAnnotation* output_param = (*output)[i].get(); in VerifyParameterAnnotations()
438 dex_ir::AnnotationSetRefList* output, in VerifyAnnotationSetRefList() argument
441 std::vector<dex_ir::AnnotationSetItem*>* output_items = output->GetItems(); in VerifyAnnotationSetRefList()
459 dex_ir::AnnotationSetItem* output, in VerifyAnnotationSet() argument
461 if (orig == nullptr || output == nullptr) { in VerifyAnnotationSet()
462 if (orig != output) { in VerifyAnnotationSet()
469 std::vector<dex_ir::AnnotationItem*>* output_items = output->GetItems(); in VerifyAnnotationSet()
486 dex_ir::AnnotationItem* output, in VerifyAnnotation() argument
488 if (orig->GetVisibility() != output->GetVisibility()) { in VerifyAnnotation()
492 output->GetVisibility()); in VerifyAnnotation()
496 output->GetAnnotation(), in VerifyAnnotation()
502 dex_ir::EncodedAnnotation* output, in VerifyEncodedAnnotation() argument
505 if (orig->GetType()->GetIndex() != output->GetType()->GetIndex()) { in VerifyEncodedAnnotation()
510 output->GetType()->GetIndex()); in VerifyEncodedAnnotation()
514 dex_ir::AnnotationElementVector* output_elements = output->GetAnnotationElements(); in VerifyEncodedAnnotation()
535 dex_ir::AnnotationElement* output, in VerifyAnnotationElement() argument
538 if (orig->GetName()->GetIndex() != output->GetName()->GetIndex()) { in VerifyAnnotationElement()
543 output->GetName()->GetIndex()); in VerifyAnnotationElement()
546 return VerifyEncodedValue(orig->GetValue(), output->GetValue(), orig_offset, error_msg); in VerifyAnnotationElement()
550 dex_ir::EncodedValue* output, in VerifyEncodedValue() argument
553 if (orig->Type() != output->Type()) { in VerifyEncodedValue()
558 output->Type()); in VerifyEncodedValue()
563 if (orig->GetByte() != output->GetByte()) { in VerifyEncodedValue()
567 output->GetByte()); in VerifyEncodedValue()
572 if (orig->GetShort() != output->GetShort()) { in VerifyEncodedValue()
576 output->GetShort()); in VerifyEncodedValue()
581 if (orig->GetChar() != output->GetChar()) { in VerifyEncodedValue()
585 output->GetChar()); in VerifyEncodedValue()
590 if (orig->GetInt() != output->GetInt()) { in VerifyEncodedValue()
594 output->GetInt()); in VerifyEncodedValue()
599 if (orig->GetLong() != output->GetLong()) { in VerifyEncodedValue()
604 output->GetLong()); in VerifyEncodedValue()
610 if (orig->GetInt() != output->GetInt()) { in VerifyEncodedValue()
615 output->GetInt()); in VerifyEncodedValue()
621 if (orig->GetLong() != output->GetLong()) { in VerifyEncodedValue()
627 output->GetLong()); in VerifyEncodedValue()
632 if (orig->GetStringId()->GetIndex() != output->GetStringId()->GetIndex()) { in VerifyEncodedValue()
637 output->GetStringId()->Data()); in VerifyEncodedValue()
642 if (orig->GetTypeId()->GetIndex() != output->GetTypeId()->GetIndex()) { in VerifyEncodedValue()
646 output->GetTypeId()->GetIndex()); in VerifyEncodedValue()
652 if (orig->GetFieldId()->GetIndex() != output->GetFieldId()->GetIndex()) { in VerifyEncodedValue()
656 output->GetFieldId()->GetIndex()); in VerifyEncodedValue()
661 if (orig->GetMethodId()->GetIndex() != output->GetMethodId()->GetIndex()) { in VerifyEncodedValue()
666 output->GetMethodId()->GetIndex()); in VerifyEncodedValue()
671 if (!VerifyEncodedArray(orig->GetEncodedArray(), output->GetEncodedArray(), error_msg)) { in VerifyEncodedValue()
677 output->GetEncodedAnnotation(), in VerifyEncodedValue()
686 if (orig->GetBoolean() != output->GetBoolean()) { in VerifyEncodedValue()
691 output->GetBoolean()); in VerifyEncodedValue()
702 dex_ir::EncodedArrayItem* output, in VerifyEncodedArray() argument
704 if (orig == nullptr || output == nullptr) { in VerifyEncodedArray()
705 if (orig != output) { in VerifyEncodedArray()
712 dex_ir::EncodedValueVector* output_vector = output->GetEncodedValues(); in VerifyEncodedArray()
731 bool VerifyClassData(dex_ir::ClassData* orig, dex_ir::ClassData* output, std::string* error_msg) { in VerifyClassData() argument
732 if (orig == nullptr || output == nullptr) { in VerifyClassData()
733 if (orig != output) { in VerifyClassData()
739 if (!VerifyFields(orig->StaticFields(), output->StaticFields(), orig->GetOffset(), error_msg)) { in VerifyClassData()
743 output->InstanceFields(), in VerifyClassData()
749 output->DirectMethods(), in VerifyClassData()
755 output->VirtualMethods(), in VerifyClassData()
761 dex_ir::FieldItemVector* output, in VerifyFields() argument
764 if (orig->size() != output->size()) { in VerifyFields()
768 output->size()); in VerifyFields()
773 dex_ir::FieldItem* output_field = (*output)[i].get(); in VerifyFields()
794 dex_ir::MethodItemVector* output, in VerifyMethods() argument
797 if (orig->size() != output->size()) { in VerifyMethods()
801 output->size()); in VerifyMethods()
806 dex_ir::MethodItem* output_method = (*output)[i].get(); in VerifyMethods()
829 bool VerifyCode(dex_ir::CodeItem* orig, dex_ir::CodeItem* output, std::string* error_msg) { in VerifyCode() argument
830 if (orig == nullptr || output == nullptr) { in VerifyCode()
831 if (orig != output) { in VerifyCode()
837 if (orig->RegistersSize() != output->RegistersSize()) { in VerifyCode()
841 output->RegistersSize()); in VerifyCode()
844 if (orig->InsSize() != output->InsSize()) { in VerifyCode()
848 output->InsSize()); in VerifyCode()
851 if (orig->OutsSize() != output->OutsSize()) { in VerifyCode()
855 output->OutsSize()); in VerifyCode()
858 if (orig->TriesSize() != output->TriesSize()) { in VerifyCode()
862 output->TriesSize()); in VerifyCode()
865 if (!VerifyDebugInfo(orig->DebugInfo(), output->DebugInfo(), error_msg)) { in VerifyCode()
868 if (orig->InsnsSize() != output->InsnsSize()) { in VerifyCode()
872 output->InsnsSize()); in VerifyCode()
875 if (memcmp(orig->Insns(), output->Insns(), orig->InsnsSize()) != 0) { in VerifyCode()
880 if (!VerifyTries(orig->Tries(), output->Tries(), orig->GetOffset(), error_msg)) { in VerifyCode()
883 return VerifyHandlers(orig->Handlers(), output->Handlers(), orig->GetOffset(), error_msg); in VerifyCode()
887 dex_ir::DebugInfoItem* output, in VerifyDebugInfo() argument
889 if (orig == nullptr || output == nullptr) { in VerifyDebugInfo()
890 if (orig != output) { in VerifyDebugInfo()
897 output->GetPositionInfo(), in VerifyDebugInfo()
903 output->GetLocalInfo(), in VerifyDebugInfo()
909 dex_ir::PositionInfoVector& output, in VerifyPositionInfo() argument
912 if (orig.size() != output.size()) { in VerifyPositionInfo()
917 output.size()); in VerifyPositionInfo()
921 if (orig[i]->address_ != output[i]->address_) { in VerifyPositionInfo()
926 output[i]->address_); in VerifyPositionInfo()
929 if (orig[i]->line_ != output[i]->line_) { in VerifyPositionInfo()
933 output[i]->line_); in VerifyPositionInfo()
941 dex_ir::LocalInfoVector& output, in VerifyLocalInfo() argument
944 if (orig.size() != output.size()) { in VerifyLocalInfo()
949 output.size()); in VerifyLocalInfo()
953 if (orig[i]->name_ != output[i]->name_) { in VerifyLocalInfo()
957 output[i]->name_.c_str()); in VerifyLocalInfo()
960 if (orig[i]->descriptor_ != output[i]->descriptor_) { in VerifyLocalInfo()
965 output[i]->descriptor_.c_str()); in VerifyLocalInfo()
968 if (orig[i]->signature_ != output[i]->signature_) { in VerifyLocalInfo()
972 output[i]->signature_.c_str()); in VerifyLocalInfo()
975 if (orig[i]->start_address_ != output[i]->start_address_) { in VerifyLocalInfo()
980 output[i]->start_address_); in VerifyLocalInfo()
983 if (orig[i]->end_address_ != output[i]->end_address_) { in VerifyLocalInfo()
988 output[i]->end_address_); in VerifyLocalInfo()
991 if (orig[i]->reg_ != output[i]->reg_) { in VerifyLocalInfo()
995 output[i]->reg_); in VerifyLocalInfo()
1003 dex_ir::TryItemVector* output, in VerifyTries() argument
1006 if (orig == nullptr || output == nullptr) { in VerifyTries()
1007 if (orig != output) { in VerifyTries()
1013 if (orig->size() != output->size()) { in VerifyTries()
1017 output->size()); in VerifyTries()
1022 const dex_ir::TryItem* output_try = (*output)[i].get(); in VerifyTries()
1050 dex_ir::CatchHandlerVector* output, in VerifyHandlers() argument
1053 if (orig == nullptr || output == nullptr) { in VerifyHandlers()
1054 if (orig != output) { in VerifyHandlers()
1060 if (orig->size() != output->size()) { in VerifyHandlers()
1065 output->size()); in VerifyHandlers()
1069 if (!VerifyHandler((*orig)[i].get(), (*output)[i].get(), orig_offset, error_msg)) { in VerifyHandlers()
1077 const dex_ir::CatchHandler* output, in VerifyHandler() argument
1081 dex_ir::TypeAddrPairVector* output_handlers = output->GetHandlers(); in VerifyHandler()