Examples of ireturn()


Examples of anvil.codec.Code.ireturn()

              code.self();
              context.compileArgumentList(target, nodes1, l_context);
              code.invokevirtual(target.getTypeRef(pool));
              if (castToBoolean) {
                code.invokevirtual(sig_toBoolean);
                code.ireturn();
              } else {
                code.areturn();
              }
              isfalse.bind();
            }
View Full Code Here

Examples of anvil.codec.Code.ireturn()

          code.self();
          context.compileArgumentList(target, nodes1, l_context);
          code.invokevirtual(target.getTypeRef(pool));
          if (castToBoolean) {
            code.invokevirtual(sig_toBoolean);
            code.ireturn();
          } else {
            code.areturn();
          }
          isfalse.bind();
        }
View Full Code Here

Examples of anvil.codec.Code.ireturn()

      code.self();
      context.compileArgumentList(callback, nodes2, l_context);
      code.invokevirtual(callback.getTypeRef(pool));
      if (castToBoolean) {
        code.invokevirtual(sig_toBoolean);
        code.ireturn();
      } else {
        code.areturn();
      }
   
    } else {
View Full Code Here

Examples of anvil.codec.Code.ireturn()

        code.aload(l_value);
      }
      code.invokespecial(pool.addMethodRef(clazz.getSuperClassIndex(),
        method.getName(), method.getDescriptor()));
      if (castToBoolean) {
        code.ireturn();
      } else {
        code.areturn();
      }
    }
   
View Full Code Here

Examples of anvil.codec.Code.ireturn()

    case 0:
      code.pop();
      code.vreturn();
      break;
    case 1:
      code.ireturn();
      break;
    case 2:
      code.areturn();
      break;
    }
View Full Code Here

Examples of anvil.codec.Code.ireturn()

    code.astore(code.addLocal());
    code.self();
    context.compileArgumentList(function, CAST_P1_NODE, 2);
    code.invokevirtual(function.getTypeRef(pool));
    code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"));
    code.ireturn();
    isfalse.bind();
    code.iconst(false);
    code.ireturn();
    context.popCode();
  }
View Full Code Here

Examples of anvil.codec.Code.ireturn()

    code.invokevirtual(function.getTypeRef(pool));
    code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"));
    code.ireturn();
    isfalse.bind();
    code.iconst(false);
    code.ireturn();
    context.popCode();
  }
 

  protected void compileCopyMethod(ByteCompiler context, MethodStatement callback, boolean iscopy, Field typefield)
View Full Code Here

Examples of anvil.codec.Code.ireturn()

   
    Method versionmethod = clazz.createMethod("getVersion", "()I", ACC_PUBLIC);
    code = versionmethod.getCode();
    context.pushCode(code);
    code.iconst(_envelope.getVersion());
    code.ireturn();

    clazz.createField("_module", "Lanvil/script/compiler/CompiledModule;", ACC_PUBLIC|ACC_STATIC);
    clazz.createField("_type", "Lanvil/core/Any;", ACC_PUBLIC|ACC_STATIC);

    context.popCode();
View Full Code Here

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

               "C".equals(returnType) ||  // char
               "I".equals(returnType) ||  // int
               "S".equals(returnType) ||  // short
               "Z".equals(returnType) ) { // boolean
      cb.iconst_0();
      cb.ireturn();
    } else if ("J".equals(returnType)) {  // long
      cb.lconst_0();
      cb.lreturn();
    } else if ("F".equals(returnType)) {  // float
      cb.fconst_0();
View Full Code Here

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

                // TODO: this code should really check if a Ruby equals method is implemented or not.
                if(simpleName.equals("equals") && paramTypes.length == 1 && paramTypes[0] == Object.class && returnType == Boolean.TYPE) {
                    mv.aload(0);
                    mv.aload(1);
                    mv.invokespecial(p(Object.class), "equals", sig(Boolean.TYPE, params(Object.class)));
                    mv.ireturn();
                } else if(simpleName.equals("hashCode") && paramTypes.length == 0 && returnType == Integer.TYPE) {
                    mv.aload(0);
                    mv.invokespecial(p(Object.class), "hashCode", sig(Integer.TYPE));
                    mv.ireturn();
                } else if(simpleName.equals("toString") && paramTypes.length == 0 && returnType == String.class) {
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.