objdiff-wasm 2.0.0 → 3.0.0-alpha.2
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/config-schema.json +264 -0
- package/dist/interfaces/objdiff-core-diff.d.ts +33 -0
- package/dist/interfaces/objdiff-core-display.d.ts +224 -0
- package/dist/interfaces/wasi-logging-logging.d.ts +18 -0
- package/dist/objdiff.core.wasm +0 -0
- package/dist/objdiff.d.ts +7 -0
- package/dist/objdiff.js +1351 -0
- package/dist/wasi-logging.js +24 -0
- package/package.json +11 -18
- package/dist/main.d.ts +0 -698
- package/dist/main.js +0 -1410
- package/dist/main.js.map +0 -1
- package/dist/objdiff_core_bg.wasm +0 -0
- package/dist/worker.d.ts +0 -56
- package/dist/worker.js +0 -3
- package/dist/worker.js.map +0 -1
package/dist/main.d.ts
DELETED
|
@@ -1,698 +0,0 @@
|
|
|
1
|
-
import { MessageType, PartialMessage, IBinaryReader, BinaryReadOptions, IBinaryWriter, BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Symbol visibility flags
|
|
5
|
-
*
|
|
6
|
-
* @generated from protobuf enum objdiff.diff.SymbolFlag
|
|
7
|
-
*/
|
|
8
|
-
declare enum SymbolFlag {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from protobuf enum value: SYMBOL_NONE = 0;
|
|
11
|
-
*/
|
|
12
|
-
SYMBOL_NONE = 0,
|
|
13
|
-
/**
|
|
14
|
-
* @generated from protobuf enum value: SYMBOL_GLOBAL = 1;
|
|
15
|
-
*/
|
|
16
|
-
SYMBOL_GLOBAL = 1,
|
|
17
|
-
/**
|
|
18
|
-
* @generated from protobuf enum value: SYMBOL_LOCAL = 2;
|
|
19
|
-
*/
|
|
20
|
-
SYMBOL_LOCAL = 2,
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf enum value: SYMBOL_WEAK = 3;
|
|
23
|
-
*/
|
|
24
|
-
SYMBOL_WEAK = 3,
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf enum value: SYMBOL_COMMON = 4;
|
|
27
|
-
*/
|
|
28
|
-
SYMBOL_COMMON = 4,
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf enum value: SYMBOL_HIDDEN = 5;
|
|
31
|
-
*/
|
|
32
|
-
SYMBOL_HIDDEN = 5
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf enum objdiff.diff.DiffKind
|
|
36
|
-
*/
|
|
37
|
-
declare enum DiffKind {
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf enum value: DIFF_NONE = 0;
|
|
40
|
-
*/
|
|
41
|
-
DIFF_NONE = 0,
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf enum value: DIFF_REPLACE = 1;
|
|
44
|
-
*/
|
|
45
|
-
DIFF_REPLACE = 1,
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf enum value: DIFF_DELETE = 2;
|
|
48
|
-
*/
|
|
49
|
-
DIFF_DELETE = 2,
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf enum value: DIFF_INSERT = 3;
|
|
52
|
-
*/
|
|
53
|
-
DIFF_INSERT = 3,
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf enum value: DIFF_OP_MISMATCH = 4;
|
|
56
|
-
*/
|
|
57
|
-
DIFF_OP_MISMATCH = 4,
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf enum value: DIFF_ARG_MISMATCH = 5;
|
|
60
|
-
*/
|
|
61
|
-
DIFF_ARG_MISMATCH = 5
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @generated from protobuf enum objdiff.diff.SectionKind
|
|
65
|
-
*/
|
|
66
|
-
declare enum SectionKind {
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf enum value: SECTION_UNKNOWN = 0;
|
|
69
|
-
*/
|
|
70
|
-
SECTION_UNKNOWN = 0,
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf enum value: SECTION_TEXT = 1;
|
|
73
|
-
*/
|
|
74
|
-
SECTION_TEXT = 1,
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf enum value: SECTION_DATA = 2;
|
|
77
|
-
*/
|
|
78
|
-
SECTION_DATA = 2,
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf enum value: SECTION_BSS = 3;
|
|
81
|
-
*/
|
|
82
|
-
SECTION_BSS = 3,
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf enum value: SECTION_COMMON = 4;
|
|
85
|
-
*/
|
|
86
|
-
SECTION_COMMON = 4
|
|
87
|
-
}
|
|
88
|
-
declare class Symbol$Type extends MessageType<Symbol> {
|
|
89
|
-
constructor();
|
|
90
|
-
create(value?: PartialMessage<Symbol>): Symbol;
|
|
91
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Symbol): Symbol;
|
|
92
|
-
internalBinaryWrite(message: Symbol, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* A symbol
|
|
96
|
-
*
|
|
97
|
-
* @generated from protobuf message objdiff.diff.Symbol
|
|
98
|
-
*/
|
|
99
|
-
interface Symbol {
|
|
100
|
-
/**
|
|
101
|
-
* Name of the symbol
|
|
102
|
-
*
|
|
103
|
-
* @generated from protobuf field: string name = 1;
|
|
104
|
-
*/
|
|
105
|
-
name: string;
|
|
106
|
-
/**
|
|
107
|
-
* Demangled name of the symbol
|
|
108
|
-
*
|
|
109
|
-
* @generated from protobuf field: optional string demangled_name = 2;
|
|
110
|
-
*/
|
|
111
|
-
demangled_name?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Symbol address
|
|
114
|
-
*
|
|
115
|
-
* @generated from protobuf field: uint64 address = 3;
|
|
116
|
-
*/
|
|
117
|
-
address: bigint;
|
|
118
|
-
/**
|
|
119
|
-
* Symbol size
|
|
120
|
-
*
|
|
121
|
-
* @generated from protobuf field: uint64 size = 4;
|
|
122
|
-
*/
|
|
123
|
-
size: bigint;
|
|
124
|
-
/**
|
|
125
|
-
* Bitmask of SymbolFlag
|
|
126
|
-
*
|
|
127
|
-
* @generated from protobuf field: uint32 flags = 5;
|
|
128
|
-
*/
|
|
129
|
-
flags: number;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @generated MessageType for protobuf message objdiff.diff.Symbol
|
|
133
|
-
*/
|
|
134
|
-
declare const Symbol: Symbol$Type;
|
|
135
|
-
declare class Instruction$Type extends MessageType<Instruction> {
|
|
136
|
-
constructor();
|
|
137
|
-
create(value?: PartialMessage<Instruction>): Instruction;
|
|
138
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Instruction): Instruction;
|
|
139
|
-
internalBinaryWrite(message: Instruction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* A single parsed instruction
|
|
143
|
-
*
|
|
144
|
-
* @generated from protobuf message objdiff.diff.Instruction
|
|
145
|
-
*/
|
|
146
|
-
interface Instruction {
|
|
147
|
-
/**
|
|
148
|
-
* Instruction address
|
|
149
|
-
*
|
|
150
|
-
* @generated from protobuf field: uint64 address = 1;
|
|
151
|
-
*/
|
|
152
|
-
address: bigint;
|
|
153
|
-
/**
|
|
154
|
-
* Instruction size
|
|
155
|
-
*
|
|
156
|
-
* @generated from protobuf field: uint32 size = 2;
|
|
157
|
-
*/
|
|
158
|
-
size: number;
|
|
159
|
-
/**
|
|
160
|
-
* Instruction opcode
|
|
161
|
-
*
|
|
162
|
-
* @generated from protobuf field: uint32 opcode = 3;
|
|
163
|
-
*/
|
|
164
|
-
opcode: number;
|
|
165
|
-
/**
|
|
166
|
-
* Instruction mnemonic
|
|
167
|
-
*
|
|
168
|
-
* @generated from protobuf field: string mnemonic = 4;
|
|
169
|
-
*/
|
|
170
|
-
mnemonic: string;
|
|
171
|
-
/**
|
|
172
|
-
* Instruction formatted string
|
|
173
|
-
*
|
|
174
|
-
* @generated from protobuf field: string formatted = 5;
|
|
175
|
-
*/
|
|
176
|
-
formatted: string;
|
|
177
|
-
/**
|
|
178
|
-
* Original (unsimplified) instruction string
|
|
179
|
-
*
|
|
180
|
-
* @generated from protobuf field: optional string original = 6;
|
|
181
|
-
*/
|
|
182
|
-
original?: string;
|
|
183
|
-
/**
|
|
184
|
-
* Instruction arguments
|
|
185
|
-
*
|
|
186
|
-
* @generated from protobuf field: repeated objdiff.diff.Argument arguments = 7;
|
|
187
|
-
*/
|
|
188
|
-
arguments: Argument[];
|
|
189
|
-
/**
|
|
190
|
-
* Instruction relocation
|
|
191
|
-
*
|
|
192
|
-
* @generated from protobuf field: optional objdiff.diff.Relocation relocation = 8;
|
|
193
|
-
*/
|
|
194
|
-
relocation?: Relocation;
|
|
195
|
-
/**
|
|
196
|
-
* Instruction branch destination
|
|
197
|
-
*
|
|
198
|
-
* @generated from protobuf field: optional uint64 branch_dest = 9;
|
|
199
|
-
*/
|
|
200
|
-
branch_dest?: bigint;
|
|
201
|
-
/**
|
|
202
|
-
* Instruction line number
|
|
203
|
-
*
|
|
204
|
-
* @generated from protobuf field: optional uint32 line_number = 10;
|
|
205
|
-
*/
|
|
206
|
-
line_number?: number;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* @generated MessageType for protobuf message objdiff.diff.Instruction
|
|
210
|
-
*/
|
|
211
|
-
declare const Instruction: Instruction$Type;
|
|
212
|
-
declare class Argument$Type extends MessageType<Argument> {
|
|
213
|
-
constructor();
|
|
214
|
-
create(value?: PartialMessage<Argument>): Argument;
|
|
215
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Argument): Argument;
|
|
216
|
-
internalBinaryWrite(message: Argument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* An instruction argument
|
|
220
|
-
*
|
|
221
|
-
* @generated from protobuf message objdiff.diff.Argument
|
|
222
|
-
*/
|
|
223
|
-
interface Argument {
|
|
224
|
-
/**
|
|
225
|
-
* @generated from protobuf oneof: value
|
|
226
|
-
*/
|
|
227
|
-
value: {
|
|
228
|
-
oneofKind: "plain_text";
|
|
229
|
-
/**
|
|
230
|
-
* Plain text
|
|
231
|
-
*
|
|
232
|
-
* @generated from protobuf field: string plain_text = 1;
|
|
233
|
-
*/
|
|
234
|
-
plain_text: string;
|
|
235
|
-
} | {
|
|
236
|
-
oneofKind: "argument";
|
|
237
|
-
/**
|
|
238
|
-
* Value
|
|
239
|
-
*
|
|
240
|
-
* @generated from protobuf field: objdiff.diff.ArgumentValue argument = 2;
|
|
241
|
-
*/
|
|
242
|
-
argument: ArgumentValue;
|
|
243
|
-
} | {
|
|
244
|
-
oneofKind: "relocation";
|
|
245
|
-
/**
|
|
246
|
-
* Relocation
|
|
247
|
-
*
|
|
248
|
-
* @generated from protobuf field: objdiff.diff.ArgumentRelocation relocation = 3;
|
|
249
|
-
*/
|
|
250
|
-
relocation: ArgumentRelocation;
|
|
251
|
-
} | {
|
|
252
|
-
oneofKind: "branch_dest";
|
|
253
|
-
/**
|
|
254
|
-
* Branch destination
|
|
255
|
-
*
|
|
256
|
-
* @generated from protobuf field: uint64 branch_dest = 4;
|
|
257
|
-
*/
|
|
258
|
-
branch_dest: bigint;
|
|
259
|
-
} | {
|
|
260
|
-
oneofKind: undefined;
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @generated MessageType for protobuf message objdiff.diff.Argument
|
|
265
|
-
*/
|
|
266
|
-
declare const Argument: Argument$Type;
|
|
267
|
-
declare class ArgumentValue$Type extends MessageType<ArgumentValue> {
|
|
268
|
-
constructor();
|
|
269
|
-
create(value?: PartialMessage<ArgumentValue>): ArgumentValue;
|
|
270
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgumentValue): ArgumentValue;
|
|
271
|
-
internalBinaryWrite(message: ArgumentValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* An instruction argument value
|
|
275
|
-
*
|
|
276
|
-
* @generated from protobuf message objdiff.diff.ArgumentValue
|
|
277
|
-
*/
|
|
278
|
-
interface ArgumentValue {
|
|
279
|
-
/**
|
|
280
|
-
* @generated from protobuf oneof: value
|
|
281
|
-
*/
|
|
282
|
-
value: {
|
|
283
|
-
oneofKind: "signed";
|
|
284
|
-
/**
|
|
285
|
-
* Signed integer
|
|
286
|
-
*
|
|
287
|
-
* @generated from protobuf field: int64 signed = 1;
|
|
288
|
-
*/
|
|
289
|
-
signed: bigint;
|
|
290
|
-
} | {
|
|
291
|
-
oneofKind: "unsigned";
|
|
292
|
-
/**
|
|
293
|
-
* Unsigned integer
|
|
294
|
-
*
|
|
295
|
-
* @generated from protobuf field: uint64 unsigned = 2;
|
|
296
|
-
*/
|
|
297
|
-
unsigned: bigint;
|
|
298
|
-
} | {
|
|
299
|
-
oneofKind: "opaque";
|
|
300
|
-
/**
|
|
301
|
-
* Opaque value
|
|
302
|
-
*
|
|
303
|
-
* @generated from protobuf field: string opaque = 3;
|
|
304
|
-
*/
|
|
305
|
-
opaque: string;
|
|
306
|
-
} | {
|
|
307
|
-
oneofKind: undefined;
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* @generated MessageType for protobuf message objdiff.diff.ArgumentValue
|
|
312
|
-
*/
|
|
313
|
-
declare const ArgumentValue: ArgumentValue$Type;
|
|
314
|
-
declare class ArgumentRelocation$Type extends MessageType<ArgumentRelocation> {
|
|
315
|
-
constructor();
|
|
316
|
-
create(value?: PartialMessage<ArgumentRelocation>): ArgumentRelocation;
|
|
317
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArgumentRelocation): ArgumentRelocation;
|
|
318
|
-
internalBinaryWrite(message: ArgumentRelocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Marker type for relocation arguments
|
|
322
|
-
*
|
|
323
|
-
* @generated from protobuf message objdiff.diff.ArgumentRelocation
|
|
324
|
-
*/
|
|
325
|
-
interface ArgumentRelocation {
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* @generated MessageType for protobuf message objdiff.diff.ArgumentRelocation
|
|
329
|
-
*/
|
|
330
|
-
declare const ArgumentRelocation: ArgumentRelocation$Type;
|
|
331
|
-
declare class Relocation$Type extends MessageType<Relocation> {
|
|
332
|
-
constructor();
|
|
333
|
-
create(value?: PartialMessage<Relocation>): Relocation;
|
|
334
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Relocation): Relocation;
|
|
335
|
-
internalBinaryWrite(message: Relocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* @generated from protobuf message objdiff.diff.Relocation
|
|
339
|
-
*/
|
|
340
|
-
interface Relocation {
|
|
341
|
-
/**
|
|
342
|
-
* @generated from protobuf field: uint32 type = 1;
|
|
343
|
-
*/
|
|
344
|
-
type: number;
|
|
345
|
-
/**
|
|
346
|
-
* @generated from protobuf field: string type_name = 2;
|
|
347
|
-
*/
|
|
348
|
-
type_name: string;
|
|
349
|
-
/**
|
|
350
|
-
* @generated from protobuf field: objdiff.diff.RelocationTarget target = 3;
|
|
351
|
-
*/
|
|
352
|
-
target?: RelocationTarget;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @generated MessageType for protobuf message objdiff.diff.Relocation
|
|
356
|
-
*/
|
|
357
|
-
declare const Relocation: Relocation$Type;
|
|
358
|
-
declare class RelocationTarget$Type extends MessageType<RelocationTarget> {
|
|
359
|
-
constructor();
|
|
360
|
-
create(value?: PartialMessage<RelocationTarget>): RelocationTarget;
|
|
361
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RelocationTarget): RelocationTarget;
|
|
362
|
-
internalBinaryWrite(message: RelocationTarget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* @generated from protobuf message objdiff.diff.RelocationTarget
|
|
366
|
-
*/
|
|
367
|
-
interface RelocationTarget {
|
|
368
|
-
/**
|
|
369
|
-
* @generated from protobuf field: objdiff.diff.Symbol symbol = 1;
|
|
370
|
-
*/
|
|
371
|
-
symbol?: Symbol;
|
|
372
|
-
/**
|
|
373
|
-
* @generated from protobuf field: int64 addend = 2;
|
|
374
|
-
*/
|
|
375
|
-
addend: bigint;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @generated MessageType for protobuf message objdiff.diff.RelocationTarget
|
|
379
|
-
*/
|
|
380
|
-
declare const RelocationTarget: RelocationTarget$Type;
|
|
381
|
-
declare class InstructionDiff$Type extends MessageType<InstructionDiff> {
|
|
382
|
-
constructor();
|
|
383
|
-
create(value?: PartialMessage<InstructionDiff>): InstructionDiff;
|
|
384
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionDiff): InstructionDiff;
|
|
385
|
-
internalBinaryWrite(message: InstructionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* @generated from protobuf message objdiff.diff.InstructionDiff
|
|
389
|
-
*/
|
|
390
|
-
interface InstructionDiff {
|
|
391
|
-
/**
|
|
392
|
-
* @generated from protobuf field: objdiff.diff.DiffKind diff_kind = 1;
|
|
393
|
-
*/
|
|
394
|
-
diff_kind: DiffKind;
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf field: optional objdiff.diff.Instruction instruction = 2;
|
|
397
|
-
*/
|
|
398
|
-
instruction?: Instruction;
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf field: optional objdiff.diff.InstructionBranchFrom branch_from = 3;
|
|
401
|
-
*/
|
|
402
|
-
branch_from?: InstructionBranchFrom;
|
|
403
|
-
/**
|
|
404
|
-
* @generated from protobuf field: optional objdiff.diff.InstructionBranchTo branch_to = 4;
|
|
405
|
-
*/
|
|
406
|
-
branch_to?: InstructionBranchTo;
|
|
407
|
-
/**
|
|
408
|
-
* @generated from protobuf field: repeated objdiff.diff.ArgumentDiff arg_diff = 5;
|
|
409
|
-
*/
|
|
410
|
-
arg_diff: ArgumentDiff[];
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* @generated MessageType for protobuf message objdiff.diff.InstructionDiff
|
|
414
|
-
*/
|
|
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;
|
|
435
|
-
declare class InstructionBranchFrom$Type extends MessageType<InstructionBranchFrom> {
|
|
436
|
-
constructor();
|
|
437
|
-
create(value?: PartialMessage<InstructionBranchFrom>): InstructionBranchFrom;
|
|
438
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionBranchFrom): InstructionBranchFrom;
|
|
439
|
-
internalBinaryWrite(message: InstructionBranchFrom, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* @generated from protobuf message objdiff.diff.InstructionBranchFrom
|
|
443
|
-
*/
|
|
444
|
-
interface InstructionBranchFrom {
|
|
445
|
-
/**
|
|
446
|
-
* @generated from protobuf field: repeated uint32 instruction_index = 1;
|
|
447
|
-
*/
|
|
448
|
-
instruction_index: number[];
|
|
449
|
-
/**
|
|
450
|
-
* @generated from protobuf field: uint32 branch_index = 2;
|
|
451
|
-
*/
|
|
452
|
-
branch_index: number;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* @generated MessageType for protobuf message objdiff.diff.InstructionBranchFrom
|
|
456
|
-
*/
|
|
457
|
-
declare const InstructionBranchFrom: InstructionBranchFrom$Type;
|
|
458
|
-
declare class InstructionBranchTo$Type extends MessageType<InstructionBranchTo> {
|
|
459
|
-
constructor();
|
|
460
|
-
create(value?: PartialMessage<InstructionBranchTo>): InstructionBranchTo;
|
|
461
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstructionBranchTo): InstructionBranchTo;
|
|
462
|
-
internalBinaryWrite(message: InstructionBranchTo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
463
|
-
}
|
|
464
|
-
/**
|
|
465
|
-
* @generated from protobuf message objdiff.diff.InstructionBranchTo
|
|
466
|
-
*/
|
|
467
|
-
interface InstructionBranchTo {
|
|
468
|
-
/**
|
|
469
|
-
* @generated from protobuf field: uint32 instruction_index = 1;
|
|
470
|
-
*/
|
|
471
|
-
instruction_index: number;
|
|
472
|
-
/**
|
|
473
|
-
* @generated from protobuf field: uint32 branch_index = 2;
|
|
474
|
-
*/
|
|
475
|
-
branch_index: number;
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* @generated MessageType for protobuf message objdiff.diff.InstructionBranchTo
|
|
479
|
-
*/
|
|
480
|
-
declare const InstructionBranchTo: InstructionBranchTo$Type;
|
|
481
|
-
declare class FunctionDiff$Type extends MessageType<FunctionDiff> {
|
|
482
|
-
constructor();
|
|
483
|
-
create(value?: PartialMessage<FunctionDiff>): FunctionDiff;
|
|
484
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FunctionDiff): FunctionDiff;
|
|
485
|
-
internalBinaryWrite(message: FunctionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* @generated from protobuf message objdiff.diff.FunctionDiff
|
|
489
|
-
*/
|
|
490
|
-
interface FunctionDiff {
|
|
491
|
-
/**
|
|
492
|
-
* @generated from protobuf field: objdiff.diff.Symbol symbol = 1;
|
|
493
|
-
*/
|
|
494
|
-
symbol?: Symbol;
|
|
495
|
-
/**
|
|
496
|
-
* @generated from protobuf field: repeated objdiff.diff.InstructionDiff instructions = 2;
|
|
497
|
-
*/
|
|
498
|
-
instructions: InstructionDiff[];
|
|
499
|
-
/**
|
|
500
|
-
* @generated from protobuf field: optional float match_percent = 3;
|
|
501
|
-
*/
|
|
502
|
-
match_percent?: number;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* @generated MessageType for protobuf message objdiff.diff.FunctionDiff
|
|
506
|
-
*/
|
|
507
|
-
declare const FunctionDiff: FunctionDiff$Type;
|
|
508
|
-
declare class DataDiff$Type extends MessageType<DataDiff> {
|
|
509
|
-
constructor();
|
|
510
|
-
create(value?: PartialMessage<DataDiff>): DataDiff;
|
|
511
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DataDiff): DataDiff;
|
|
512
|
-
internalBinaryWrite(message: DataDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
* @generated from protobuf message objdiff.diff.DataDiff
|
|
516
|
-
*/
|
|
517
|
-
interface DataDiff {
|
|
518
|
-
/**
|
|
519
|
-
* @generated from protobuf field: objdiff.diff.DiffKind kind = 1;
|
|
520
|
-
*/
|
|
521
|
-
kind: DiffKind;
|
|
522
|
-
/**
|
|
523
|
-
* @generated from protobuf field: bytes data = 2;
|
|
524
|
-
*/
|
|
525
|
-
data: Uint8Array;
|
|
526
|
-
/**
|
|
527
|
-
* May be larger than data
|
|
528
|
-
*
|
|
529
|
-
* @generated from protobuf field: uint64 size = 3;
|
|
530
|
-
*/
|
|
531
|
-
size: bigint;
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* @generated MessageType for protobuf message objdiff.diff.DataDiff
|
|
535
|
-
*/
|
|
536
|
-
declare const DataDiff: DataDiff$Type;
|
|
537
|
-
declare class SectionDiff$Type extends MessageType<SectionDiff> {
|
|
538
|
-
constructor();
|
|
539
|
-
create(value?: PartialMessage<SectionDiff>): SectionDiff;
|
|
540
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SectionDiff): SectionDiff;
|
|
541
|
-
internalBinaryWrite(message: SectionDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
542
|
-
}
|
|
543
|
-
/**
|
|
544
|
-
* @generated from protobuf message objdiff.diff.SectionDiff
|
|
545
|
-
*/
|
|
546
|
-
interface SectionDiff {
|
|
547
|
-
/**
|
|
548
|
-
* @generated from protobuf field: string name = 1;
|
|
549
|
-
*/
|
|
550
|
-
name: string;
|
|
551
|
-
/**
|
|
552
|
-
* @generated from protobuf field: objdiff.diff.SectionKind kind = 2;
|
|
553
|
-
*/
|
|
554
|
-
kind: SectionKind;
|
|
555
|
-
/**
|
|
556
|
-
* @generated from protobuf field: uint64 size = 3;
|
|
557
|
-
*/
|
|
558
|
-
size: bigint;
|
|
559
|
-
/**
|
|
560
|
-
* @generated from protobuf field: uint64 address = 4;
|
|
561
|
-
*/
|
|
562
|
-
address: bigint;
|
|
563
|
-
/**
|
|
564
|
-
* @generated from protobuf field: repeated objdiff.diff.FunctionDiff functions = 5;
|
|
565
|
-
*/
|
|
566
|
-
functions: FunctionDiff[];
|
|
567
|
-
/**
|
|
568
|
-
* @generated from protobuf field: repeated objdiff.diff.DataDiff data = 6;
|
|
569
|
-
*/
|
|
570
|
-
data: DataDiff[];
|
|
571
|
-
/**
|
|
572
|
-
* @generated from protobuf field: optional float match_percent = 7;
|
|
573
|
-
*/
|
|
574
|
-
match_percent?: number;
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* @generated MessageType for protobuf message objdiff.diff.SectionDiff
|
|
578
|
-
*/
|
|
579
|
-
declare const SectionDiff: SectionDiff$Type;
|
|
580
|
-
declare class ObjectDiff$Type extends MessageType<ObjectDiff> {
|
|
581
|
-
constructor();
|
|
582
|
-
create(value?: PartialMessage<ObjectDiff>): ObjectDiff;
|
|
583
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ObjectDiff): ObjectDiff;
|
|
584
|
-
internalBinaryWrite(message: ObjectDiff, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* @generated from protobuf message objdiff.diff.ObjectDiff
|
|
588
|
-
*/
|
|
589
|
-
interface ObjectDiff {
|
|
590
|
-
/**
|
|
591
|
-
* @generated from protobuf field: repeated objdiff.diff.SectionDiff sections = 1;
|
|
592
|
-
*/
|
|
593
|
-
sections: SectionDiff[];
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* @generated MessageType for protobuf message objdiff.diff.ObjectDiff
|
|
597
|
-
*/
|
|
598
|
-
declare const ObjectDiff: ObjectDiff$Type;
|
|
599
|
-
declare class DiffResult$Type extends MessageType<DiffResult> {
|
|
600
|
-
constructor();
|
|
601
|
-
create(value?: PartialMessage<DiffResult>): DiffResult;
|
|
602
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DiffResult): DiffResult;
|
|
603
|
-
internalBinaryWrite(message: DiffResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* @generated from protobuf message objdiff.diff.DiffResult
|
|
607
|
-
*/
|
|
608
|
-
interface DiffResult {
|
|
609
|
-
/**
|
|
610
|
-
* @generated from protobuf field: optional objdiff.diff.ObjectDiff left = 1;
|
|
611
|
-
*/
|
|
612
|
-
left?: ObjectDiff;
|
|
613
|
-
/**
|
|
614
|
-
* @generated from protobuf field: optional objdiff.diff.ObjectDiff right = 2;
|
|
615
|
-
*/
|
|
616
|
-
right?: ObjectDiff;
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* @generated MessageType for protobuf message objdiff.diff.DiffResult
|
|
620
|
-
*/
|
|
621
|
-
declare const DiffResult: DiffResult$Type;
|
|
622
|
-
|
|
623
|
-
interface DiffObjConfig {
|
|
624
|
-
relax_reloc_diffs?: boolean;
|
|
625
|
-
space_between_args?: boolean;
|
|
626
|
-
combine_data_sections?: boolean;
|
|
627
|
-
x86_formatter?: X86Formatter;
|
|
628
|
-
mips_abi?: MipsAbi;
|
|
629
|
-
mips_instr_category?: MipsInstrCategory;
|
|
630
|
-
arm_arch_version?: ArmArchVersion;
|
|
631
|
-
arm_unified_syntax?: boolean;
|
|
632
|
-
arm_av_registers?: boolean;
|
|
633
|
-
arm_r9_usage?: ArmR9Usage;
|
|
634
|
-
arm_sl_usage?: boolean;
|
|
635
|
-
arm_fp_usage?: boolean;
|
|
636
|
-
arm_ip_usage?: boolean;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
type ArmR9Usage = "GeneralPurpose" | "Sb" | "Tr";
|
|
640
|
-
|
|
641
|
-
type ArmArchVersion = "Auto" | "V4T" | "V5TE" | "V6K";
|
|
642
|
-
|
|
643
|
-
type MipsInstrCategory = "Auto" | "Cpu" | "Rsp" | "R3000Gte" | "R4000Allegrex" | "R5900";
|
|
644
|
-
|
|
645
|
-
type MipsAbi = "Auto" | "O32" | "N32" | "N64";
|
|
646
|
-
|
|
647
|
-
type X86Formatter = "Intel" | "Gas" | "Nasm" | "Masm";
|
|
648
|
-
|
|
649
|
-
declare function initialize(data?: {
|
|
650
|
-
workerUrl?: string | URL;
|
|
651
|
-
wasmUrl?: string | URL;
|
|
652
|
-
}): Promise<Worker>;
|
|
653
|
-
declare function runDiff(left: Uint8Array | undefined, right: Uint8Array | undefined, config?: DiffObjConfig): Promise<DiffResult>;
|
|
654
|
-
type DiffText = DiffTextBasic | DiffTextBasicColor | DiffTextAddress | DiffTextLine | DiffTextOpcode | DiffTextArgument | DiffTextSymbol | DiffTextBranchDest | DiffTextSpacing;
|
|
655
|
-
type DiffTextBase = {
|
|
656
|
-
diff_index?: number;
|
|
657
|
-
};
|
|
658
|
-
type DiffTextBasic = DiffTextBase & {
|
|
659
|
-
type: 'basic';
|
|
660
|
-
text: string;
|
|
661
|
-
};
|
|
662
|
-
type DiffTextBasicColor = DiffTextBase & {
|
|
663
|
-
type: 'basic_color';
|
|
664
|
-
text: string;
|
|
665
|
-
index: number;
|
|
666
|
-
};
|
|
667
|
-
type DiffTextAddress = DiffTextBase & {
|
|
668
|
-
type: 'address';
|
|
669
|
-
address: bigint;
|
|
670
|
-
};
|
|
671
|
-
type DiffTextLine = DiffTextBase & {
|
|
672
|
-
type: 'line';
|
|
673
|
-
line_number: number;
|
|
674
|
-
};
|
|
675
|
-
type DiffTextOpcode = DiffTextBase & {
|
|
676
|
-
type: 'opcode';
|
|
677
|
-
mnemonic: string;
|
|
678
|
-
opcode: number;
|
|
679
|
-
};
|
|
680
|
-
type DiffTextArgument = DiffTextBase & {
|
|
681
|
-
type: 'argument';
|
|
682
|
-
value: ArgumentValue;
|
|
683
|
-
};
|
|
684
|
-
type DiffTextSymbol = DiffTextBase & {
|
|
685
|
-
type: 'symbol';
|
|
686
|
-
target: RelocationTarget;
|
|
687
|
-
};
|
|
688
|
-
type DiffTextBranchDest = DiffTextBase & {
|
|
689
|
-
type: 'branch_dest';
|
|
690
|
-
address: bigint;
|
|
691
|
-
};
|
|
692
|
-
type DiffTextSpacing = DiffTextBase & {
|
|
693
|
-
type: 'spacing';
|
|
694
|
-
count: number;
|
|
695
|
-
};
|
|
696
|
-
declare function displayDiff(diff: InstructionDiff, baseAddr: bigint, cb: (text: DiffText) => void): void;
|
|
697
|
-
|
|
698
|
-
export { Argument, ArgumentDiff, ArgumentRelocation, ArgumentValue, type ArmArchVersion, type 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, type MipsAbi, type MipsInstrCategory, ObjectDiff, Relocation, RelocationTarget, SectionDiff, SectionKind, Symbol, SymbolFlag, type X86Formatter, displayDiff, initialize, runDiff };
|