objdiff-wasm 2.0.0-beta.4 → 2.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +82 -313
- package/dist/main.js +166 -732
- package/dist/main.js.map +1 -1
- package/dist/objdiff_core_bg.wasm +0 -0
- package/dist/worker.js +9 -2
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -405,14 +405,33 @@ interface InstructionDiff {
|
|
|
405
405
|
*/
|
|
406
406
|
branch_to?: InstructionBranchTo;
|
|
407
407
|
/**
|
|
408
|
-
* @generated from protobuf field: repeated objdiff.diff.
|
|
408
|
+
* @generated from protobuf field: repeated objdiff.diff.ArgumentDiff arg_diff = 5;
|
|
409
409
|
*/
|
|
410
|
-
|
|
410
|
+
arg_diff: ArgumentDiff[];
|
|
411
411
|
}
|
|
412
412
|
/**
|
|
413
413
|
* @generated MessageType for protobuf message objdiff.diff.InstructionDiff
|
|
414
414
|
*/
|
|
415
415
|
declare const InstructionDiff: InstructionDiff$Type;
|
|
416
|
+
declare class ArgumentDiff$Type extends MessageType<ArgumentDiff> {
|
|
417
|
+
constructor();
|
|
418
|
+
create(value?: PartialMessage<ArgumentDiff>): ArgumentDiff;
|
|
419
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgumentDiff): ArgumentDiff;
|
|
420
|
+
internalBinaryWrite(message: ArgumentDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @generated from protobuf message objdiff.diff.ArgumentDiff
|
|
424
|
+
*/
|
|
425
|
+
interface ArgumentDiff {
|
|
426
|
+
/**
|
|
427
|
+
* @generated from protobuf field: optional uint32 diff_index = 1;
|
|
428
|
+
*/
|
|
429
|
+
diff_index?: number;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @generated MessageType for protobuf message objdiff.diff.ArgumentDiff
|
|
433
|
+
*/
|
|
434
|
+
declare const ArgumentDiff: ArgumentDiff$Type;
|
|
416
435
|
declare class InstructionBranchFrom$Type extends MessageType<InstructionBranchFrom> {
|
|
417
436
|
constructor();
|
|
418
437
|
create(value?: PartialMessage<InstructionBranchFrom>): InstructionBranchFrom;
|
|
@@ -600,312 +619,7 @@ interface DiffResult {
|
|
|
600
619
|
* @generated MessageType for protobuf message objdiff.diff.DiffResult
|
|
601
620
|
*/
|
|
602
621
|
declare const DiffResult: DiffResult$Type;
|
|
603
|
-
declare class DiffDisplay$Type extends MessageType<DiffDisplay> {
|
|
604
|
-
constructor();
|
|
605
|
-
create(value?: PartialMessage<DiffDisplay>): DiffDisplay;
|
|
606
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffDisplay): DiffDisplay;
|
|
607
|
-
internalBinaryWrite(message: DiffDisplay, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* @generated from protobuf message objdiff.diff.DiffDisplay
|
|
611
|
-
*/
|
|
612
|
-
interface DiffDisplay {
|
|
613
|
-
/**
|
|
614
|
-
* @generated from protobuf field: objdiff.diff.DiffText text = 1;
|
|
615
|
-
*/
|
|
616
|
-
text?: DiffText;
|
|
617
|
-
/**
|
|
618
|
-
* @generated from protobuf field: optional uint32 diff_index = 2;
|
|
619
|
-
*/
|
|
620
|
-
diff_index?: number;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffDisplay
|
|
624
|
-
*/
|
|
625
|
-
declare const DiffDisplay: DiffDisplay$Type;
|
|
626
|
-
declare class DiffText$Type extends MessageType<DiffText> {
|
|
627
|
-
constructor();
|
|
628
|
-
create(value?: PartialMessage<DiffText>): DiffText;
|
|
629
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffText): DiffText;
|
|
630
|
-
internalBinaryWrite(message: DiffText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
631
|
-
}
|
|
632
|
-
/**
|
|
633
|
-
* @generated from protobuf message objdiff.diff.DiffText
|
|
634
|
-
*/
|
|
635
|
-
interface DiffText {
|
|
636
|
-
/**
|
|
637
|
-
* @generated from protobuf oneof: text
|
|
638
|
-
*/
|
|
639
|
-
text: {
|
|
640
|
-
oneofKind: "basic";
|
|
641
|
-
/**
|
|
642
|
-
* @generated from protobuf field: objdiff.diff.DiffTextBasic basic = 1;
|
|
643
|
-
*/
|
|
644
|
-
basic: DiffTextBasic;
|
|
645
|
-
} | {
|
|
646
|
-
oneofKind: "basic_color";
|
|
647
|
-
/**
|
|
648
|
-
* @generated from protobuf field: objdiff.diff.DiffTextBasicColor basic_color = 2;
|
|
649
|
-
*/
|
|
650
|
-
basic_color: DiffTextBasicColor;
|
|
651
|
-
} | {
|
|
652
|
-
oneofKind: "line";
|
|
653
|
-
/**
|
|
654
|
-
* @generated from protobuf field: objdiff.diff.DiffTextLine line = 3;
|
|
655
|
-
*/
|
|
656
|
-
line: DiffTextLine;
|
|
657
|
-
} | {
|
|
658
|
-
oneofKind: "address";
|
|
659
|
-
/**
|
|
660
|
-
* @generated from protobuf field: objdiff.diff.DiffTextAddress address = 4;
|
|
661
|
-
*/
|
|
662
|
-
address: DiffTextAddress;
|
|
663
|
-
} | {
|
|
664
|
-
oneofKind: "opcode";
|
|
665
|
-
/**
|
|
666
|
-
* @generated from protobuf field: objdiff.diff.DiffTextOpcode opcode = 5;
|
|
667
|
-
*/
|
|
668
|
-
opcode: DiffTextOpcode;
|
|
669
|
-
} | {
|
|
670
|
-
oneofKind: "argument";
|
|
671
|
-
/**
|
|
672
|
-
* @generated from protobuf field: objdiff.diff.DiffTextArgument argument = 6;
|
|
673
|
-
*/
|
|
674
|
-
argument: DiffTextArgument;
|
|
675
|
-
} | {
|
|
676
|
-
oneofKind: "branch_dest";
|
|
677
|
-
/**
|
|
678
|
-
* @generated from protobuf field: objdiff.diff.DiffTextBranchDest branch_dest = 7;
|
|
679
|
-
*/
|
|
680
|
-
branch_dest: DiffTextBranchDest;
|
|
681
|
-
} | {
|
|
682
|
-
oneofKind: "symbol";
|
|
683
|
-
/**
|
|
684
|
-
* @generated from protobuf field: objdiff.diff.DiffTextSymbol symbol = 8;
|
|
685
|
-
*/
|
|
686
|
-
symbol: DiffTextSymbol;
|
|
687
|
-
} | {
|
|
688
|
-
oneofKind: "spacing";
|
|
689
|
-
/**
|
|
690
|
-
* @generated from protobuf field: objdiff.diff.DiffTextSpacing spacing = 9;
|
|
691
|
-
*/
|
|
692
|
-
spacing: DiffTextSpacing;
|
|
693
|
-
} | {
|
|
694
|
-
oneofKind: "eol";
|
|
695
|
-
/**
|
|
696
|
-
* @generated from protobuf field: objdiff.diff.DiffTextEol eol = 10;
|
|
697
|
-
*/
|
|
698
|
-
eol: DiffTextEol;
|
|
699
|
-
} | {
|
|
700
|
-
oneofKind: undefined;
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffText
|
|
705
|
-
*/
|
|
706
|
-
declare const DiffText: DiffText$Type;
|
|
707
|
-
declare class DiffTextBasic$Type extends MessageType<DiffTextBasic> {
|
|
708
|
-
constructor();
|
|
709
|
-
create(value?: PartialMessage<DiffTextBasic>): DiffTextBasic;
|
|
710
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBasic): DiffTextBasic;
|
|
711
|
-
internalBinaryWrite(message: DiffTextBasic, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* @generated from protobuf message objdiff.diff.DiffTextBasic
|
|
715
|
-
*/
|
|
716
|
-
interface DiffTextBasic {
|
|
717
|
-
/**
|
|
718
|
-
* @generated from protobuf field: string text = 1;
|
|
719
|
-
*/
|
|
720
|
-
text: string;
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextBasic
|
|
724
|
-
*/
|
|
725
|
-
declare const DiffTextBasic: DiffTextBasic$Type;
|
|
726
|
-
declare class DiffTextBasicColor$Type extends MessageType<DiffTextBasicColor> {
|
|
727
|
-
constructor();
|
|
728
|
-
create(value?: PartialMessage<DiffTextBasicColor>): DiffTextBasicColor;
|
|
729
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBasicColor): DiffTextBasicColor;
|
|
730
|
-
internalBinaryWrite(message: DiffTextBasicColor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* @generated from protobuf message objdiff.diff.DiffTextBasicColor
|
|
734
|
-
*/
|
|
735
|
-
interface DiffTextBasicColor {
|
|
736
|
-
/**
|
|
737
|
-
* @generated from protobuf field: string text = 1;
|
|
738
|
-
*/
|
|
739
|
-
text: string;
|
|
740
|
-
/**
|
|
741
|
-
* @generated from protobuf field: uint32 index = 2;
|
|
742
|
-
*/
|
|
743
|
-
index: number;
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextBasicColor
|
|
747
|
-
*/
|
|
748
|
-
declare const DiffTextBasicColor: DiffTextBasicColor$Type;
|
|
749
|
-
declare class DiffTextLine$Type extends MessageType<DiffTextLine> {
|
|
750
|
-
constructor();
|
|
751
|
-
create(value?: PartialMessage<DiffTextLine>): DiffTextLine;
|
|
752
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextLine): DiffTextLine;
|
|
753
|
-
internalBinaryWrite(message: DiffTextLine, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* @generated from protobuf message objdiff.diff.DiffTextLine
|
|
757
|
-
*/
|
|
758
|
-
interface DiffTextLine {
|
|
759
|
-
/**
|
|
760
|
-
* @generated from protobuf field: uint32 line_number = 1;
|
|
761
|
-
*/
|
|
762
|
-
line_number: number;
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextLine
|
|
766
|
-
*/
|
|
767
|
-
declare const DiffTextLine: DiffTextLine$Type;
|
|
768
|
-
declare class DiffTextAddress$Type extends MessageType<DiffTextAddress> {
|
|
769
|
-
constructor();
|
|
770
|
-
create(value?: PartialMessage<DiffTextAddress>): DiffTextAddress;
|
|
771
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextAddress): DiffTextAddress;
|
|
772
|
-
internalBinaryWrite(message: DiffTextAddress, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* @generated from protobuf message objdiff.diff.DiffTextAddress
|
|
776
|
-
*/
|
|
777
|
-
interface DiffTextAddress {
|
|
778
|
-
/**
|
|
779
|
-
* @generated from protobuf field: uint64 address = 1;
|
|
780
|
-
*/
|
|
781
|
-
address: bigint;
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextAddress
|
|
785
|
-
*/
|
|
786
|
-
declare const DiffTextAddress: DiffTextAddress$Type;
|
|
787
|
-
declare class DiffTextOpcode$Type extends MessageType<DiffTextOpcode> {
|
|
788
|
-
constructor();
|
|
789
|
-
create(value?: PartialMessage<DiffTextOpcode>): DiffTextOpcode;
|
|
790
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextOpcode): DiffTextOpcode;
|
|
791
|
-
internalBinaryWrite(message: DiffTextOpcode, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @generated from protobuf message objdiff.diff.DiffTextOpcode
|
|
795
|
-
*/
|
|
796
|
-
interface DiffTextOpcode {
|
|
797
|
-
/**
|
|
798
|
-
* @generated from protobuf field: string mnemonic = 1;
|
|
799
|
-
*/
|
|
800
|
-
mnemonic: string;
|
|
801
|
-
/**
|
|
802
|
-
* @generated from protobuf field: uint32 opcode = 2;
|
|
803
|
-
*/
|
|
804
|
-
opcode: number;
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextOpcode
|
|
808
|
-
*/
|
|
809
|
-
declare const DiffTextOpcode: DiffTextOpcode$Type;
|
|
810
|
-
declare class DiffTextArgument$Type extends MessageType<DiffTextArgument> {
|
|
811
|
-
constructor();
|
|
812
|
-
create(value?: PartialMessage<DiffTextArgument>): DiffTextArgument;
|
|
813
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextArgument): DiffTextArgument;
|
|
814
|
-
internalBinaryWrite(message: DiffTextArgument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @generated from protobuf message objdiff.diff.DiffTextArgument
|
|
818
|
-
*/
|
|
819
|
-
interface DiffTextArgument {
|
|
820
|
-
/**
|
|
821
|
-
* @generated from protobuf field: objdiff.diff.ArgumentValue value = 1;
|
|
822
|
-
*/
|
|
823
|
-
value?: ArgumentValue;
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextArgument
|
|
827
|
-
*/
|
|
828
|
-
declare const DiffTextArgument: DiffTextArgument$Type;
|
|
829
|
-
declare class DiffTextBranchDest$Type extends MessageType<DiffTextBranchDest> {
|
|
830
|
-
constructor();
|
|
831
|
-
create(value?: PartialMessage<DiffTextBranchDest>): DiffTextBranchDest;
|
|
832
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextBranchDest): DiffTextBranchDest;
|
|
833
|
-
internalBinaryWrite(message: DiffTextBranchDest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @generated from protobuf message objdiff.diff.DiffTextBranchDest
|
|
837
|
-
*/
|
|
838
|
-
interface DiffTextBranchDest {
|
|
839
|
-
/**
|
|
840
|
-
* @generated from protobuf field: uint64 address = 1;
|
|
841
|
-
*/
|
|
842
|
-
address: bigint;
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextBranchDest
|
|
846
|
-
*/
|
|
847
|
-
declare const DiffTextBranchDest: DiffTextBranchDest$Type;
|
|
848
|
-
declare class DiffTextSymbol$Type extends MessageType<DiffTextSymbol> {
|
|
849
|
-
constructor();
|
|
850
|
-
create(value?: PartialMessage<DiffTextSymbol>): DiffTextSymbol;
|
|
851
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextSymbol): DiffTextSymbol;
|
|
852
|
-
internalBinaryWrite(message: DiffTextSymbol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* @generated from protobuf message objdiff.diff.DiffTextSymbol
|
|
856
|
-
*/
|
|
857
|
-
interface DiffTextSymbol {
|
|
858
|
-
/**
|
|
859
|
-
* @generated from protobuf field: objdiff.diff.RelocationTarget target = 1;
|
|
860
|
-
*/
|
|
861
|
-
target?: RelocationTarget;
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextSymbol
|
|
865
|
-
*/
|
|
866
|
-
declare const DiffTextSymbol: DiffTextSymbol$Type;
|
|
867
|
-
declare class DiffTextSpacing$Type extends MessageType<DiffTextSpacing> {
|
|
868
|
-
constructor();
|
|
869
|
-
create(value?: PartialMessage<DiffTextSpacing>): DiffTextSpacing;
|
|
870
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextSpacing): DiffTextSpacing;
|
|
871
|
-
internalBinaryWrite(message: DiffTextSpacing, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
872
|
-
}
|
|
873
|
-
/**
|
|
874
|
-
* @generated from protobuf message objdiff.diff.DiffTextSpacing
|
|
875
|
-
*/
|
|
876
|
-
interface DiffTextSpacing {
|
|
877
|
-
/**
|
|
878
|
-
* @generated from protobuf field: uint32 count = 1;
|
|
879
|
-
*/
|
|
880
|
-
count: number;
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextSpacing
|
|
884
|
-
*/
|
|
885
|
-
declare const DiffTextSpacing: DiffTextSpacing$Type;
|
|
886
|
-
declare class DiffTextEol$Type extends MessageType<DiffTextEol> {
|
|
887
|
-
constructor();
|
|
888
|
-
create(value?: PartialMessage<DiffTextEol>): DiffTextEol;
|
|
889
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffTextEol): DiffTextEol;
|
|
890
|
-
internalBinaryWrite(message: DiffTextEol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
891
|
-
}
|
|
892
|
-
/**
|
|
893
|
-
* @generated from protobuf message objdiff.diff.DiffTextEol
|
|
894
|
-
*/
|
|
895
|
-
interface DiffTextEol {
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffTextEol
|
|
899
|
-
*/
|
|
900
|
-
declare const DiffTextEol: DiffTextEol$Type;
|
|
901
622
|
|
|
902
|
-
/**
|
|
903
|
-
*/
|
|
904
|
-
declare enum ArmR9Usage {
|
|
905
|
-
GeneralPurpose = 0,
|
|
906
|
-
Sb = 1,
|
|
907
|
-
Tr = 2,
|
|
908
|
-
}
|
|
909
623
|
/**
|
|
910
624
|
*/
|
|
911
625
|
declare enum MipsAbi {
|
|
@@ -916,6 +630,14 @@ declare enum MipsAbi {
|
|
|
916
630
|
}
|
|
917
631
|
/**
|
|
918
632
|
*/
|
|
633
|
+
declare enum ArmArchVersion {
|
|
634
|
+
Auto = 0,
|
|
635
|
+
V4T = 1,
|
|
636
|
+
V5TE = 2,
|
|
637
|
+
V6K = 3,
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
*/
|
|
919
641
|
declare enum X86Formatter {
|
|
920
642
|
Intel = 0,
|
|
921
643
|
Gas = 1,
|
|
@@ -924,11 +646,10 @@ declare enum X86Formatter {
|
|
|
924
646
|
}
|
|
925
647
|
/**
|
|
926
648
|
*/
|
|
927
|
-
declare enum
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
V6K = 3,
|
|
649
|
+
declare enum ArmR9Usage {
|
|
650
|
+
GeneralPurpose = 0,
|
|
651
|
+
Sb = 1,
|
|
652
|
+
Tr = 2,
|
|
932
653
|
}
|
|
933
654
|
/**
|
|
934
655
|
*/
|
|
@@ -989,5 +710,53 @@ type DiffObjConfig = Omit<Partial<DiffObjConfig$1>, 'free'>;
|
|
|
989
710
|
|
|
990
711
|
declare function initialize(workerUrl?: string | URL): void;
|
|
991
712
|
declare function runDiff(left: Uint8Array | undefined, right: Uint8Array | undefined, config?: DiffObjConfig): Promise<DiffResult>;
|
|
713
|
+
type DiffText = DiffTextBasic | DiffTextBasicColor | DiffTextAddress | DiffTextLine | DiffTextOpcode | DiffTextArgument | DiffTextSymbol | DiffTextBranchDest | DiffTextSpacing;
|
|
714
|
+
type DiffTextBase = {
|
|
715
|
+
diff_index?: number;
|
|
716
|
+
};
|
|
717
|
+
type DiffTextBasic = DiffTextBase & {
|
|
718
|
+
type: 'basic';
|
|
719
|
+
text: string;
|
|
720
|
+
};
|
|
721
|
+
type DiffTextBasicColor = DiffTextBase & {
|
|
722
|
+
type: 'basic_color';
|
|
723
|
+
text: string;
|
|
724
|
+
index: number;
|
|
725
|
+
};
|
|
726
|
+
type DiffTextAddress = DiffTextBase & {
|
|
727
|
+
type: 'address';
|
|
728
|
+
address: bigint;
|
|
729
|
+
};
|
|
730
|
+
type DiffTextLine = DiffTextBase & {
|
|
731
|
+
type: 'line';
|
|
732
|
+
line_number: number;
|
|
733
|
+
};
|
|
734
|
+
type DiffTextOpcode = DiffTextBase & {
|
|
735
|
+
type: 'opcode';
|
|
736
|
+
mnemonic: string;
|
|
737
|
+
opcode: number;
|
|
738
|
+
};
|
|
739
|
+
type DiffTextArgument = DiffTextBase & {
|
|
740
|
+
type: 'argument';
|
|
741
|
+
value: ArgumentValue;
|
|
742
|
+
};
|
|
743
|
+
type DiffTextSymbol = DiffTextBase & {
|
|
744
|
+
type: 'symbol';
|
|
745
|
+
target: RelocationTarget;
|
|
746
|
+
};
|
|
747
|
+
type DiffTextBranchDest = DiffTextBase & {
|
|
748
|
+
type: 'branch_dest';
|
|
749
|
+
address: bigint;
|
|
750
|
+
};
|
|
751
|
+
type DiffTextSpacing = DiffTextBase & {
|
|
752
|
+
type: 'spacing';
|
|
753
|
+
count: number;
|
|
754
|
+
};
|
|
755
|
+
declare function oneof<T extends {
|
|
756
|
+
oneofKind: string;
|
|
757
|
+
}>(type: T): T & {
|
|
758
|
+
oneofKind: string;
|
|
759
|
+
};
|
|
760
|
+
declare function displayDiff(diff: InstructionDiff, baseAddr: bigint, cb: (text: DiffText) => void): void;
|
|
992
761
|
|
|
993
|
-
export { Argument, ArgumentRelocation, ArgumentValue, ArmArchVersion, ArmR9Usage, DataDiff, DiffKind, type DiffObjConfig, DiffResult, Instruction, InstructionBranchFrom, InstructionBranchTo, InstructionDiff, MipsAbi, MipsInstrCategory, ObjectDiff, Relocation, RelocationTarget, SectionDiff, SectionKind, Symbol, SymbolFlag, X86Formatter, initialize, runDiff };
|
|
762
|
+
export { Argument, ArgumentDiff, ArgumentRelocation, ArgumentValue, ArmArchVersion, ArmR9Usage, DataDiff, DiffKind, type DiffObjConfig, DiffResult, type DiffText, type DiffTextAddress, type DiffTextArgument, type DiffTextBasic, type DiffTextBasicColor, type DiffTextBranchDest, type DiffTextLine, type DiffTextOpcode, type DiffTextSpacing, type DiffTextSymbol, FunctionDiff, Instruction, InstructionBranchFrom, InstructionBranchTo, InstructionDiff, MipsAbi, MipsInstrCategory, ObjectDiff, Relocation, RelocationTarget, SectionDiff, SectionKind, Symbol, SymbolFlag, X86Formatter, displayDiff, initialize, oneof, runDiff };
|