protected void writeInfo(byte[] code, int offset) { int variableIndexSize = variableIndexSize(); int constantSize = constantSize(); if (requiredVariableIndexSize() > variableIndexSize) { throw new IllegalArgumentException("Instruction has invalid variable index size ("+this.toString(offset)+")"); } if (requiredConstantSize() > constantSize) { throw new IllegalArgumentException("Instruction has invalid constant size ("+this.toString(offset)+")"); } writeValue(code, offset, variableIndex, variableIndexSize); offset += variableIndexSize; writeSignedValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int variableIndexSize = variableIndexSize(); int constantSize = constantSize(); if (requiredVariableIndexSize() > variableIndexSize) { throw new IllegalArgumentException("Instruction has invalid variable index size ("+this.toString(offset)+")"); } if (requiredConstantSize() > constantSize) { throw new IllegalArgumentException("Instruction has invalid constant size ("+this.toString(offset)+")"); } writeValue(code, offset, variableIndex, variableIndexSize); offset += variableIndexSize; writeSignedValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int variableIndexSize = variableIndexSize(); int constantSize = constantSize(); if (requiredVariableIndexSize() > variableIndexSize) { throw new IllegalArgumentException("Instruction has invalid variable index size ("+this.toString(offset)+")"); } if (requiredConstantSize() > constantSize) { throw new IllegalArgumentException("Instruction has invalid constant size ("+this.toString(offset)+")"); } writeValue(code, offset, variableIndex, variableIndexSize); offset += variableIndexSize; writeSignedValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int variableIndexSize = variableIndexSize(); int constantSize = constantSize(); if (requiredVariableIndexSize() > variableIndexSize) { throw new IllegalArgumentException("Instruction has invalid variable index size ("+this.toString(offset)+")"); } if (requiredConstantSize() > constantSize) { throw new IllegalArgumentException("Instruction has invalid constant size ("+this.toString(offset)+")"); } writeValue(code, offset, variableIndex, variableIndexSize); offset += variableIndexSize; writeSignedValue(code, offset, constant, constantSize); }