Examples of aconst_null()


Examples of anvil.codec.Code.aconst_null()

      "(Lanvil/script/StackFrame;Lanvil/script/Function;)V";

    if (_context != null) {
      code.aload(_context.getFrameIndex());
    } else {
      code.aconst_null();
    }
    code.getstatic(pool.addFieldRef(_thunk.getParent().getTypeRef(pool), name, "Lanvil/script/Function;"));
    if (inclass) {
      code.self();
    }
View Full Code Here

Examples of anvil.codec.Code.aconst_null()

          parameters[c++].compile(this, Node.GET);
        } else {
          if (defaultValue != null) {
            constant(defaultValue, true);
          } else {
            code.aconst_null();
          }
        }
        break;

      case CompilableFunction.PARAMETER_OBJECT:
View Full Code Here

Examples of anvil.codec.Code.aconst_null()

          if (defaultValue != null) {
            constant(defaultValue, true);
            code.invokevirtual(pool.addMethodRef(TYPE_ANY,
              "toObject", "()Ljava/lang/Object;"));
          } else {
            code.aconst_null();
          }
        }
        break;

      case CompilableFunction.PARAMETER_BOOLEAN:
View Full Code Here

Examples of anvil.codec.Code.aconst_null()

          }
        } else {
          if (defaultValue != null) {
            code.astring(defaultValue.toString());
          } else {
            code.aconst_null();
          }
        }
        break;

      case CompilableFunction.PARAMETER_ARRAY:
View Full Code Here

Examples of anvil.codec.Code.aconst_null()

          code.iconst(i++);
          Doc doc = type.getDocument();
          if (doc != null) {
            doc.compile(code);
          } else {
            code.aconst_null();
          }
          code.aastore();     

          code.dup();
          code.iconst(i++);
View Full Code Here

Examples of anvil.codec.Code.aconst_null()

          case Type.INTERFACE_METHOD:
          case Type.CONSTRUCTOR:
            ((FunctionStatement)type).compileDescriptor(context);
            break;
          default:
            code.aconst_null();
          }
          code.aastore();
        }
        break;
       
View Full Code Here

Examples of gov.nasa.jpf.jvm.CodeBuilder.aconst_null()

    } else if ("D".equals(returnType)) {  // double
      cb.dconst_0();
      cb.dreturn();
    } else if ('L' == returnType.charAt(0) ||
               '[' == returnType.charAt(0)) {  // references
      cb.aconst_null();
      cb.areturn();
    }
    cb.installCode();
    logger.finer("Default implementation for method: "
        + method.getReturnTypeName() + " " + method.getLongName() + "\n\t"
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.aconst_null()

/*     */
/*     */       public void processDefault()
/*     */       {
/*     */       }
/*     */     });
/* 150 */     e.aconst_null();
/* 151 */     e.return_value();
/* 152 */     e.end_method();
/*     */   }
/*     */
/*     */   private void generateKeySet(String[] allNames)
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.aconst_null()

/*      */       }
/*      */       public void processDefault() {
/*  861 */         this.val$e.throw_exception(Enhancer.ILLEGAL_ARGUMENT_EXCEPTION, "Constructor not found");
/*      */       }
/*      */     });
/*  864 */     e.aconst_null();
/*  865 */     e.invoke_static_this(SET_THREAD_CALLBACKS);
/*  866 */     e.return_value();
/*  867 */     e.end_method();
/*      */   }
/*      */
View Full Code Here

Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.aconst_null()

        } else {
            m.invokevirtual(p(method.getDeclaringClass()), method.getName(), sig(returnType, paramTypes));
        }

        if (returnType == void.class) {
            m.aconst_null();
        } else if (returnType.isPrimitive()) {
            Class boxType = getBoxType(returnType);
            m.invokestatic(p(boxType), "valueOf", sig(boxType, returnType));
        }
        m.areturn();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.