@futpib/parser 1.0.1 → 1.0.3
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/.github/copilot-instructions.md +149 -0
- package/.github/workflows/copilot-setup-steps.yml +18 -0
- package/.github/workflows/main.yml +29 -8
- package/.yarn/releases/yarn-4.9.4.cjs +942 -0
- package/.yarnrc.yml +1 -1
- package/build/allSettledStream.js +32 -14
- package/build/allSettledStream.test.js +32 -0
- package/build/androidPackage.d.ts +39 -0
- package/build/androidPackageParser.d.ts +17 -0
- package/build/androidPackageParser.js +185 -0
- package/build/androidPackageParser.test.js +22 -0
- package/build/androidPackageUnparser.d.ts +4 -0
- package/build/androidPackageUnparser.js +94 -0
- package/build/androidPackageUnparser.test.js +26 -0
- package/build/arbitrarilySlicedAsyncInterable.d.ts +3 -1
- package/build/arbitrarilySlicedAsyncInterable.js +3 -3
- package/build/arbitrarilySlicedAsyncInterator.js +2 -1
- package/build/arbitraryDalvikBytecode.d.ts +4 -0
- package/build/arbitraryDalvikBytecode.js +640 -0
- package/build/arbitraryDalvikExecutable.d.ts +3 -0
- package/build/arbitraryDalvikExecutable.js +282 -0
- package/build/arbitraryDosDateTime.js +1 -0
- package/build/arbitraryZipStream.js +1 -1
- package/build/arrayParser.js +2 -2
- package/build/arrayParser.test.js +3 -3
- package/build/arrayUnparser.d.ts +1 -1
- package/build/backsmali.d.ts +3 -0
- package/build/backsmali.js +50 -0
- package/build/bsonParser.js +6 -2
- package/build/customInvariant.d.ts +2 -1
- package/build/customInvariant.js +4 -6
- package/build/dalvikBytecodeParser/formatParsers.d.ts +171 -0
- package/build/dalvikBytecodeParser/formatParsers.js +304 -0
- package/build/dalvikBytecodeParser/formatSizes.d.ts +34 -0
- package/build/dalvikBytecodeParser/formatSizes.js +34 -0
- package/build/dalvikBytecodeParser/operationFormats.d.ts +225 -0
- package/build/dalvikBytecodeParser/operationFormats.js +225 -0
- package/build/dalvikBytecodeParser.d.ts +1207 -0
- package/build/dalvikBytecodeParser.js +1289 -0
- package/build/dalvikBytecodeUnparser/formatUnparsers.d.ts +152 -0
- package/build/dalvikBytecodeUnparser/formatUnparsers.js +225 -0
- package/build/dalvikBytecodeUnparser.d.ts +3 -0
- package/build/dalvikBytecodeUnparser.js +642 -0
- package/build/dalvikBytecodeUnparser.test.js +25 -0
- package/build/dalvikExecutable.d.ts +215 -0
- package/build/dalvikExecutable.js +56 -0
- package/build/dalvikExecutableParser/stringSyntaxParser.d.ts +4 -0
- package/build/dalvikExecutableParser/stringSyntaxParser.js +76 -0
- package/build/dalvikExecutableParser/typeParsers.d.ts +11 -0
- package/build/dalvikExecutableParser/typeParsers.js +39 -0
- package/build/dalvikExecutableParser/typedNumbers.d.ts +106 -0
- package/build/dalvikExecutableParser/typedNumbers.js +18 -0
- package/build/dalvikExecutableParser.d.ts +5 -0
- package/build/dalvikExecutableParser.js +1757 -0
- package/build/dalvikExecutableParser.test.js +72 -0
- package/build/dalvikExecutableParserAgainstSmaliParser.test.js +275 -0
- package/build/dalvikExecutableUnparser/annotationUnparsers.d.ts +14 -0
- package/build/dalvikExecutableUnparser/annotationUnparsers.js +97 -0
- package/build/dalvikExecutableUnparser/poolBuilders.d.ts +49 -0
- package/build/dalvikExecutableUnparser/poolBuilders.js +140 -0
- package/build/dalvikExecutableUnparser/poolScanners.d.ts +4 -0
- package/build/dalvikExecutableUnparser/poolScanners.js +220 -0
- package/build/dalvikExecutableUnparser/sectionUnparsers.d.ts +25 -0
- package/build/dalvikExecutableUnparser/sectionUnparsers.js +581 -0
- package/build/dalvikExecutableUnparser/utils.d.ts +10 -0
- package/build/dalvikExecutableUnparser/utils.js +108 -0
- package/build/dalvikExecutableUnparser.d.ts +4 -0
- package/build/dalvikExecutableUnparser.js +406 -0
- package/build/dalvikExecutableUnparser.test.js +31 -0
- package/build/debugLogInputParser.d.ts +4 -0
- package/build/debugLogInputParser.js +16 -0
- package/build/debugLogParser.js +14 -3
- package/build/disjunctionParser.d.ts +2 -1
- package/build/disjunctionParser.js +6 -4
- package/build/elementTerminatedArrayParser.d.ts +3 -0
- package/build/elementTerminatedArrayParser.js +18 -0
- package/build/elementTerminatedArrayParser.test.js +52 -0
- package/build/elementTerminatedSequenceArrayParser.d.ts +3 -0
- package/build/elementTerminatedSequenceArrayParser.js +32 -0
- package/build/elementTerminatedSequenceArrayParser.test.js +34 -0
- package/build/elementTerminatedSequenceParser.d.ts +3 -0
- package/build/elementTerminatedSequenceParser.js +27 -0
- package/build/elementTerminatedSequenceParser.test.js +34 -0
- package/build/endOfInputParser.d.ts +1 -1
- package/build/exactElementParser.js +10 -5
- package/build/exactElementSwitchParser.d.ts +3 -0
- package/build/exactElementSwitchParser.js +22 -0
- package/build/exactSequenceParser.d.ts +2 -1
- package/build/exactSequenceParser.js +12 -2
- package/build/fetchCid.d.ts +1 -0
- package/build/fetchCid.js +103 -0
- package/build/fetchCid.test.js +16 -0
- package/build/fixedLengthSequenceParser.d.ts +1 -0
- package/build/fixedLengthSequenceParser.js +18 -1
- package/build/fixedLengthSequenceParser.test.js +41 -0
- package/build/hasExecutable.d.ts +1 -0
- package/build/hasExecutable.js +8 -0
- package/build/highResolutionTimer.d.ts +16 -0
- package/build/highResolutionTimer.js +42 -0
- package/build/inputReader.d.ts +11 -0
- package/build/inputReader.js +37 -0
- package/build/inputReader.test.js +161 -8
- package/build/inputReaderState.d.ts +10 -0
- package/build/inputReaderState.js +16 -0
- package/build/inspect.d.ts +1 -0
- package/build/inspect.js +7 -0
- package/build/javaKeyStoreParser.test.js +8 -8
- package/build/jsonParser.d.ts +2 -0
- package/build/jsonParser.js +19 -22
- package/build/lazyMessageError.d.ts +48 -0
- package/build/lazyMessageError.js +53 -0
- package/build/lazyMessageError.test.d.ts +1 -0
- package/build/lazyMessageError.test.js +15 -0
- package/build/leb128Parser.d.ts +7 -0
- package/build/leb128Parser.js +82 -0
- package/build/leb128Parser.test.d.ts +1 -0
- package/build/leb128Parser.test.js +107 -0
- package/build/lookaheadParser.d.ts +2 -0
- package/build/lookaheadParser.js +14 -0
- package/build/negativeLookaheadParser.js +22 -16
- package/build/negativeLookaheadParser.test.d.ts +1 -0
- package/build/negativeLookaheadParser.test.js +30 -0
- package/build/noStackCaptureOverheadError.d.ts +4 -0
- package/build/noStackCaptureOverheadError.js +9 -0
- package/build/noStackCaptureOverheadError.test.d.ts +1 -0
- package/build/noStackCaptureOverheadError.test.js +15 -0
- package/build/nonEmptyArrayParser.d.ts +2 -0
- package/build/nonEmptyArrayParser.js +32 -0
- package/build/nonEmptyArrayParser.test.d.ts +1 -0
- package/build/nonEmptyArrayParser.test.js +17 -0
- package/build/optionalParser.js +2 -2
- package/build/parser.d.ts +11 -1
- package/build/parser.js +82 -32
- package/build/parser.test.js +141 -25
- package/build/parserAccessorParser.js +9 -1
- package/build/parserConsumedSequenceParser.d.ts +1 -1
- package/build/parserConsumedSequenceParser.js +21 -16
- package/build/parserContext.d.ts +22 -6
- package/build/parserContext.js +113 -57
- package/build/parserContext.test.js +33 -2
- package/build/parserCreatorCompose.d.ts +1 -0
- package/build/parserCreatorCompose.js +8 -2
- package/build/parserError.d.ts +605 -40
- package/build/parserError.js +98 -53
- package/build/parserImplementationInvariant.d.ts +1 -1
- package/build/parserImplementationInvariant.js +2 -2
- package/build/parserInputCompanion.d.ts +15 -0
- package/build/parserInputCompanion.js +38 -0
- package/build/promiseCompose.d.ts +1 -1
- package/build/promiseCompose.js +11 -1
- package/build/promiseSettled.d.ts +1 -0
- package/build/promiseSettled.js +4 -0
- package/build/separatedArrayParser.d.ts +2 -0
- package/build/separatedArrayParser.js +39 -0
- package/build/separatedArrayParser.test.d.ts +1 -0
- package/build/separatedArrayParser.test.js +21 -0
- package/build/separatedNonEmptyArrayParser.d.ts +2 -0
- package/build/separatedNonEmptyArrayParser.js +40 -0
- package/build/separatedNonEmptyArrayParser.test.d.ts +1 -0
- package/build/separatedNonEmptyArrayParser.test.js +66 -0
- package/build/sequenceBuffer.d.ts +10 -0
- package/build/sequenceBuffer.js +54 -2
- package/build/sequenceBuffer.test.js +57 -0
- package/build/sequenceTerminatedSequenceParser.d.ts +5 -0
- package/build/sequenceTerminatedSequenceParser.js +32 -0
- package/build/sequenceTerminatedSequenceParser.test.d.ts +1 -0
- package/build/sequenceTerminatedSequenceParser.test.js +37 -0
- package/build/sequenceUnparser.d.ts +1 -1
- package/build/skipParser.d.ts +1 -1
- package/build/skipParser.js +4 -2
- package/build/skipToParser.d.ts +2 -0
- package/build/skipToParser.js +11 -0
- package/build/sliceBoundedParser.d.ts +1 -1
- package/build/sliceBoundedParser.js +7 -2
- package/build/sliceBoundedParser.test.js +30 -1
- package/build/smali.d.ts +1 -0
- package/build/smali.js +21 -0
- package/build/smaliParser.d.ts +68 -0
- package/build/smaliParser.js +2081 -0
- package/build/smaliParser.test.d.ts +1 -0
- package/build/smaliParser.test.js +410 -0
- package/build/stringFromAsyncIterable.d.ts +1 -0
- package/build/stringFromAsyncIterable.js +7 -0
- package/build/terminatedArrayParser.d.ts +3 -1
- package/build/terminatedArrayParser.js +79 -2
- package/build/terminatedArrayParser.test.d.ts +1 -0
- package/build/terminatedArrayParser.test.js +131 -0
- package/build/toAsyncIterable.d.ts +1 -0
- package/build/toAsyncIterable.js +7 -0
- package/build/toAsyncIterator.d.ts +1 -0
- package/build/toAsyncIterator.js +33 -0
- package/build/tupleParser.d.ts +4 -0
- package/build/tupleParser.js +1 -5
- package/build/unionParser.d.ts +2 -1
- package/build/unionParser.js +29 -14
- package/build/unionParser.test.d.ts +1 -0
- package/build/unionParser.test.js +60 -0
- package/build/unparser.d.ts +3 -3
- package/build/unparser.js +6 -4
- package/build/unparser.test.js +7 -19
- package/build/unparserContext.d.ts +2 -2
- package/build/unparserContext.js +2 -3
- package/build/unparserError.d.ts +2 -1
- package/build/unparserError.js +2 -1
- package/build/unparserImplementationInvariant.d.ts +1 -1
- package/build/unparserOutputCompanion.d.ts +1 -1
- package/build/unparserOutputCompanion.js +1 -1
- package/build/zipParser.d.ts +7 -2
- package/build/zipParser.js +36 -12
- package/build/zipUnparser.d.ts +7 -4
- package/build/zipUnparser.js +64 -45
- package/build/zipUnparser.test.js +15 -15
- package/package.json +33 -24
- package/src/allSettledStream.test.ts +40 -0
- package/src/allSettledStream.ts +47 -15
- package/src/androidPackage.ts +48 -0
- package/src/androidPackageParser.test.ts +27 -0
- package/src/{apkParser.test.ts.md → androidPackageParser.test.ts.md} +4 -4
- package/src/androidPackageParser.test.ts.snap +0 -0
- package/src/androidPackageParser.ts +398 -0
- package/src/androidPackageUnparser.test.ts +34 -0
- package/src/androidPackageUnparser.ts +126 -0
- package/src/arbitrarilySlicedAsyncInterable.ts +7 -2
- package/src/arbitrarilySlicedAsyncInterator.ts +4 -4
- package/src/arbitraryDalvikBytecode.ts +992 -0
- package/src/arbitraryDalvikExecutable.ts +434 -0
- package/src/arbitraryDosDateTime.ts +1 -0
- package/src/arbitraryZipStream.ts +1 -1
- package/src/arrayParser.test.ts +3 -3
- package/src/arrayParser.ts +2 -2
- package/src/arrayUnparser.ts +2 -2
- package/src/backsmali.ts +74 -0
- package/src/bsonParser.test.ts +12 -14
- package/src/bsonParser.ts +13 -2
- package/src/customInvariant.ts +8 -12
- package/src/dalvikBytecodeParser/formatParsers.ts +780 -0
- package/src/dalvikBytecodeParser/formatSizes.ts +35 -0
- package/src/dalvikBytecodeParser/operationFormats.ts +226 -0
- package/src/dalvikBytecodeParser.ts +2873 -0
- package/src/dalvikBytecodeUnparser/formatUnparsers.ts +442 -0
- package/src/dalvikBytecodeUnparser.test.ts +44 -0
- package/src/dalvikBytecodeUnparser.ts +758 -0
- package/src/dalvikExecutable.ts +282 -0
- package/src/dalvikExecutableParser/stringSyntaxParser.ts +145 -0
- package/src/dalvikExecutableParser/typeParsers.ts +74 -0
- package/src/dalvikExecutableParser/typedNumbers.ts +57 -0
- package/src/dalvikExecutableParser.test.ts +89 -0
- package/src/dalvikExecutableParser.test.ts.md +634 -0
- package/src/dalvikExecutableParser.test.ts.snap +0 -0
- package/src/dalvikExecutableParser.ts +3245 -0
- package/src/dalvikExecutableParserAgainstSmaliParser.test.ts +363 -0
- package/src/dalvikExecutableUnparser/annotationUnparsers.ts +135 -0
- package/src/dalvikExecutableUnparser/poolBuilders.ts +189 -0
- package/src/dalvikExecutableUnparser/poolScanners.ts +297 -0
- package/src/dalvikExecutableUnparser/sectionUnparsers.ts +683 -0
- package/src/dalvikExecutableUnparser/utils.ts +149 -0
- package/src/dalvikExecutableUnparser.test.ts +57 -0
- package/src/dalvikExecutableUnparser.ts +581 -0
- package/src/debugLogInputParser.ts +28 -0
- package/src/debugLogParser.ts +19 -3
- package/src/disjunctionParser.ts +12 -7
- package/src/elementTerminatedArrayParser.test.ts +99 -0
- package/src/elementTerminatedArrayParser.ts +31 -0
- package/src/elementTerminatedSequenceArrayParser.test.ts +52 -0
- package/src/elementTerminatedSequenceArrayParser.ts +52 -0
- package/src/elementTerminatedSequenceParser.test.ts +52 -0
- package/src/elementTerminatedSequenceParser.ts +43 -0
- package/src/endOfInputParser.ts +1 -1
- package/src/exactElementParser.ts +17 -11
- package/src/exactElementSwitchParser.ts +41 -0
- package/src/exactSequenceParser.ts +23 -2
- package/src/fetchCid.test.ts +20 -0
- package/src/fetchCid.ts +121 -0
- package/src/fixedLengthSequenceParser.test.ts +75 -0
- package/src/fixedLengthSequenceParser.ts +28 -1
- package/src/hasExecutable.ts +11 -0
- package/src/highResolutionTimer.ts +49 -0
- package/src/inputReader.test.ts +204 -8
- package/src/inputReader.ts +76 -3
- package/src/inputReaderState.ts +33 -0
- package/src/inspect.ts +9 -0
- package/src/javaKeyStoreParser.test.ts +12 -15
- package/src/javaKeyStoreParser.ts +2 -6
- package/src/jsonParser.test.ts +2 -4
- package/src/jsonParser.ts +46 -62
- package/src/lazyMessageError.test.ts +21 -0
- package/src/lazyMessageError.ts +88 -0
- package/src/leb128Parser.test.ts +173 -0
- package/src/leb128Parser.ts +125 -0
- package/src/lookaheadParser.ts +19 -0
- package/src/negativeLookaheadParser.test.ts +49 -0
- package/src/negativeLookaheadParser.ts +27 -15
- package/src/noStackCaptureOverheadError.test.ts +17 -0
- package/src/noStackCaptureOverheadError.ts +12 -0
- package/src/nonEmptyArrayParser.test.ts +21 -0
- package/src/nonEmptyArrayParser.ts +44 -0
- package/src/optionalParser.ts +3 -2
- package/src/parser.test.ts +203 -31
- package/src/parser.test.ts.md +34 -27
- package/src/parser.test.ts.snap +0 -0
- package/src/parser.ts +172 -45
- package/src/parserAccessorParser.ts +12 -2
- package/src/parserConsumedSequenceParser.ts +26 -17
- package/src/parserContext.test.ts +37 -2
- package/src/parserContext.ts +185 -79
- package/src/parserCreatorCompose.ts +20 -2
- package/src/parserError.ts +144 -61
- package/src/parserImplementationInvariant.ts +3 -3
- package/src/parserInputCompanion.ts +55 -0
- package/src/promiseCompose.ts +17 -3
- package/src/promiseSettled.ts +6 -0
- package/src/separatedArrayParser.test.ts +34 -0
- package/src/separatedArrayParser.ts +55 -0
- package/src/separatedNonEmptyArrayParser.test.ts +117 -0
- package/src/separatedNonEmptyArrayParser.ts +61 -0
- package/src/sequenceBuffer.test.ts +70 -0
- package/src/sequenceBuffer.ts +88 -2
- package/src/sequenceTerminatedSequenceParser.test.ts +58 -0
- package/src/sequenceTerminatedSequenceParser.ts +62 -0
- package/src/sequenceUnparser.ts +2 -2
- package/src/skipParser.ts +7 -5
- package/src/skipToParser.ts +16 -0
- package/src/sliceBoundedParser.test.ts +35 -1
- package/src/sliceBoundedParser.ts +19 -1
- package/src/smali.ts +29 -0
- package/src/smaliParser.test.ts +443 -0
- package/src/smaliParser.test.ts.md +3907 -0
- package/src/smaliParser.test.ts.snap +0 -0
- package/src/smaliParser.ts +3348 -0
- package/src/stringFromAsyncIterable.ts +9 -0
- package/src/terminatedArrayParser.test.ts +258 -0
- package/src/terminatedArrayParser.ts +109 -6
- package/src/toAsyncIterable.ts +7 -0
- package/src/toAsyncIterator.ts +48 -0
- package/src/tupleParser.ts +8 -5
- package/src/uint8Array.ts +2 -3
- package/src/unionParser.test.ts +78 -0
- package/src/unionParser.ts +47 -21
- package/src/unparser.test.ts +18 -34
- package/src/unparser.ts +13 -9
- package/src/unparserContext.ts +9 -13
- package/src/unparserError.ts +2 -1
- package/src/unparserImplementationInvariant.ts +1 -1
- package/src/unparserOutputCompanion.ts +1 -1
- package/src/zip.ts +2 -6
- package/src/zipParser.ts +71 -20
- package/src/zipUnparser.test.ts +19 -19
- package/src/zipUnparser.ts +139 -90
- package/tsconfig.json +7 -1
- package/xo.config.ts +15 -0
- package/.yarn/releases/yarn-4.5.3.cjs +0 -934
- package/build/apk.d.ts +0 -39
- package/build/apkParser.d.ts +0 -16
- package/build/apkParser.js +0 -164
- package/build/apkParser.test.js +0 -22
- package/build/apkUnparser.d.ts +0 -4
- package/build/apkUnparser.js +0 -90
- package/build/apkUnparser.test.js +0 -26
- package/build/arbitraryDosDate.d.ts +0 -2
- package/build/arbitraryDosDate.js +0 -8
- package/build/arbitraryZipEntry.d.ts +0 -3
- package/build/arbitraryZipEntry.js +0 -26
- package/build/createDisjunctionParser.d.ts +0 -2
- package/build/createDisjunctionParser.js +0 -47
- package/build/createExactParser.d.ts +0 -2
- package/build/createExactParser.js +0 -12
- package/build/createSequentialUnionParser.d.ts +0 -2
- package/build/createSequentialUnionParser.js +0 -69
- package/build/fixedLengthChunkParser.d.ts +0 -2
- package/build/fixedLengthChunkParser.js +0 -12
- package/build/fixedLengthParser.d.ts +0 -2
- package/build/fixedLengthParser.js +0 -12
- package/build/inputChunkBuffer.d.ts +0 -15
- package/build/inputChunkBuffer.js +0 -40
- package/build/inputChunkBuffer.test.js +0 -34
- package/build/inputCompanion.d.ts +0 -18
- package/build/inputCompanion.js +0 -28
- package/build/invariantDefined.d.ts +0 -1
- package/build/invariantDefined.js +0 -5
- package/build/invariantIdentity.d.ts +0 -3
- package/build/invariantIdentity.js +0 -5
- package/build/javaKeystoreParser.d.ts +0 -2
- package/build/javaKeystoreParser.js +0 -7
- package/build/jsonParser2.d.ts +0 -3
- package/build/jsonParser2.js +0 -52
- package/build/jsonParser2.test.js +0 -22
- package/build/negativeLookahead.d.ts +0 -2
- package/build/negativeLookahead.js +0 -18
- package/build/parserCompose.d.ts +0 -3
- package/build/parserCompose.js +0 -7
- package/build/parserImplementationInvariantInvariant.d.ts +0 -3
- package/build/parserImplementationInvariantInvariant.js +0 -15
- package/build/parserInvariant.d.ts +0 -4
- package/build/parserInvariant.js +0 -11
- package/build/promiseFish.d.ts +0 -1
- package/build/promiseFish.js +0 -3
- package/build/sequenceParser.d.ts +0 -3
- package/build/sequenceParser.js +0 -10
- package/build/terminatedSequenceParser.d.ts +0 -2
- package/build/terminatedSequenceParser.js +0 -24
- package/build/unparserInputCompanion.d.ts +0 -15
- package/build/unparserInputCompanion.js +0 -13
- package/build/zipEntry.d.ts +0 -28
- package/build/zipFile.d.ts +0 -32
- package/build/zipFileEntry.d.ts +0 -6
- package/src/apk.ts +0 -48
- package/src/apkParser.test.ts +0 -30
- package/src/apkParser.test.ts.snap +0 -0
- package/src/apkParser.ts +0 -392
- package/src/apkUnparser.test.ts +0 -37
- package/src/apkUnparser.ts +0 -120
- package/src/invariantDefined.ts +0 -6
- package/src/invariantIdentity.ts +0 -8
- /package/build/{apk.js → androidPackage.js} +0 -0
- /package/build/{apkParser.test.d.ts → androidPackageParser.test.d.ts} +0 -0
- /package/build/{apkUnparser.test.d.ts → androidPackageUnparser.test.d.ts} +0 -0
- /package/build/{arbitraryDosPermissions.d.ts → dalvikBytecodeUnparser.test.d.ts} +0 -0
- /package/build/{arbitraryDosPermissions.js → dalvikExecutableParser.test.d.ts} +0 -0
- /package/build/{inputChunkBuffer.test.d.ts → dalvikExecutableParserAgainstSmaliParser.test.d.ts} +0 -0
- /package/build/{jsonParser2.test.d.ts → dalvikExecutableUnparser.test.d.ts} +0 -0
- /package/build/{parserParsingInvariant.d.ts → elementTerminatedArrayParser.test.d.ts} +0 -0
- /package/build/{parserParsingInvariant.js → elementTerminatedSequenceArrayParser.test.d.ts} +0 -0
- /package/build/{zipEntry.js → elementTerminatedSequenceParser.test.d.ts} +0 -0
- /package/build/{zipFile.js → fetchCid.test.d.ts} +0 -0
- /package/build/{zipFileEntry.js → fixedLengthSequenceParser.test.d.ts} +0 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { byteParser, intParser, longParser, shortParser, ubyteParser, uintParser, ushortParser, } from '../dalvikExecutableParser/typeParsers.js';
|
|
2
|
+
import { createElementParser } from '../elementParser.js';
|
|
3
|
+
import { setParserName } from '../parser.js';
|
|
4
|
+
import { promiseCompose } from '../promiseCompose.js';
|
|
5
|
+
import { createTupleParser } from '../tupleParser.js';
|
|
6
|
+
// https://source.android.com/docs/core/runtime/instruction-formats
|
|
7
|
+
export const nibblesParser = promiseCompose(createElementParser(), byte => [
|
|
8
|
+
byte >> 4,
|
|
9
|
+
byte & 0b1111,
|
|
10
|
+
]);
|
|
11
|
+
setParserName(nibblesParser, 'nibblesParser');
|
|
12
|
+
export const dalvikBytecodeFormat10tParser = promiseCompose(byteParser, branchOffset => ({
|
|
13
|
+
branchOffset,
|
|
14
|
+
}));
|
|
15
|
+
export const dalvikBytecodeFormat10xParser = promiseCompose(createElementParser(), () => undefined);
|
|
16
|
+
export const dalvikBytecodeFormat11xParser = promiseCompose(ubyteParser, register0 => ({
|
|
17
|
+
registers: [
|
|
18
|
+
register0,
|
|
19
|
+
],
|
|
20
|
+
}));
|
|
21
|
+
export const dalvikBytecodeFormat11nParser = promiseCompose(nibblesParser, ([value, register0,]) => ({
|
|
22
|
+
value: value << 28 >> 28, // Sign extend 4-bit value
|
|
23
|
+
registers: [
|
|
24
|
+
register0,
|
|
25
|
+
],
|
|
26
|
+
}));
|
|
27
|
+
export const dalvikBytecodeFormat12xParser = promiseCompose(nibblesParser, ([register0, register1,]) => ({
|
|
28
|
+
registers: [
|
|
29
|
+
register0,
|
|
30
|
+
register1,
|
|
31
|
+
],
|
|
32
|
+
}));
|
|
33
|
+
export const dalvikBytecodeFormat20tParser = promiseCompose(createTupleParser([
|
|
34
|
+
ubyteParser,
|
|
35
|
+
shortParser,
|
|
36
|
+
]), ([_zero, branchOffset,]) => ({
|
|
37
|
+
branchOffset,
|
|
38
|
+
}));
|
|
39
|
+
export const createDalvikBytecodeFormat21cParser = ({ isoIndex, }) => promiseCompose(createTupleParser([
|
|
40
|
+
ubyteParser,
|
|
41
|
+
ushortParser,
|
|
42
|
+
]), ([register0, index,]) => ({
|
|
43
|
+
index: isoIndex.wrap(index),
|
|
44
|
+
registers: [
|
|
45
|
+
register0,
|
|
46
|
+
],
|
|
47
|
+
}));
|
|
48
|
+
export const dalvikBytecodeFormat21hParser = promiseCompose(createTupleParser([
|
|
49
|
+
ubyteParser,
|
|
50
|
+
ushortParser,
|
|
51
|
+
]), ([register0, value,]) => ({
|
|
52
|
+
value,
|
|
53
|
+
registers: [
|
|
54
|
+
register0,
|
|
55
|
+
],
|
|
56
|
+
}));
|
|
57
|
+
export const createDalvikBytecodeFormat21tParser = () => promiseCompose(createTupleParser([
|
|
58
|
+
ubyteParser,
|
|
59
|
+
shortParser,
|
|
60
|
+
]), ([register0, branchOffset,]) => ({
|
|
61
|
+
branchOffset,
|
|
62
|
+
registers: [
|
|
63
|
+
register0,
|
|
64
|
+
],
|
|
65
|
+
}));
|
|
66
|
+
export const createDalvikBytecodeFormat21sParser = () => promiseCompose(createTupleParser([
|
|
67
|
+
ubyteParser,
|
|
68
|
+
shortParser,
|
|
69
|
+
]), ([register0, value,]) => ({
|
|
70
|
+
value,
|
|
71
|
+
registers: [
|
|
72
|
+
register0,
|
|
73
|
+
],
|
|
74
|
+
}));
|
|
75
|
+
export const createDalvikBytecodeFormat22bParser = () => promiseCompose(createTupleParser([
|
|
76
|
+
ubyteParser,
|
|
77
|
+
ubyteParser,
|
|
78
|
+
byteParser,
|
|
79
|
+
]), ([register0, register1, value,]) => ({
|
|
80
|
+
value,
|
|
81
|
+
registers: [
|
|
82
|
+
register0,
|
|
83
|
+
register1,
|
|
84
|
+
],
|
|
85
|
+
}));
|
|
86
|
+
export const createDalvikBytecodeFormat22cParser = ({ isoIndex, }) => promiseCompose(createTupleParser([
|
|
87
|
+
nibblesParser,
|
|
88
|
+
ushortParser,
|
|
89
|
+
]), ([[register1, register0,], index,]) => ({
|
|
90
|
+
index: isoIndex.wrap(index),
|
|
91
|
+
registers: [
|
|
92
|
+
register0,
|
|
93
|
+
register1,
|
|
94
|
+
],
|
|
95
|
+
}));
|
|
96
|
+
export const createDalvikBytecodeFormat22sParser = () => promiseCompose(createTupleParser([
|
|
97
|
+
nibblesParser,
|
|
98
|
+
shortParser,
|
|
99
|
+
]), ([[register0, register1,], value,]) => ({
|
|
100
|
+
value,
|
|
101
|
+
registers: [
|
|
102
|
+
register1,
|
|
103
|
+
register0,
|
|
104
|
+
],
|
|
105
|
+
}));
|
|
106
|
+
export const createDalvikBytecodeFormat22tParser = () => promiseCompose(createTupleParser([
|
|
107
|
+
nibblesParser,
|
|
108
|
+
shortParser,
|
|
109
|
+
]), ([[register0, register1,], branchOffset,]) => ({
|
|
110
|
+
branchOffset,
|
|
111
|
+
registers: [
|
|
112
|
+
register0,
|
|
113
|
+
register1,
|
|
114
|
+
],
|
|
115
|
+
}));
|
|
116
|
+
export const dalvikBytecodeFormat22xParser = promiseCompose(createTupleParser([
|
|
117
|
+
ubyteParser,
|
|
118
|
+
ushortParser,
|
|
119
|
+
]), ([register0, register1,]) => ({
|
|
120
|
+
registers: [
|
|
121
|
+
register0,
|
|
122
|
+
register1,
|
|
123
|
+
],
|
|
124
|
+
}));
|
|
125
|
+
export const dalvikBytecodeFormat23xParser = promiseCompose(createTupleParser([
|
|
126
|
+
ubyteParser,
|
|
127
|
+
ubyteParser,
|
|
128
|
+
ubyteParser,
|
|
129
|
+
]), ([register0, register1, register2,]) => ({
|
|
130
|
+
registers: [
|
|
131
|
+
register0,
|
|
132
|
+
register1,
|
|
133
|
+
register2,
|
|
134
|
+
],
|
|
135
|
+
}));
|
|
136
|
+
export const dalvikBytecodeFormat30tParser = promiseCompose(intParser, branchOffset => ({
|
|
137
|
+
branchOffset,
|
|
138
|
+
}));
|
|
139
|
+
export const dalvikBytecodeFormat31iParser = promiseCompose(createTupleParser([
|
|
140
|
+
ubyteParser,
|
|
141
|
+
intParser,
|
|
142
|
+
]), ([register0, value,]) => ({
|
|
143
|
+
value,
|
|
144
|
+
registers: [
|
|
145
|
+
register0,
|
|
146
|
+
],
|
|
147
|
+
}));
|
|
148
|
+
export const createDalvikBytecodeFormat31cParser = ({ isoIndex, }) => promiseCompose(createTupleParser([
|
|
149
|
+
ubyteParser,
|
|
150
|
+
uintParser,
|
|
151
|
+
]), ([register0, index,]) => ({
|
|
152
|
+
index: isoIndex.wrap(index),
|
|
153
|
+
registers: [
|
|
154
|
+
register0,
|
|
155
|
+
],
|
|
156
|
+
}));
|
|
157
|
+
export const dalvikBytecodeFormat31tParser = promiseCompose(createTupleParser([
|
|
158
|
+
ubyteParser,
|
|
159
|
+
intParser,
|
|
160
|
+
]), ([register0, branchOffset,]) => ({
|
|
161
|
+
branchOffset,
|
|
162
|
+
registers: [
|
|
163
|
+
register0,
|
|
164
|
+
],
|
|
165
|
+
}));
|
|
166
|
+
export const dalvikBytecodeFormat32xParser = promiseCompose(createTupleParser([
|
|
167
|
+
ushortParser,
|
|
168
|
+
ushortParser,
|
|
169
|
+
]), ([register0, register1,]) => ({
|
|
170
|
+
registers: [
|
|
171
|
+
register0,
|
|
172
|
+
register1,
|
|
173
|
+
],
|
|
174
|
+
}));
|
|
175
|
+
export const createDalvikBytecodeFormat35cParser = ({ isoIndex, }) => promiseCompose(createTupleParser([
|
|
176
|
+
nibblesParser,
|
|
177
|
+
ushortParser,
|
|
178
|
+
nibblesParser,
|
|
179
|
+
nibblesParser,
|
|
180
|
+
]), ([[registerCount, register4,], index, [register1, register0,], [register3, register2,],]) => ({
|
|
181
|
+
index: isoIndex.wrap(index),
|
|
182
|
+
registers: Object.assign([
|
|
183
|
+
register0,
|
|
184
|
+
register1,
|
|
185
|
+
register2,
|
|
186
|
+
register3,
|
|
187
|
+
register4,
|
|
188
|
+
], {
|
|
189
|
+
length: registerCount,
|
|
190
|
+
}),
|
|
191
|
+
}));
|
|
192
|
+
export const createDalvikBytecodeFormat3rcParser = ({ isoIndex, }) => promiseCompose(createTupleParser([
|
|
193
|
+
ubyteParser,
|
|
194
|
+
ushortParser,
|
|
195
|
+
ushortParser,
|
|
196
|
+
]), ([registerCount, index, firstRegister,]) => ({
|
|
197
|
+
index: isoIndex.wrap(index),
|
|
198
|
+
registers: Array.from({ length: registerCount }, (_, index) => firstRegister + index),
|
|
199
|
+
}));
|
|
200
|
+
export const dalvikBytecodeFormat51lParser = promiseCompose(createTupleParser([
|
|
201
|
+
ubyteParser,
|
|
202
|
+
longParser,
|
|
203
|
+
]), ([register0, value,]) => ({
|
|
204
|
+
value,
|
|
205
|
+
registers: [
|
|
206
|
+
register0,
|
|
207
|
+
],
|
|
208
|
+
}));
|
|
209
|
+
export const dalvikBytecodeFormat20bcParser = promiseCompose(createTupleParser([
|
|
210
|
+
ubyteParser,
|
|
211
|
+
ushortParser,
|
|
212
|
+
]), ([kind, index,]) => ({
|
|
213
|
+
kind,
|
|
214
|
+
index,
|
|
215
|
+
}));
|
|
216
|
+
export const dalvikBytecodeFormat22csParser = promiseCompose(createTupleParser([
|
|
217
|
+
nibblesParser,
|
|
218
|
+
ushortParser,
|
|
219
|
+
]), ([[register0, register1,], fieldOffset,]) => ({
|
|
220
|
+
fieldOffset,
|
|
221
|
+
registers: [
|
|
222
|
+
register0,
|
|
223
|
+
register1,
|
|
224
|
+
],
|
|
225
|
+
}));
|
|
226
|
+
export const dalvikBytecodeFormat35miParser = promiseCompose(createTupleParser([
|
|
227
|
+
nibblesParser,
|
|
228
|
+
ushortParser,
|
|
229
|
+
nibblesParser,
|
|
230
|
+
nibblesParser,
|
|
231
|
+
]), ([[registerCount, register4,], inlineIndex, [register1, register0,], [register3, register2,],]) => ({
|
|
232
|
+
inlineIndex,
|
|
233
|
+
registers: Object.assign([
|
|
234
|
+
register0,
|
|
235
|
+
register1,
|
|
236
|
+
register2,
|
|
237
|
+
register3,
|
|
238
|
+
register4,
|
|
239
|
+
], {
|
|
240
|
+
length: registerCount,
|
|
241
|
+
}),
|
|
242
|
+
}));
|
|
243
|
+
export const dalvikBytecodeFormat35msParser = promiseCompose(createTupleParser([
|
|
244
|
+
nibblesParser,
|
|
245
|
+
ushortParser,
|
|
246
|
+
nibblesParser,
|
|
247
|
+
nibblesParser,
|
|
248
|
+
]), ([[registerCount, register4,], vtableOffset, [register1, register0,], [register3, register2,],]) => ({
|
|
249
|
+
vtableOffset,
|
|
250
|
+
registers: Object.assign([
|
|
251
|
+
register0,
|
|
252
|
+
register1,
|
|
253
|
+
register2,
|
|
254
|
+
register3,
|
|
255
|
+
register4,
|
|
256
|
+
], {
|
|
257
|
+
length: registerCount,
|
|
258
|
+
}),
|
|
259
|
+
}));
|
|
260
|
+
export const dalvikBytecodeFormat3rmiParser = promiseCompose(createTupleParser([
|
|
261
|
+
ubyteParser,
|
|
262
|
+
ushortParser,
|
|
263
|
+
ushortParser,
|
|
264
|
+
]), ([registerCount, inlineIndex, firstRegister,]) => ({
|
|
265
|
+
inlineIndex,
|
|
266
|
+
registers: Array.from({ length: registerCount }, (_, index) => firstRegister + index),
|
|
267
|
+
}));
|
|
268
|
+
export const dalvikBytecodeFormat3rmsParser = promiseCompose(createTupleParser([
|
|
269
|
+
ubyteParser,
|
|
270
|
+
ushortParser,
|
|
271
|
+
ushortParser,
|
|
272
|
+
]), ([registerCount, vtableOffset, firstRegister,]) => ({
|
|
273
|
+
vtableOffset,
|
|
274
|
+
registers: Array.from({ length: registerCount }, (_, index) => firstRegister + index),
|
|
275
|
+
}));
|
|
276
|
+
export const createDalvikBytecodeFormat45ccParser = ({ isoMethodIndex, isoProtoIndex, }) => promiseCompose(createTupleParser([
|
|
277
|
+
nibblesParser,
|
|
278
|
+
ushortParser,
|
|
279
|
+
nibblesParser,
|
|
280
|
+
nibblesParser,
|
|
281
|
+
ushortParser,
|
|
282
|
+
]), ([[registerCount, register4,], methodIndex, [register1, register0,], [register3, register2,], protoIndex,]) => ({
|
|
283
|
+
methodIndex: isoMethodIndex.wrap(methodIndex),
|
|
284
|
+
protoIndex: isoProtoIndex.wrap(protoIndex),
|
|
285
|
+
registers: Object.assign([
|
|
286
|
+
register0,
|
|
287
|
+
register1,
|
|
288
|
+
register2,
|
|
289
|
+
register3,
|
|
290
|
+
register4,
|
|
291
|
+
], {
|
|
292
|
+
length: registerCount,
|
|
293
|
+
}),
|
|
294
|
+
}));
|
|
295
|
+
export const createDalvikBytecodeFormat4rccParser = ({ isoMethodIndex, isoProtoIndex, }) => promiseCompose(createTupleParser([
|
|
296
|
+
ubyteParser,
|
|
297
|
+
ushortParser,
|
|
298
|
+
ushortParser,
|
|
299
|
+
ushortParser,
|
|
300
|
+
]), ([registerCount, methodIndex, firstRegister, protoIndex,]) => ({
|
|
301
|
+
methodIndex: isoMethodIndex.wrap(methodIndex),
|
|
302
|
+
protoIndex: isoProtoIndex.wrap(protoIndex),
|
|
303
|
+
registers: Array.from({ length: registerCount }, (_, index) => firstRegister + index),
|
|
304
|
+
}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const formatSizes: {
|
|
2
|
+
readonly '10x': 1;
|
|
3
|
+
readonly '11x': 1;
|
|
4
|
+
readonly '11n': 1;
|
|
5
|
+
readonly '12x': 1;
|
|
6
|
+
readonly '10t': 1;
|
|
7
|
+
readonly '20t': 2;
|
|
8
|
+
readonly '20bc': 2;
|
|
9
|
+
readonly '22x': 2;
|
|
10
|
+
readonly '21t': 2;
|
|
11
|
+
readonly '21s': 2;
|
|
12
|
+
readonly '21h': 2;
|
|
13
|
+
readonly '21c': 2;
|
|
14
|
+
readonly '23x': 2;
|
|
15
|
+
readonly '22b': 2;
|
|
16
|
+
readonly '22t': 2;
|
|
17
|
+
readonly '22s': 2;
|
|
18
|
+
readonly '22c': 2;
|
|
19
|
+
readonly '22cs': 2;
|
|
20
|
+
readonly '30t': 3;
|
|
21
|
+
readonly '32x': 3;
|
|
22
|
+
readonly '31i': 3;
|
|
23
|
+
readonly '31t': 3;
|
|
24
|
+
readonly '31c': 3;
|
|
25
|
+
readonly '35c': 3;
|
|
26
|
+
readonly '35ms': 3;
|
|
27
|
+
readonly '35mi': 3;
|
|
28
|
+
readonly '3rc': 3;
|
|
29
|
+
readonly '3rms': 3;
|
|
30
|
+
readonly '3rmi': 3;
|
|
31
|
+
readonly '45cc': 4;
|
|
32
|
+
readonly '4rcc': 4;
|
|
33
|
+
readonly '51l': 5;
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const formatSizes = {
|
|
2
|
+
'10x': 1,
|
|
3
|
+
'11x': 1,
|
|
4
|
+
'11n': 1,
|
|
5
|
+
'12x': 1,
|
|
6
|
+
'10t': 1,
|
|
7
|
+
'20t': 2,
|
|
8
|
+
'20bc': 2,
|
|
9
|
+
'22x': 2,
|
|
10
|
+
'21t': 2,
|
|
11
|
+
'21s': 2,
|
|
12
|
+
'21h': 2,
|
|
13
|
+
'21c': 2,
|
|
14
|
+
'23x': 2,
|
|
15
|
+
'22b': 2,
|
|
16
|
+
'22t': 2,
|
|
17
|
+
'22s': 2,
|
|
18
|
+
'22c': 2,
|
|
19
|
+
'22cs': 2,
|
|
20
|
+
'30t': 3,
|
|
21
|
+
'32x': 3,
|
|
22
|
+
'31i': 3,
|
|
23
|
+
'31t': 3,
|
|
24
|
+
'31c': 3,
|
|
25
|
+
'35c': 3,
|
|
26
|
+
'35ms': 3,
|
|
27
|
+
'35mi': 3,
|
|
28
|
+
'3rc': 3,
|
|
29
|
+
'3rms': 3,
|
|
30
|
+
'3rmi': 3,
|
|
31
|
+
'45cc': 4,
|
|
32
|
+
'4rcc': 4,
|
|
33
|
+
'51l': 5,
|
|
34
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const operationFormats: {
|
|
2
|
+
readonly nop: "10x";
|
|
3
|
+
readonly move: "12x";
|
|
4
|
+
readonly 'move/from16': "22x";
|
|
5
|
+
readonly 'move/16': "32x";
|
|
6
|
+
readonly 'move-wide': "12x";
|
|
7
|
+
readonly 'move-wide/from16': "22x";
|
|
8
|
+
readonly 'move-wide/16': "32x";
|
|
9
|
+
readonly 'move-object': "12x";
|
|
10
|
+
readonly 'move-object/from16': "22x";
|
|
11
|
+
readonly 'move-object/16': "32x";
|
|
12
|
+
readonly 'move-result': "11x";
|
|
13
|
+
readonly 'move-result-wide': "11x";
|
|
14
|
+
readonly 'move-result-object': "11x";
|
|
15
|
+
readonly 'move-exception': "11x";
|
|
16
|
+
readonly 'return-void': "10x";
|
|
17
|
+
readonly return: "11x";
|
|
18
|
+
readonly 'return-wide': "11x";
|
|
19
|
+
readonly 'return-object': "11x";
|
|
20
|
+
readonly 'const/4': "11n";
|
|
21
|
+
readonly 'const/16': "21s";
|
|
22
|
+
readonly const: "31i";
|
|
23
|
+
readonly 'const/high16': "21h";
|
|
24
|
+
readonly 'const-wide/16': "21s";
|
|
25
|
+
readonly 'const-wide/32': "31i";
|
|
26
|
+
readonly 'const-wide': "51l";
|
|
27
|
+
readonly 'const-wide/high16': "21h";
|
|
28
|
+
readonly 'const-string': "21c";
|
|
29
|
+
readonly 'const-string/jumbo': "31c";
|
|
30
|
+
readonly 'const-class': "21c";
|
|
31
|
+
readonly 'monitor-enter': "11x";
|
|
32
|
+
readonly 'monitor-exit': "11x";
|
|
33
|
+
readonly 'check-cast': "21c";
|
|
34
|
+
readonly 'instance-of': "22c";
|
|
35
|
+
readonly 'array-length': "12x";
|
|
36
|
+
readonly 'new-instance': "21c";
|
|
37
|
+
readonly 'new-array': "22c";
|
|
38
|
+
readonly 'filled-new-array': "35c";
|
|
39
|
+
readonly 'filled-new-array/range': "3rc";
|
|
40
|
+
readonly 'fill-array-data': "31t";
|
|
41
|
+
readonly throw: "11x";
|
|
42
|
+
readonly goto: "10t";
|
|
43
|
+
readonly 'goto/16': "20t";
|
|
44
|
+
readonly 'goto/32': "30t";
|
|
45
|
+
readonly 'packed-switch': "31t";
|
|
46
|
+
readonly 'sparse-switch': "31t";
|
|
47
|
+
readonly 'cmpl-float': "23x";
|
|
48
|
+
readonly 'cmpg-float': "23x";
|
|
49
|
+
readonly 'cmpl-double': "23x";
|
|
50
|
+
readonly 'cmpg-double': "23x";
|
|
51
|
+
readonly 'cmp-long': "23x";
|
|
52
|
+
readonly 'if-eq': "22t";
|
|
53
|
+
readonly 'if-ne': "22t";
|
|
54
|
+
readonly 'if-lt': "22t";
|
|
55
|
+
readonly 'if-ge': "22t";
|
|
56
|
+
readonly 'if-gt': "22t";
|
|
57
|
+
readonly 'if-le': "22t";
|
|
58
|
+
readonly 'if-eqz': "21t";
|
|
59
|
+
readonly 'if-nez': "21t";
|
|
60
|
+
readonly 'if-ltz': "21t";
|
|
61
|
+
readonly 'if-gez': "21t";
|
|
62
|
+
readonly 'if-gtz': "21t";
|
|
63
|
+
readonly 'if-lez': "21t";
|
|
64
|
+
readonly aget: "23x";
|
|
65
|
+
readonly 'aget-wide': "23x";
|
|
66
|
+
readonly 'aget-object': "23x";
|
|
67
|
+
readonly 'aget-boolean': "23x";
|
|
68
|
+
readonly 'aget-byte': "23x";
|
|
69
|
+
readonly 'aget-char': "23x";
|
|
70
|
+
readonly 'aget-short': "23x";
|
|
71
|
+
readonly aput: "23x";
|
|
72
|
+
readonly 'aput-wide': "23x";
|
|
73
|
+
readonly 'aput-object': "23x";
|
|
74
|
+
readonly 'aput-boolean': "23x";
|
|
75
|
+
readonly 'aput-byte': "23x";
|
|
76
|
+
readonly 'aput-char': "23x";
|
|
77
|
+
readonly 'aput-short': "23x";
|
|
78
|
+
readonly iget: "22c";
|
|
79
|
+
readonly 'iget-wide': "22c";
|
|
80
|
+
readonly 'iget-object': "22c";
|
|
81
|
+
readonly 'iget-boolean': "22c";
|
|
82
|
+
readonly 'iget-byte': "22c";
|
|
83
|
+
readonly 'iget-char': "22c";
|
|
84
|
+
readonly 'iget-short': "22c";
|
|
85
|
+
readonly iput: "22c";
|
|
86
|
+
readonly 'iput-wide': "22c";
|
|
87
|
+
readonly 'iput-object': "22c";
|
|
88
|
+
readonly 'iput-boolean': "22c";
|
|
89
|
+
readonly 'iput-byte': "22c";
|
|
90
|
+
readonly 'iput-char': "22c";
|
|
91
|
+
readonly 'iput-short': "22c";
|
|
92
|
+
readonly sget: "21c";
|
|
93
|
+
readonly 'sget-wide': "21c";
|
|
94
|
+
readonly 'sget-object': "21c";
|
|
95
|
+
readonly 'sget-boolean': "21c";
|
|
96
|
+
readonly 'sget-byte': "21c";
|
|
97
|
+
readonly 'sget-char': "21c";
|
|
98
|
+
readonly 'sget-short': "21c";
|
|
99
|
+
readonly sput: "21c";
|
|
100
|
+
readonly 'sput-wide': "21c";
|
|
101
|
+
readonly 'sput-object': "21c";
|
|
102
|
+
readonly 'sput-boolean': "21c";
|
|
103
|
+
readonly 'sput-byte': "21c";
|
|
104
|
+
readonly 'sput-char': "21c";
|
|
105
|
+
readonly 'sput-short': "21c";
|
|
106
|
+
readonly 'invoke-virtual': "35c";
|
|
107
|
+
readonly 'invoke-super': "35c";
|
|
108
|
+
readonly 'invoke-direct': "35c";
|
|
109
|
+
readonly 'invoke-static': "35c";
|
|
110
|
+
readonly 'invoke-interface': "35c";
|
|
111
|
+
readonly 'invoke-virtual/range': "3rc";
|
|
112
|
+
readonly 'invoke-super/range': "3rc";
|
|
113
|
+
readonly 'invoke-direct/range': "3rc";
|
|
114
|
+
readonly 'invoke-static/range': "3rc";
|
|
115
|
+
readonly 'invoke-interface/range': "3rc";
|
|
116
|
+
readonly 'neg-int': "12x";
|
|
117
|
+
readonly 'not-int': "12x";
|
|
118
|
+
readonly 'neg-long': "12x";
|
|
119
|
+
readonly 'not-long': "12x";
|
|
120
|
+
readonly 'neg-float': "12x";
|
|
121
|
+
readonly 'neg-double': "12x";
|
|
122
|
+
readonly 'int-to-long': "12x";
|
|
123
|
+
readonly 'int-to-float': "12x";
|
|
124
|
+
readonly 'int-to-double': "12x";
|
|
125
|
+
readonly 'long-to-int': "12x";
|
|
126
|
+
readonly 'long-to-float': "12x";
|
|
127
|
+
readonly 'long-to-double': "12x";
|
|
128
|
+
readonly 'float-to-int': "12x";
|
|
129
|
+
readonly 'float-to-long': "12x";
|
|
130
|
+
readonly 'float-to-double': "12x";
|
|
131
|
+
readonly 'double-to-int': "12x";
|
|
132
|
+
readonly 'double-to-long': "12x";
|
|
133
|
+
readonly 'double-to-float': "12x";
|
|
134
|
+
readonly 'int-to-byte': "12x";
|
|
135
|
+
readonly 'int-to-char': "12x";
|
|
136
|
+
readonly 'int-to-short': "12x";
|
|
137
|
+
readonly 'add-int': "23x";
|
|
138
|
+
readonly 'sub-int': "23x";
|
|
139
|
+
readonly 'mul-int': "23x";
|
|
140
|
+
readonly 'div-int': "23x";
|
|
141
|
+
readonly 'rem-int': "23x";
|
|
142
|
+
readonly 'and-int': "23x";
|
|
143
|
+
readonly 'or-int': "23x";
|
|
144
|
+
readonly 'xor-int': "23x";
|
|
145
|
+
readonly 'shl-int': "23x";
|
|
146
|
+
readonly 'shr-int': "23x";
|
|
147
|
+
readonly 'ushr-int': "23x";
|
|
148
|
+
readonly 'add-long': "23x";
|
|
149
|
+
readonly 'sub-long': "23x";
|
|
150
|
+
readonly 'mul-long': "23x";
|
|
151
|
+
readonly 'div-long': "23x";
|
|
152
|
+
readonly 'rem-long': "23x";
|
|
153
|
+
readonly 'and-long': "23x";
|
|
154
|
+
readonly 'or-long': "23x";
|
|
155
|
+
readonly 'xor-long': "23x";
|
|
156
|
+
readonly 'shl-long': "23x";
|
|
157
|
+
readonly 'shr-long': "23x";
|
|
158
|
+
readonly 'ushr-long': "23x";
|
|
159
|
+
readonly 'add-float': "23x";
|
|
160
|
+
readonly 'sub-float': "23x";
|
|
161
|
+
readonly 'mul-float': "23x";
|
|
162
|
+
readonly 'div-float': "23x";
|
|
163
|
+
readonly 'rem-float': "23x";
|
|
164
|
+
readonly 'add-double': "23x";
|
|
165
|
+
readonly 'sub-double': "23x";
|
|
166
|
+
readonly 'mul-double': "23x";
|
|
167
|
+
readonly 'div-double': "23x";
|
|
168
|
+
readonly 'rem-double': "23x";
|
|
169
|
+
readonly 'add-int/2addr': "12x";
|
|
170
|
+
readonly 'sub-int/2addr': "12x";
|
|
171
|
+
readonly 'mul-int/2addr': "12x";
|
|
172
|
+
readonly 'div-int/2addr': "12x";
|
|
173
|
+
readonly 'rem-int/2addr': "12x";
|
|
174
|
+
readonly 'and-int/2addr': "12x";
|
|
175
|
+
readonly 'or-int/2addr': "12x";
|
|
176
|
+
readonly 'xor-int/2addr': "12x";
|
|
177
|
+
readonly 'shl-int/2addr': "12x";
|
|
178
|
+
readonly 'shr-int/2addr': "12x";
|
|
179
|
+
readonly 'ushr-int/2addr': "12x";
|
|
180
|
+
readonly 'add-long/2addr': "12x";
|
|
181
|
+
readonly 'sub-long/2addr': "12x";
|
|
182
|
+
readonly 'mul-long/2addr': "12x";
|
|
183
|
+
readonly 'div-long/2addr': "12x";
|
|
184
|
+
readonly 'rem-long/2addr': "12x";
|
|
185
|
+
readonly 'and-long/2addr': "12x";
|
|
186
|
+
readonly 'or-long/2addr': "12x";
|
|
187
|
+
readonly 'xor-long/2addr': "12x";
|
|
188
|
+
readonly 'shl-long/2addr': "12x";
|
|
189
|
+
readonly 'shr-long/2addr': "12x";
|
|
190
|
+
readonly 'ushr-long/2addr': "12x";
|
|
191
|
+
readonly 'add-float/2addr': "12x";
|
|
192
|
+
readonly 'sub-float/2addr': "12x";
|
|
193
|
+
readonly 'mul-float/2addr': "12x";
|
|
194
|
+
readonly 'div-float/2addr': "12x";
|
|
195
|
+
readonly 'rem-float/2addr': "12x";
|
|
196
|
+
readonly 'add-double/2addr': "12x";
|
|
197
|
+
readonly 'sub-double/2addr': "12x";
|
|
198
|
+
readonly 'mul-double/2addr': "12x";
|
|
199
|
+
readonly 'div-double/2addr': "12x";
|
|
200
|
+
readonly 'rem-double/2addr': "12x";
|
|
201
|
+
readonly 'add-int/lit16': "22s";
|
|
202
|
+
readonly 'rsub-int': "22s";
|
|
203
|
+
readonly 'rsub-int/lit16': "22s";
|
|
204
|
+
readonly 'mul-int/lit16': "22s";
|
|
205
|
+
readonly 'div-int/lit16': "22s";
|
|
206
|
+
readonly 'rem-int/lit16': "22s";
|
|
207
|
+
readonly 'and-int/lit16': "22s";
|
|
208
|
+
readonly 'or-int/lit16': "22s";
|
|
209
|
+
readonly 'xor-int/lit16': "22s";
|
|
210
|
+
readonly 'add-int/lit8': "22b";
|
|
211
|
+
readonly 'rsub-int/lit8': "22b";
|
|
212
|
+
readonly 'mul-int/lit8': "22b";
|
|
213
|
+
readonly 'div-int/lit8': "22b";
|
|
214
|
+
readonly 'rem-int/lit8': "22b";
|
|
215
|
+
readonly 'and-int/lit8': "22b";
|
|
216
|
+
readonly 'or-int/lit8': "22b";
|
|
217
|
+
readonly 'xor-int/lit8': "22b";
|
|
218
|
+
readonly 'shl-int/lit8': "22b";
|
|
219
|
+
readonly 'shr-int/lit8': "22b";
|
|
220
|
+
readonly 'ushr-int/lit8': "22b";
|
|
221
|
+
readonly 'invoke-polymorphic': "45cc";
|
|
222
|
+
readonly 'invoke-polymorphic/range': "4rcc";
|
|
223
|
+
readonly 'invoke-custom': "35c";
|
|
224
|
+
readonly 'invoke-custom/range': "3rc";
|
|
225
|
+
};
|