Examples of dup()


Examples of clojure.asm.commons.GeneratorAdapter.dup()

      clinitgen.push(constantsID);
      clinitgen.invokeVirtual(DYNAMIC_CLASSLOADER_TYPE, getConstantsMethod);

      for(int i = 0; i < constants.count(); i++)
        {
        clinitgen.dup();
        clinitgen.push(i);
        clinitgen.arrayLoad(OBJECT_TYPE);
        clinitgen.checkCast(constantType(i));
        clinitgen.putStatic(fntype, constantName(i), constantType(i));
        }
View Full Code Here

Examples of cn.wensiqun.asmsupport.asm.InstructionHelper.dup()

            int len = Array.getLength(arrayOrElement);
            ih.push(len);
            AClass nextDimType = ((ArrayClass)acls).getNextDimType();
            ih.newArray(nextDimType.getType());
            if(len > 0){
                ih.dup()
            }
            for(int i=0; i<len ;i++){
                ih.push(i);
                loopArray(nextDimType, Array.get(arrayOrElement, i));
                ih.arrayStore(acls.getType());
View Full Code Here

Examples of com.caucho.bytecode.CodeWriterAttribute.dup()

    CodeWriterAttribute code = jMethod.createCodeWriter();
    code.setMaxLocals(1 + 2 * parameterTypes.length);
    code.setMaxStack(3 + 2 * parameterTypes.length);

    code.newInstance("java/lang/UnsupportedOperationException");
    code.dup();
    code.invokespecial("java/lang/UnsupportedOperationException",
                       "<init>",
                       "()V",
                       3, 1);
    code.addThrow();
View Full Code Here

Examples of com.facebook.presto.byteCode.Block.dup()

        block.invokeDynamic(functionBinding.getName(), methodType, functionBinding.getBindingId());

        if (functionBinding.isNullable()) {
            if (unboxedReturnType.isPrimitive()) {
                LabelNode notNull = new LabelNode("notNull");
                block.dup(methodType.returnType())
                        .ifNotNullGoto(notNull)
                        .putVariable("wasNull", true)
                        .comment("swap boxed null with unboxed default")
                        .pop(methodType.returnType())
                        .pushJavaDefault(unboxedReturnType)
View Full Code Here

Examples of com.facebook.swift.codec.internal.compiler.byteCode.MethodDefinition.dup()

        ).addException(Exception.class);

        // TProtocolReader reader = new TProtocolReader(protocol);
        read.addLocalVariable(type(TProtocolReader.class), "reader");
        read.newObject(TProtocolReader.class);
        read.dup();
        read.loadVariable("protocol");
        read.invokeConstructor(type(TProtocolReader.class), type(TProtocol.class));
        read.storeVariable("reader");

        // read all of the data in to local variables
View Full Code Here

Examples of com.google.refine.model.Row.dup()

                Map<String, Recon> reconMap = new HashMap<String, Recon>();
               
                for (int r = 0; r < _oldRows.size(); r++) {
                    Row oldRow = _oldRows.get(r);
                    if (r < rowIndex) {
                        _newRows.add(oldRow.dup());
                        continue;
                    }
                   
                    if (dataExtension == null || dataExtension.data.length == 0) {
                        _newRows.add(oldRow);
View Full Code Here

Examples of com.sleepycat.db.Cursor.dup()

                cdbConfig = null;
            }
            Cursor cursor;
            if (cursors.size() > 0) {
                Cursor other = ((Cursor) cursors.get(0));
                cursor = other.dup(false);
            } else {
                cursor = db.openCursor(null, cdbConfig);
            }
            cursors.add(cursor);
            return cursor;
View Full Code Here

Examples of com.sleepycat.db.Dbc.dup()

            }

            Dbc cursor;
            if (cursors.size() > 0) {
                Dbc other = ((Dbc) cursors.get(0));
                cursor = other.dup(0);
            } else {
                cursor = db.cursor(null, flags);
            }
            cursors.add(cursor);
            return cursor;
View Full Code Here

Examples of com.sleepycat.je.Cursor.dup()

                cdbConfig = null;
            }
            Cursor cursor;
            if (cursors.size() > 0) {
                Cursor other = ((Cursor) cursors.get(0));
                cursor = other.dup(false);
            } else {
                cursor = db.openCursor(null, cdbConfig);
            }
            cursors.add(cursor);
            return cursor;
View Full Code Here

Examples of com.sun.tools.javac.code.Scope.dup()

            throw new AssertionError("Broken use of LetExpr");
        }
       
        // make a new environment which captures the current one
        Env<AttrContext> localEnv =
                env.dup(tree, env.info.dup(scope.dup()));

        // Field initialisers have not been entered yet, so we need to do it now:
        if (localEnv.info.scope.owner.kind == Kinds.TYP) {
            memberEnter.memberEnter(tree, localEnv);
            annotate.flush();
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.