public void newObject(TypeDesc type) { mAssembler.newObject(type); }
public void newObject(TypeDesc type, int dimensions) { mAssembler.newObject(type, dimensions); }
public void newObject(TypeDesc type, int dimensions) { mAssembler.newObject(type, dimensions); }
public void newObject(TypeDesc type) { mAssembler.newObject(type); }
assembler.newObject(((ConstantClassInfo)ci).getType()); } else { error(opcode, "Invalid constant type for new: " + ci); assembler.newObject(type); } else { error(opcode, "Invalid constant type for new: " + ci); if (ci instanceof ConstantClassInfo) { type = ((ConstantClassInfo)ci).getType(); assembler.newObject(type, dims); } else { error(opcode, "Invalid constant type for new: " + ci); assembler.newObject(type.toArrayType()); break;
/** * @param partialStartVar must not be null */ private Label[] jumpToPartialEntryPoints(CodeAssembler a, LocalVariable partialStartVar, int propertyCount) { // Create all the entry points for offset var, whose locations will be // set later. int[] cases = new int[propertyCount]; Label[] entryPoints = new Label[propertyCount]; for (int i=0; i<propertyCount; i++) { cases[i] = i; entryPoints[i] = a.createLabel(); } // Now jump in! Label errorLoc = a.createLabel(); a.loadLocal(partialStartVar); a.switchBranch(cases, entryPoints, errorLoc); errorLoc.setLocation(); TypeDesc errorType = TypeDesc.forClass(IllegalArgumentException.class); a.newObject(errorType); a.dup(); a.loadConstant("Illegal partial start offset"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject(); return entryPoints; }
/** * @param partialStartVar must not be null */ private Label[] jumpToPartialEntryPoints(CodeAssembler a, LocalVariable partialStartVar, int propertyCount) { // Create all the entry points for offset var, whose locations will be // set later. int[] cases = new int[propertyCount]; Label[] entryPoints = new Label[propertyCount]; for (int i=0; i<propertyCount; i++) { cases[i] = i; entryPoints[i] = a.createLabel(); } // Now jump in! Label errorLoc = a.createLabel(); a.loadLocal(partialStartVar); a.switchBranch(cases, entryPoints, errorLoc); errorLoc.setLocation(); TypeDesc errorType = TypeDesc.forClass(IllegalArgumentException.class); a.newObject(errorType); a.dup(); a.loadConstant("Illegal partial start offset"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject(); return entryPoints; }
stringRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(stringRefRef[0]); byteArrayRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(byteArrayRefRef[0]); bigIntegerRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigIntegerRefRef[0]); bigDecimalRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigDecimalRefRef[0]);
stringRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(stringRefRef[0]); byteArrayRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(byteArrayRefRef[0]); bigIntegerRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigIntegerRefRef[0]); bigDecimalRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigDecimalRefRef[0]);
stringRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(stringRefRef[0]); byteArrayRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(byteArrayRefRef[0]); bigIntegerRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigIntegerRefRef[0]); bigDecimalRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigDecimalRefRef[0]);
stringRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(stringRefRef[0]); byteArrayRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(byteArrayRefRef[0]); bigIntegerRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigIntegerRefRef[0]); bigDecimalRefRef[0] = a.createLocalVariable(null, refType); a.loadConstant(1); a.newObject(refType); a.storeLocal(bigDecimalRefRef[0]);
a.newObject(corruptEncodingEx); a.dup();
a.newObject(corruptEncodingEx); a.dup();
assembler.newObject(((ConstantClassInfo)ci).getType()); } else { error(opcode, "Invalid constant type for new: " + ci); assembler.newObject(type); } else { error(opcode, "Invalid constant type for new: " + ci); if (ci instanceof ConstantClassInfo) { type = ((ConstantClassInfo)ci).getType(); assembler.newObject(type, dims); } else { error(opcode, "Invalid constant type for new: " + ci); assembler.newObject(type.toArrayType()); break;