|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjs.tinyvm.CodeUtilities
public class CodeUtilities
| Field Summary |
|---|
| Fields inherited from interface js.tinyvm.OpCodeInfo |
|---|
OP_GETFIELD_1, OP_GETSTATIC_1, OP_GETSTATIC_2, OP_GETSTATIC_3, OP_GETSTATIC_4, OP_LDC_1, OP_LDC_2, OP_LDC_3, OP_LDC_4, OP_PUTFIELD_1, OP_PUTSTATIC_1, OP_PUTSTATIC_2, OP_PUTSTATIC_3, OP_PUTSTATIC_4, OPCODE_ARGS, OPCODE_NAME |
| Constructor Summary | |
|---|---|
CodeUtilities(java.lang.String aMethodName,
org.apache.bcel.classfile.JavaClass aCF,
Binary aBinary)
|
|
| Method Summary | |
|---|---|
void |
exitOnBadOpCode(int aOpCode)
|
static java.lang.String |
fullMethod(org.apache.bcel.classfile.JavaClass aCF,
java.lang.String aMethodName)
|
int |
genConstantLoad(int aPoolIndex)
Process a constant load operation. |
int |
genStaticAccess(int aPoolIndex,
int optInst,
int normInst)
Generate and instruction to access a static field. |
void |
markArray(int aPoolIndex)
Mark an array as being used. |
void |
markClass(int aPoolIndex)
Mark the class as being used. |
void |
markPrimitiveArray(byte type)
Mark a primitive array as being used. |
int |
processArray(int aPoolIndex)
Process and array index. |
void |
processCalls(byte[] aCode,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
|
int |
processClassIndex(int aPoolIndex)
Process a class index. |
byte[] |
processCode(byte[] aCode)
|
int |
processConstantIndex(int aPoolIndex)
Process a constant index. |
int |
processMultiArray(int aPoolIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeUtilities(java.lang.String aMethodName,
org.apache.bcel.classfile.JavaClass aCF,
Binary aBinary)
| Method Detail |
|---|
public void exitOnBadOpCode(int aOpCode)
throws TinyVMException
TinyVMException
public static java.lang.String fullMethod(org.apache.bcel.classfile.JavaClass aCF,
java.lang.String aMethodName)
public int processConstantIndex(int aPoolIndex)
throws TinyVMException
aPoolIndex - the constant pool index
TinyVMException
public int processClassIndex(int aPoolIndex)
throws TinyVMException
aPoolIndex - the constant pool index
TinyVMException
public int processArray(int aPoolIndex)
throws TinyVMException
aPoolIndex - the constant index for the array
TinyVMException
public int processMultiArray(int aPoolIndex)
throws TinyVMException
TinyVMException
public void markClass(int aPoolIndex)
throws TinyVMException
aPoolIndex -
TinyVMException
public void markArray(int aPoolIndex)
throws TinyVMException
aPoolIndex - The constant pool index for the array.
TinyVMException
public void markPrimitiveArray(byte type)
throws TinyVMException
type - The primitive type of the array.
TinyVMException
public int genConstantLoad(int aPoolIndex)
throws TinyVMException
aPoolIndex - the constant pool index
TinyVMException
public int genStaticAccess(int aPoolIndex,
int optInst,
int normInst)
throws TinyVMException
aPoolIndex - The field to accessoptInst - The optimized version of the instructionnormInst - The normal version of the instruction.
TinyVMException
public byte[] processCode(byte[] aCode)
throws TinyVMException
TinyVMException
public void processCalls(byte[] aCode,
org.apache.bcel.classfile.JavaClass aClassFile,
Binary aBinary)
throws TinyVMException
TinyVMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||