code: public static int sizeOf(String typeDescriptor) {
  		if (typeDescriptor.length() != 1) {
  			return 1;
  		}
  		char ch = typeDescriptor.charAt(0);
  		if (ch == 'J' || ch == 'D') {
  			return 2;
  		}
  		else {
  			return 1;
  		}
  	}
docs: Return the size of a type. The size is usually 1 except for double and long which are of size 2. The descriptor
  passed in is the full descriptor, including any leading 'L' and trailing ';'.
  
  @param typeDescriptor the descriptor for a single type, may be primitive. For example: I, J, Z,
  Ljava/lang/String;
  @return the size of the descriptor (number of slots it will consume), either 1 or 2