|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.eecs.doc.clepsydra.timing.JOPInstructionTimingStrategy
public class JOPInstructionTimingStrategy
Provides a model of the timing behavior for the Java Optimized Processor (JOP). It is based on the JOP Instruction Set data sheet.
Constructor Summary | |
---|---|
JOPInstructionTimingStrategy()
Creates a new JOPInstructionTimingStrategy object. |
Method Summary | |
---|---|
int |
getCycles(Instruction instruction)
Returns the number of cycles required to execute the given Java bytecode instruction. |
int |
getCycles(InvokeInstruction instruction)
Returns the number of cycles required to execute the given invocation instruction. |
int |
getCycles(InvokeInstruction instruction,
boolean cacheHit,
int methodSize)
Returns the number of cycles required to execute the given invocation instruction. |
int |
getCycles(ReturnInstruction instruction,
boolean cacheHit,
int methodSize)
Returns the number of cycles required to execute the given return instruction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JOPInstructionTimingStrategy()
jop.readWaitStates
and jop.writeWaitStates
. If these
properties are not set, a default value of 1 is used for both wait states.
Method Detail |
---|
public int getCycles(Instruction instruction) throws UnknownTimingException
getCycles
in interface InstructionTimingStrategy
instruction
- a bytecode instruction whose cycle count is to be determined.
Must not be of type ReturnInstruction nor InvokeInstruction.
UnknownTimingException
- if the opcode is invalid or its cycle count is
unknownpublic int getCycles(InvokeInstruction instruction, boolean cacheHit, int methodSize) throws UnknownTimingException
getCycles
in interface InstructionTimingStrategy
instruction
- an invocation instruction whose cycle count is to be
determined.cacheHit
- true if the method being invoked is guaranteed to be in the
method cache; false otherwisemethodSize
- the size, in bytes, of the method that the instruction invokes
UnknownTimingException
- if the opcode is invalid or its cycle count is
unknownpublic int getCycles(InvokeInstruction instruction) throws UnknownTimingException
getCycles
in interface InstructionTimingStrategy
instruction
- an invocation instruction whose cycle count is to be
determined.
UnknownTimingException
- if the opcode is invalid or its cycle count is
unknownpublic int getCycles(ReturnInstruction instruction, boolean cacheHit, int methodSize) throws UnknownTimingException
getCycles
in interface InstructionTimingStrategy
instruction
- a return instruction whose cycle count is to be determined.cacheHit
- true if the method being returned to is guaranteed to be in the
method cache; false otherwisemethodSize
- the size, in bytes, of the method that is being returned to
UnknownTimingException
- if the opcode is invalid or its cycle count is
unknown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |