Lines Matching refs:nbytes

289 allocate(CrwClassImage *ci, int nbytes)
293 if ( nbytes <= 0 ) {
296 ptr = malloc(nbytes);
304 reallocate(CrwClassImage *ci, void *optr, int nbytes)
311 if ( nbytes <= 0 ) {
314 ptr = realloc(optr, nbytes);
322 allocate_clean(CrwClassImage *ci, int nbytes)
326 if ( nbytes <= 0 ) {
329 ptr = calloc(nbytes, 1);
764 ByteOffset nbytes = 0;
767 bytecodes[nbytes++] = (ByteCode)JVM_OPC_ldc;
769 bytecodes[nbytes++] = (ByteCode)JVM_OPC_ldc_w;
770 bytecodes[nbytes++] = (ByteCode)((index >> 8) & 0xFF);
772 bytecodes[nbytes++] = (ByteCode)(index & 0xFF);
773 return nbytes;
779 ByteOffset nbytes = 0;
782 bytecodes[nbytes++] = (ByteCode)(JVM_OPC_iconst_0+number);
784 bytecodes[nbytes++] = (ByteCode)JVM_OPC_bipush;
785 bytecodes[nbytes++] = (ByteCode)(number & 0xFF);
787 bytecodes[nbytes++] = (ByteCode)JVM_OPC_sipush;
788 bytecodes[nbytes++] = (ByteCode)((number >> 8) & 0xFF);
789 bytecodes[nbytes++] = (ByteCode)(number & 0xFF);
791 return nbytes;
799 ByteOffset nbytes = 0;
835 bytecodes[nbytes++] = (ByteCode)JVM_OPC_dup;
838 bytecodes[nbytes++] = (ByteCode)JVM_OPC_aload_0;
842 nbytes += push_short_constant_bytecodes(bytecodes+nbytes,
846 nbytes += push_pool_constant_bytecodes(bytecodes+nbytes,
851 nbytes += push_short_constant_bytecodes(bytecodes+nbytes,
854 bytecodes[nbytes++] = (ByteCode)JVM_OPC_invokestatic;
855 bytecodes[nbytes++] = (ByteCode)(method_index >> 8);
856 bytecodes[nbytes++] = (ByteCode)method_index;
857 bytecodes[nbytes] = 0;
858 CRW_ASSERT(ci, nbytes<max_nbytes);
864 return nbytes;
872 ByteOffset nbytes = 0;
879 nbytes = injection_template(mi,
883 nbytes += injection_template(mi,
884 bytecodes+nbytes, len-nbytes, ci->call_tracker_index);
886 return nbytes;
894 ByteOffset nbytes = 0;
906 nbytes = injection_template(mi,
913 return nbytes;
922 ByteOffset nbytes;
925 nbytes = 0;
935 nbytes = injection_template(mi,
941 return nbytes;