Searched defs:size (Results 101 - 125 of 140) sorted by relevance

123456

/dalvik/vm/
H A DAllocTracker.cpp41 * Changing the window size is easy, changing the max stack depth is harder
42 * because we go from an array of fixed-size structs to variable-sized data.
54 u4 size; /* total size requested */ member in struct:AllocRecord
187 void dvmDoTrackAllocation(ClassObject* clazz, size_t size) argument
208 pRec->size = size;
238 (4b) total allocation size
258 The chief reason for using a string table here is to keep the size of
370 * The size o
447 size_t size = 0; local
[all...]
H A DMisc.cpp590 size_t strlcpy(char *dst, const char *src, size_t size) { argument
594 if (srcLength > (size - 1)) {
595 copyLength = size - 1;
598 if (size != 0) {
773 // First try with a small fixed size buffer
790 // Repeatedly increase buffer size until it fits
794 // Older behavior: just try doubling the buffer size
H A DSync.cpp308 cp = logWriteString(cp, selfName.c_str(), selfName.size());
1235 size_t size; local
1262 size = dvmArrayObjectSize((ArrayObject *)obj);
1263 size = (size + 2) & ~2;
1265 size = obj->clazz->objectSize;
1267 return *(u4 *)(((char *)obj) + size);
H A DException.cpp1368 void dvmThrowNegativeArraySizeException(s4 size) { argument
1369 dvmThrowExceptionFmt(gDvm.exNegativeArraySizeException, "%d", size);
/dalvik/vm/compiler/codegen/x86/
H A DBytecodeVisitor.cpp26 //! Returns size of the current bytecode in u2 unit
453 void setVRToNonConst(int regNum, OpndSize size) { argument
462 if(constVRTable[k].regNum == regNum + 1 && size == OpndSize_64) {
471 if(size == OpndSize_64 && indexH >= 0) {
478 void setVRToConst(int regNum, OpndSize size, int* tmpValue) { argument
487 if(constVRTable[k].regNum == regNum + 1 && size == OpndSize_64) {
499 if(size == OpndSize_64) {
509 invalidateVRDueToConst(regNum, size);
1212 //! This function updates infoArray with virtual registers accessed when lowering the bytecode, and returns size of the bytecode in unit of u2
H A DCodegenInterface.cpp148 void dvmCompilerCacheClear(char *start, size_t size) argument
151 memset(start, 0xFF, size);
267 OpndSize size; local
269 relativeNCG = getRelativeNCG(targetId, JmpCall_uncond, &unknown, &size);
270 unconditional_jump_int(relativeNCG, size);
277 OpndSize size; local
279 relativeNCG = getRelativeNCG(targetId, JmpCall_cond, &unknown, &size);
280 conditional_jump_int(cc, relativeNCG, size);
464 ALOGI("inlineCachePatchEnqueue chain %p to method %s%s inst size %d",
1387 /* We hit code cache size limi
[all...]
/dalvik/vm/compiler/codegen/x86/libenc/
H A Denc_wrapper.cpp89 if(opnd.size() != OpndSize_32) {
91 getOpndSizeString(opnd.size()));
159 extern "C" ENCODER_DECLARE_EXPORT char * encoder_imm(Mnemonic m, OpndSize size, int imm, char * stream) { argument
162 add_imm(args, size, imm, true/*is_signed*/);
187 add_imm(args, decInst.operands[0].size(), imm, true/*is_signed*/);
195 extern "C" ENCODER_DECLARE_EXPORT char * encoder_mem(Mnemonic m, OpndSize size, argument
198 add_m(args, base_reg, disp, size);
207 extern "C" ENCODER_DECLARE_EXPORT char * encoder_reg(Mnemonic m, OpndSize size, argument
211 add_r(args, 0/*eax*/, size);
212 add_r(args, 3/*edx*/, size);
224 encoder_reg_reg(Mnemonic m, OpndSize size, int reg, bool isPhysical, int reg2, bool isPhysical2, LowOpndRegType type, char * stream) argument
242 encoder_mem_reg(Mnemonic m, OpndSize size, int disp, int base_reg, bool isBasePhysical, int reg, bool isPhysical, LowOpndRegType type, char * stream) argument
256 encoder_mem_scale_reg(Mnemonic m, OpndSize size, int base_reg, bool isBasePhysical, int index_reg, bool isIndexPhysical, int scale, int reg, bool isPhysical, LowOpndRegType type, char * stream) argument
270 encoder_reg_mem_scale(Mnemonic m, OpndSize size, int reg, bool isPhysical, int base_reg, bool isBasePhysical, int index_reg, bool isIndexPhysical, int scale, LowOpndRegType type, char * stream) argument
285 encoder_mem_disp_scale_reg(Mnemonic m, OpndSize size, int base_reg, bool isBasePhysical, int disp, int index_reg, bool isIndexPhysical, int scale, int reg, bool isPhysical, LowOpndRegType type, char * stream) argument
299 encoder_movzs_mem_disp_scale_reg(Mnemonic m, OpndSize size, int base_reg, bool isBasePhysical, int disp, int index_reg, bool isIndexPhysical, int scale, int reg, bool isPhysical, LowOpndRegType type, char * stream) argument
314 encoder_reg_mem_disp_scale(Mnemonic m, OpndSize size, int reg, bool isPhysical, int base_reg, bool isBasePhysical, int disp, int index_reg, bool isIndexPhysical, int scale, LowOpndRegType type, char* stream) argument
330 encoder_reg_mem(Mnemonic m, OpndSize size, int reg, bool isPhysical, int disp, int base_reg, bool isBasePhysical, LowOpndRegType type, char * stream) argument
344 encoder_imm_reg(Mnemonic m, OpndSize size, int imm, int reg, bool isPhysical, LowOpndRegType type, char * stream) argument
375 encoder_imm_mem(Mnemonic m, OpndSize size, int imm, int disp, int base_reg, bool isBasePhysical, char * stream) argument
392 encoder_fp_mem(Mnemonic m, OpndSize size, int reg, int disp, int base_reg, bool isBasePhysical, char * stream) argument
406 encoder_mem_fp(Mnemonic m, OpndSize size, int disp, int base_reg, bool isBasePhysical, int reg, char * stream) argument
447 encoder_movez_mem_to_reg(OpndSize size, int disp, int base_reg, bool isBasePhysical, int reg, bool isPhysical, char * stream) argument
461 encoder_moves_mem_to_reg(OpndSize size, int disp, int base_reg, bool isBasePhysical, int reg, bool isPhysical, char * stream) argument
475 encoder_movez_reg_to_reg(OpndSize size, int reg, bool isPhysical, int reg2, bool isPhysical2, LowOpndRegType type, char * stream) argument
489 encoder_moves_reg_to_reg(OpndSize size, int reg, bool isPhysical,int reg2, bool isPhysical2, LowOpndRegType type, char * stream) argument
[all...]
/dalvik/dx/src/com/android/dx/io/
H A DDexBuffer.java59 checkBounds(index, tableOfContents.stringIds.size);
63 @Override public int size() {
64 return tableOfContents.stringIds.size;
70 checkBounds(index, tableOfContents.typeIds.size);
73 @Override public int size() {
74 return tableOfContents.typeIds.size;
80 checkBounds(index, tableOfContents.typeIds.size);
83 @Override public int size() {
84 return tableOfContents.typeIds.size;
90 checkBounds(index, tableOfContents.protoIds.size);
580 ensureCapacity(int size) argument
[all...]
/dalvik/tools/hprof-conv/
H A DHprofConv.c160 * Ensure that the buffer can hold at least "size" additional bytes.
162 static int ebEnsureCapacity(ExpandBuf* pBuf, int size) argument
164 assert(size > 0);
166 if (pBuf->curLen + size > pBuf->maxLen) {
167 int newSize = pBuf->curLen + size + 128; /* oversize slightly */
170 fprintf(stderr, "ERROR: realloc failed on size=%d\n", newSize);
178 assert(pBuf->curLen + size <= pBuf->maxLen);
306 * Get the size, in bytes, of one of the "basic types".
606 * (4b) identifier size, always 4
/dalvik/vm/compiler/codegen/arm/Thumb/
H A DFactory.cpp470 int rIndex, int rDest, int scale, OpSize size)
481 switch (size) {
513 int rIndex, int rSrc, int scale, OpSize size)
523 switch (size) {
577 OpSize size, int sReg)
595 switch (size) {
698 int displacement, int rDest, OpSize size,
702 size, sReg);
715 OpSize size)
725 switch (size) {
469 loadBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rDest, int scale, OpSize size) argument
512 storeBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rSrc, int scale, OpSize size) argument
575 loadBaseDispBody(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, int rDestHi, OpSize size, int sReg) argument
697 loadBaseDisp(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, OpSize size, int sReg) argument
713 storeBaseDispBody(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, int rSrcHi, OpSize size) argument
807 storeBaseDisp(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, OpSize size) argument
[all...]
/dalvik/vm/compiler/codegen/mips/Mips32/
H A DFactory.cpp422 int rIndex, int rDest, int scale, OpSize size)
432 assert((size == kWord) || (size == kSingle));
433 size = kSingle;
435 if (size == kSingle)
436 size = kWord;
447 switch (size) {
484 int rIndex, int rSrc, int scale, OpSize size)
495 assert((size == kWord) || (size
421 loadBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rDest, int scale, OpSize size) argument
483 storeBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rSrc, int scale, OpSize size) argument
592 loadBaseDispBody(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, int rDestHi, OpSize size, int sReg) argument
702 loadBaseDisp(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, OpSize size, int sReg) argument
718 storeBaseDispBody(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, int rSrcHi, OpSize size) argument
811 storeBaseDisp(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, OpSize size) argument
[all...]
/dalvik/vm/jdwp/
H A DJdwpEvent.cpp206 JdwpStepSize size = static_cast<JdwpStepSize>(pMod->step.size); local
208 dvmDbgConfigureStep(pMod->step.threadId, size, depth);
/dalvik/dx/etc/
H A Djasmin.jar ... .util.Enumeration en jas.ClassEnv e int size () throws jas.jasError java.util.Enumeration en ...
/dalvik/dx/src/com/android/dx/merge/
H A DDexMerger.java116 contentsOut.mapList.size = 1;
172 contentsOut.header.size = 1;
194 int wastedByteCount = writerSizes.size() - compactedSizes.size();
208 dexA.getTableOfContents().classDefs.size,
210 dexB.getTableOfContents().classDefs.size,
212 result.getTableOfContents().classDefs.size,
250 if (a == null && aIndex < aSection.size) {
254 if (b == null && bIndex < bSection.size) {
291 getSection(contentsOut).size
1048 public int size() { method in class:DexMerger.WriterSizes
[all...]
/dalvik/vm/alloc/
H A DCopying.cpp216 * The starting size of the heap. This value is the same as the
222 * The maximum size of the heap. This value is the same as the
228 * The current, committed size of the heap. At present, this is
467 size_t size = sizeof(heapSource->blockQueue[0]); local
468 heapSource->blockQueue = malloc(heapSource->totalBlocks*size);
470 memset(heapSource->blockQueue, 0xCC, heapSource->totalBlocks*size);
476 size_t size = sizeof(heapSource->blockSpace[0]); local
477 heapSource->blockSpace = calloc(1, heapSource->totalBlocks*size);
632 void *dvmHeapSourceAllocAndGrow(size_t size) argument
634 return dvmHeapSourceAlloc(size);
638 allocateGray(size_t size) argument
[all...]
H A DHeapSource.cpp65 /* The largest size that this heap is allowed to grow to.
106 /* The starting heap size.
115 * The largest size we permit the heap to grow. This value allows
116 * the user to limit the heap growth below the maximum size. This
117 * is a work around until we can dynamically set the maximum size.
118 * This value can range between the starting size and the maximum
119 * size but should never be set below the current footprint of the
124 /* The desired max size of the heap source as a whole.
136 * when the heap size is below the maximum size o
347 size_t size = -increment; local
[all...]
/dalvik/vm/analysis/
H A DDexPrepare.cpp208 * We have the correct file open and locked. If the file size is zero,
596 * In theory the file could change size and bits could shift around.
1432 * The chunk header fields are always in "native" byte order. If "size"
1435 static bool writeChunk(int fd, u4 type, const void* data, size_t size) argument
1441 u4 size; member in struct:__anon46::__anon47
1447 ALOGV("Writing chunk, type=%.4s size=%d", (char*) &type, size);
1450 header.ts.size = (u4) size;
1457 if (size >
[all...]
/dalvik/vm/compiler/
H A DFrontend.cpp987 int size; local
996 * ushort size number of entries in the table
998 * int targets[size] branch targets, relative to switch opcode
1000 * Total size is (4+size*2) 16-bit code units.
1004 size = switchData[1];
1011 * ushort size number of entries in the table; > 0
1012 * int keys[size] keys, sorted low-to-high; 32-bit aligned
1013 * int targets[size] branch targets, relative to switch opcode
1015 * Total size i
1965 int size = switchData[1]; local
[all...]
/dalvik/vm/compiler/codegen/arm/Thumb2/
H A DFactory.cpp714 int rIndex, int rDest, int scale, OpSize size)
724 assert((size == kWord) || (size == kSingle));
726 size = kSingle;
728 if (size == kSingle)
729 size = kWord;
732 switch (size) {
778 int rIndex, int rSrc, int scale, OpSize size)
788 assert((size == kWord) || (size
713 loadBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rDest, int scale, OpSize size) argument
777 storeBaseIndexed(CompilationUnit *cUnit, int rBase, int rIndex, int rSrc, int scale, OpSize size) argument
842 loadBaseDispBody(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, int rDestHi, OpSize size, int sReg) argument
959 loadBaseDisp(CompilationUnit *cUnit, MIR *mir, int rBase, int displacement, int rDest, OpSize size, int sReg) argument
976 storeBaseDispBody(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, int rSrcHi, OpSize size) argument
1072 storeBaseDisp(CompilationUnit *cUnit, int rBase, int displacement, int rSrc, OpSize size) argument
[all...]
/dalvik/vm/interp/
H A DInterp.cpp246 ALOGV("+++ increasing breakpoint set size to %d", newSize);
503 bool dvmAddSingleStep(Thread* thread, int size, int depth) argument
522 pCtrl->size = static_cast<JdwpStepSize>(size);
595 ALOGV("##### step init: thread=%p meth=%p '%s' line=%d frameDepth=%d depth=%s size=%s",
599 dvmJdwpStepSizeStr(pCtrl->size));
782 } else if (pCtrl->size == SS_MIN) {
805 if (pCtrl->size == SS_MIN) {
996 * Returns 3 if we don't find a match (it's the size of the packed-switch
1002 u2 size; local
1055 u2 size; local
1124 copySwappedArrayData(void* dest, const u2* src, u4 size, u2 width) argument
1180 u4 size; local
[all...]
H A DJit.cpp490 ALOGD("JIT: table size is %d, entries used is %d",
1112 * threads. We defer the setting of the profile prefix size until
1167 * shape of the filterKey. Unfortunately, there is no "one size fits
1229 * large loop that contains more traces than the size of our
1311 bool dvmJitResizeJitTable( unsigned int size )
1320 assert(size && !(size & (size - 1))); /* Is power of 2? */
1322 ALOGI("Jit: resizing JitTable from %d to %d", gDvmJit.jitTableSize, size);
1324 if (size <
1385 unsigned int size = gDvmJit.jitTableSize; local
[all...]
/dalvik/vm/reflect/
H A DAnnotation.cpp20 * space choices are weighted heavily toward small size.
476 * encoded_array format, which is a size followed by a stream
485 u4 size, count; local
487 size = readUleb128(&ptr);
488 LOGVV("--- annotation array, size is %u at %p", size, ptr);
490 size, ALLOC_DEFAULT);
492 ALOGE("annotation element array alloc failed (%d)", size);
497 for (count = 0; count < size; count++) {
746 u4 typeIdx, size, coun local
984 u4 size = readUleb128(&ptr); local
1021 u4 size; local
1104 u4 typeIdx, size; local
2196 u4 size; local
[all...]
/dalvik/dexdump/
H A DDexDump.cpp478 u4 size = *(pOpt+1); local
494 verboseStr, size);
496 size = (size + 8 + 7) & ~7;
497 pOpt += size / sizeof(u4);
829 * size, so we add explicit space for it here.
1094 int size = get2LE((const u1*)(insns+2)) | local
1096 // The plus 1 is to round up for odd size and width.
1097 insnWidth = 4 + ((size * width) + 1) / 2;
1128 printf(" insns size
[all...]
/dalvik/libdex/
H A DDexSwapVerify.cpp247 * Calculate the required size (in elements) of the array pointed at by
405 SWAP_FIELD4(pMap->size);
406 count = pMap->size;
413 SWAP_FIELD4(item->size);
425 ALOGE("Map item after end of file: %x, size %#x",
431 u4 icount = item->size;
518 ALOGE("Unable to allocate data map (size %#x)", dataItemCount);
542 sectionOffset + sizeof(u4) + (pMap->size * sizeof(DexMapItem));
1008 u4 size = interfaces->size; local
1438 verifyFields(const CheckState* state, u4 size, DexField* fields, bool expectStatic) argument
1464 verifyMethods(const CheckState* state, u4 size, DexMethod* methods, bool expectDirect) argument
1658 int size = readAndVerifySignedLeb128(&ptr, fileEnd, &okay); local
2110 readUnsignedLittleEndian(const CheckState* state, const u1** pData, u4 size) argument
2131 u4 size = readAndVerifyUnsignedLeb128(&data, state->fileEnd, &okay); local
2292 u4 size = readAndVerifyUnsignedLeb128(&data, fileEnd, &okay); local
[all...]
/dalvik/vm/compiler/codegen/arm/
H A DAssemble.cpp44 k3, k3s, k3e, flags, name, fmt, size) \
46 {k3, k3s, k3e}}, opcode, flags, name, fmt, size}
1163 if (encoder->size == 2) {
1183 /* Reserved for the size field of class pointer pool */
1220 * | # Class pointer pool size | -> 4 bytes
1222 * | Class pointer pool | -> 4-byte aligned, variable size
1227 * | Literal pool | -> 4-byte aligned, variable size
1277 /* 4 is the size of the profile count */
1283 /* Get the size of all chaining cells */
1309 /* Get the size o
1324 matchSignatureBreakpoint(const CompilationUnit *cUnit, unsigned int size) argument
2385 selfVerificationLoad(int addr, int size) argument
2460 selfVerificationStore(int addr, int data, int size) argument
2620 int size = kSVWord; local
[all...]

Completed in 811 milliseconds

123456