private static void primitive2b(MethodVisitor mv,ClassNode type){
  Label trueLabel=new Label();
  Label falseLabel=new Label();
  if (type == ClassHelper.double_TYPE) {
    mv.visitInsn(DCONST_0);
    mv.visitInsn(DCMPL);
  }
 else   if (type == ClassHelper.long_TYPE) {
    mv.visitInsn(LCONST_0);
    mv.visitInsn(LCMP);
  }
 else   if (type == ClassHelper.float_TYPE) {
    mv.visitInsn(FCONST_0);
    mv.visitInsn(FCMPL);
  }
 else   if (type == ClassHelper.int_TYPE) {
  }
  mv.visitJumpInsn(IFEQ,falseLabel);
  mv.visitInsn(ICONST_1);
  mv.visitJumpInsn(GOTO,trueLabel);
  mv.visitLabel(falseLabel);
  mv.visitInsn(ICONST_0);
  mv.visitLabel(trueLabel);
}

private static void primitive2b ( MethodVisitor mv , ClassNode type ) { Label trueLabel = new Label ( ) ; Label falseLabel = new Label ( ) ; if ( type == ClassHelper . double_TYPE ) { mv . visitInsn ( DCONST_0 ) ; mv . visitInsn ( DCMPL ) ; } else if ( type == ClassHelper . long_TYPE ) { mv . visitInsn ( LCONST_0 ) ; mv . visitInsn ( LCMP ) ; } else if ( type == ClassHelper . float_TYPE ) { mv . visitInsn ( FCONST_0 ) ; mv . visitInsn ( FCMPL ) ; } else if ( type == ClassHelper . int_TYPE ) { } mv . visitJumpInsn ( IFEQ , falseLabel ) ; mv . visitInsn ( ICONST_1 ) ; mv . visitJumpInsn ( GOTO , trueLabel ) ; mv . visitLabel ( falseLabel ) ; mv . visitInsn ( ICONST_0 ) ; mv . visitLabel ( trueLabel ) ; }
convert primitive ( not boolean ) to boolean or byte . type needs to be a primitive type ( not checked )
