/dalvik/dx/src/com/android/dx/io/ |
D | EncodedValueReader.java | 44 protected final ByteInput in; field in EncodedValueReader 46 public EncodedValueReader(ByteInput in) { in EncodedValueReader() argument 47 this.in = in; in EncodedValueReader() 50 public EncodedValueReader(EncodedValue in) { in EncodedValueReader() argument 51 this(in.asByteInput()); in EncodedValueReader() 55 int size = Leb128Utils.readUnsignedLeb128(in); in readArray() 64 int typeIndex = Leb128Utils.readUnsignedLeb128(in); in readAnnotation() 65 int size = Leb128Utils.readUnsignedLeb128(in); in readAnnotation() 69 visitAnnotationName(Leb128Utils.readUnsignedLeb128(in)); in readAnnotation() 75 int argAndType = in.readByte() & 0xff; in readValue() [all …]
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
D | InstructionCodec.java | 34 CodeInput in) throws EOFException { in FORMAT_00X() argument 47 CodeInput in) throws EOFException { in FORMAT_10X() argument 62 CodeInput in) throws EOFException { in FORMAT_12X() argument 81 CodeInput in) throws EOFException { in FORMAT_11N() argument 100 CodeInput in) throws EOFException { in FORMAT_11X() argument 116 CodeInput in) throws EOFException { in FORMAT_10T() argument 117 int baseAddress = in.cursor() - 1; in FORMAT_10T() 133 CodeInput in) throws EOFException { in FORMAT_20T() argument 134 int baseAddress = in.cursor() - 1; in FORMAT_20T() 137 int target = (short) in.read(); // sign-extend in FORMAT_20T() [all …]
|
D | DecodedInstruction.java | 69 public static DecodedInstruction decode(CodeInput in) throws EOFException { in decode() argument 70 int opcodeUnit = in.read(); in decode() 74 return format.decode(opcodeUnit, in); in decode() 85 ShortArrayCodeInput in = new ShortArrayCodeInput(encodedInstructions); in decodeAll() local 88 while (in.hasMore()) { in decodeAll() 89 decoded[in.cursor()] = DecodedInstruction.decode(in); in decodeAll()
|
/dalvik/dx/tests/094-scala-locals/ |
D | expected.txt | 6 live in:{} 13 live in:{} 20 live in:{} 27 live in:{} 34 live in:{14} 41 live in:{} 47 live in:{} 53 live in:{} 59 live in:{} 65 live in:{} [all …]
|
/dalvik/dx/tests/086-ssa-edge-split/ |
D | expected.txt | 6 live in:{} 13 live in:{} 19 live in:{} 26 live in:{} 31 live in:{} 40 live in:{} 48 live in:{} 56 live in:{} 64 live in:{} 71 live in:{} [all …]
|
/dalvik/opcode-gen/ |
D | README.txt | 4 # you may not use this file except in compliance with the License. 9 # Unless required by applicable law or agreed to in writing, software 23 * Update the file bytecode.txt, in this directory. 25 * Run the regen-all script, in this directory. This will regenerate a 26 number of tables, definitions, and declarations in the code, in 29 * Implement/update the opcode in C in vm/mterp/c/... 33 * Implement/update the instruction in assembly in vm/mterp/{arm*,x86*}/... 35 in mterp/config-* and running "int:fast" as above. 37 * Implement/update the instruction in 40 * Rebuild the interpreter code. See the notes in vm/mterp/ReadMe.txt for [all …]
|
/dalvik/dx/tests/087-ssa-local-vars/ |
D | expected.txt | 6 live in:{2} 13 live in:{} 19 live in:{} 26 live in:{} 31 live in:{} 37 live in:{} 45 live in:{12, 62, 63} 52 live in:{15, 62, 63} 59 live in:{15, 17, 62} 69 live in:{15, 17, 62} [all …]
|
/dalvik/dx/tests/083-ssa-phi-placement/ |
D | expected.txt | 6 live in:{} 14 live in:{} 20 live in:{} 27 live in:{} 32 live in:{} 41 live in:{} 53 live in:{} 62 live in:{} 71 live in:{} 80 live in:{} [all …]
|
/dalvik/dx/tests/117-modified-utf8/com/android/dx/util/ |
D | Mutf8Test.java | 26 ByteInput in = new ByteArrayByteInput( in testDecode() local 28 assertEquals('A', in.readByte()); in testDecode() 29 assertEquals("BC\u0000", Mutf8.decode(in, new char[3])); in testDecode() 30 assertEquals('E', in.readByte()); in testDecode()
|
/dalvik/tools/hprof-conv/ |
D | HprofConv.c | 196 static int ebReadString(ExpandBuf* pBuf, FILE* in) in ebReadString() argument 203 ic = getc(in); in ebReadString() 204 if (feof(in) || ferror(in)) { in ebReadString() 221 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument 228 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData() 230 if (eofExpected && feof(in) && !ferror(in)) { in ebReadData() 573 static int filterData(FILE* in, FILE* out) in filterData() argument 586 if (ebReadString(pBuf, in) != 0) in filterData() 609 if (ebReadData(pBuf, in, 12, FALSE) != 0) in filterData() 624 if (ebReadData(pBuf, in, 1, TRUE) != 0) in filterData() [all …]
|
/dalvik/dx/src/com/android/dx/merge/ |
D | DexMerger.java | 330 DexBuffer.Section in = source.open(section.off); in readUnsortedValues() local 332 int offset = in.getPosition(); in readUnsortedValues() 333 T value = read(in, indexMap, 0); in readUnsortedValues() 340 abstract T read(DexBuffer.Section in, IndexMap indexMap, int index); in read() argument 381 @Override String read(DexBuffer.Section in, IndexMap indexMap, int index) { in mergeStringIds() argument 382 return in.readString(); in mergeStringIds() 403 @Override Integer read(DexBuffer.Section in, IndexMap indexMap, int index) { in mergeTypeIds() argument 404 int stringIndex = in.readInt(); in mergeTypeIds() 427 @Override TypeList read(DexBuffer.Section in, IndexMap indexMap, int index) { in mergeTypeLists() argument 428 return indexMap.adjustTypeList(in.readTypeList()); in mergeTypeLists() [all …]
|
/dalvik/hit/src/com/android/hit/ |
D | HprofParser.java | 95 public HprofParser(DataInputStream in) { in HprofParser() argument 96 mInput = in; in HprofParser() 105 DataInputStream in = mInput; in parse() local 107 mIdSize = in.readInt(); in parse() 110 in.readLong(); // Timestamp, ignored for now in parse() 113 int tag = in.readUnsignedByte(); in parse() 114 int timestamp = in.readInt(); in parse() 115 int length = in.readInt(); in parse() 162 DataInputStream in = mInput; in readNullTerminatedString() local 164 for (int c = in.read(); c != 0; c = in.read()) { in readNullTerminatedString() [all …]
|
/dalvik/dx/src/com/android/dx/util/ |
D | Mutf8.java | 33 public static String decode(ByteInput in, char[] out) throws UTFDataFormatException { in decode() argument 36 char a = (char) (in.readByte() & 0xff); in decode() 44 int b = in.readByte() & 0xff; in decode() 50 int b = in.readByte() & 0xff; in decode() 51 int c = in.readByte() & 0xff; in decode()
|
D | Leb128Utils.java | 82 public static int readSignedLeb128(ByteInput in) { in readSignedLeb128() argument 89 cur = in.readByte() & 0xff; in readSignedLeb128() 110 public static int readUnsignedLeb128(ByteInput in) { in readUnsignedLeb128() argument 116 cur = in.readByte() & 0xff; in readUnsignedLeb128()
|
D | FileUtils.java | 75 FileInputStream in = new FileInputStream(file); in readFile() local 78 int amt = in.read(result, at, length); in readFile() 85 in.close(); in readFile()
|
/dalvik/vm/ |
D | README.txt | 10 global variables. Keep everything with non-local lifespan in "gDvm", 11 defined in Globals.h, so that all global VM state is in one place. 14 exit cleanly in valgrind.
|
/dalvik/tests/ |
D | README.txt | 5 in particular, the tests can be run on the desktop, on a USB-attached 9 For most tests, the sources are in the "src" subdirectory. Sources found 10 in the "src2" directory are compiled separately but to the same output 12 replacing class files created in the first pass. The "src-ex" directory
|
/dalvik/dx/tests/111-use-null-as-array/ |
D | info.txt | 2 of a known-null in contexts that require a specific type end up getting 3 converted to the type in question. When executed, this sort of code 8 there are some surprising instructions in there, such as using 9 aget-byte for what was a boolean[] in the source code. In these cases, 18 aspects of conversion end up altering the output in innocuous ways.
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | FileUtils.java | 75 FileInputStream in = new FileInputStream(file); in readFile() local 78 int amt = in.read(result, at, length); in readFile() 85 in.close(); in readFile()
|
/dalvik/tests/024-illegal-access/ |
D | info.txt | 1 Test that an attempt to access a private field results in a verification 2 error. Also try to access a non-public class in a different package with
|
/dalvik/tests/002-sleep/ |
D | info.txt | 2 mostly meant as an easy thing to modify in order to test other things 3 in an ad-hoc way.
|
/dalvik/vm/compiler/template/ |
D | Makefile-template | 4 # you may not use this file except in compliance with the License. 9 # Unless required by applicable law or agreed to in writing, software 28 # for arch in desktop armv5te; do TARGET_ARCH_EXT=$arch make -f Makefile-mterp; done 34 # Accumulate all possible dependencies for the generated files in a very 35 # conservative fashion. If it's not one of the generated files in "out", 41 # assembly file, though in practice one or the other could be empty.
|
/dalvik/vm/mterp/ |
D | Makefile-mterp | 4 # you may not use this file except in compliance with the License. 9 # Unless required by applicable law or agreed to in writing, software 28 # for arch in desktop armv5te; do TARGET_ARCH_EXT=$arch make -f Makefile-mterp; done 34 # Accumulate all possible dependencies for the generated files in a very 35 # conservative fashion. If it's not one of the generated files in "out", 42 # assembly file, though in practice one or the other could be empty.
|
D | NOTES.txt | 10 and method returns. The interpreter must also be prepared to switch in 20 (A debugger can in theory cause the interpreter to advance one instruction 21 at a time, but since that only happens in the "debug" interpreter it's not 41 The return value from a method is held in local storage (on the native 42 stack for the portable interpreter, and in glue->retval for asm). It's not 48 single-step by individual bytecodes, but in practice we always step by 53 * Don't do anything that can cause a GC in the invoke-* handler after 60 used in a return-object instruction for a brief period. The easiest way 61 to accomplish this is to store it in the interpreted stack where the GC 71 in the usual "retval".
|
/dalvik/dx/ |
D | README.txt | 1 Home of Dalvik eXchange, the thing that takes in class files and 2 reformulates them for consumption in the VM. It also does a few other
|