|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.joanju.cg.bytecode.Bytecode com.joanju.cg.bytecode.CompileunitInstr
public class CompileunitInstr
Field Summary |
---|
Fields inherited from class com.joanju.cg.bytecode.Bytecode |
---|
address, cuid, instrSet, nodeNum, xrefs |
Constructor Summary | |
---|---|
CompileunitInstr()
|
|
CompileunitInstr(int cuid)
The application should use this constructor. |
|
CompileunitInstr(int cuid,
int address)
This gets called when extracting bytecodes from the DB. |
Method Summary | |
---|---|
int |
addActiveNewProcID(int nameId)
|
void |
calcValueSets()
Calculate the value sets for the instruction. |
int |
codegenNextTriggerAddress()
|
void |
copyProcIDs(java.lang.Object obj)
Copy obj's ProcIDs into this object. |
java.util.ArrayList<java.lang.Integer> |
getActiveProcIds()
Get a list of active procedure name IDs within this compile unit. |
java.util.ArrayList<int[]> |
getActiveProcIdsWithAddress()
Get a list of active procedure name IDs, with their address: {procnameID, procAddress}. |
short |
getLayoutVersion()
|
Opcode |
getOpcode()
|
int |
getProcAddressOrStub(int procNameID)
Used during cross referencing. |
long |
getTimeStamp()
|
int |
lookupActiveProcedureAddress(int procNameID)
Lookup the address for an active local procedure matching an input name ID. |
int |
lookupProcedureAddress(int procNameID)
Lookup the address for a local procedure matching an input name ID. |
void |
setLayoutVersion(short layoutVersion)
|
void |
setTimeStamp(long timeStamp)
|
protected void |
setValuesFromByteStream(java.io.DataInputStream in)
|
protected void |
writeValuesToByteStream(java.io.DataOutputStream out)
|
Methods inherited from class com.joanju.cg.bytecode.Bytecode |
---|
addSource, addWhereUsed, beforeWrite, calcValuesAgain, compareTo, equals, fetchBytesFromDB, fetchInCu, generateDataForDB, getAddress, getCuID, getNodeNum, getSources, getValues, getValuesCalcLocal, getWhereUsed, getXrefs, hashCode, initData, isDataModified, isFromDB, setAddress, setCuID, setDataBytesFromDB, setDataModified, setFromDB, setInstructionSet, setNodeNum, shouldLoadData, sourcesForXrefTarget, storeIfModified, toString, toStringFromComments, toStringFromData, toStringFromName, toStringFromSet |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompileunitInstr()
public CompileunitInstr(int cuid)
public CompileunitInstr(int cuid, int address)
Method Detail |
---|
public int addActiveNewProcID(int nameId) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void calcValueSets() throws java.sql.SQLException, java.io.IOException
Bytecode
Called during build, build-recalc, checkvals, and checkvals-recalc. Implementations should only build from external values once. Calculates which xref records are needed as well.
IMPORTANT: Should only ever be called for instructions belonging to an InstructionSet.
calcValueSets
in class Bytecode
java.sql.SQLException
java.io.IOException
public int codegenNextTriggerAddress() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void copyProcIDs(java.lang.Object obj) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.ArrayList<java.lang.Integer> getActiveProcIds() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.ArrayList<int[]> getActiveProcIdsWithAddress() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public short getLayoutVersion() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public Opcode getOpcode()
getOpcode
in class Bytecode
public int getProcAddressOrStub(int procNameID) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public long getTimeStamp() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int lookupActiveProcedureAddress(int procNameID) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int lookupProcedureAddress(int procNameID) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void setLayoutVersion(short layoutVersion)
public void setTimeStamp(long timeStamp)
protected void setValuesFromByteStream(java.io.DataInputStream in) throws java.io.IOException
setValuesFromByteStream
in class Bytecode
java.io.IOException
protected void writeValuesToByteStream(java.io.DataOutputStream out) throws java.io.IOException
writeValuesToByteStream
in class Bytecode
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |