joeq.Class
Class jq_CompiledCode
java.lang.Object
joeq.Class.jq_CompiledCode
- All Implemented Interfaces:
- Comparable
public class jq_CompiledCode
- extends Object
- implements Comparable
- Version:
- $Id: jq_CompiledCode.java 1931 2004-09-22 22:17:47Z joewhaley $
- Author:
- John Whaley
TRACE
public static boolean TRACE
TRACE_REDIRECT
public static boolean TRACE_REDIRECT
entrypoint
protected final CodeAddress entrypoint
method
protected final jq_Method method
start
protected final CodeAddress start
length
protected final int length
handlers
protected final jq_TryCatch[] handlers
bcm
protected final jq_BytecodeMap bcm
ed
protected final Object ed
stackframesize
protected final int stackframesize
code_reloc
protected final List code_reloc
data_reloc
protected final List data_reloc
_entrypoint
public static final jq_InstanceField _entrypoint
jq_CompiledCode
public jq_CompiledCode(jq_Method method,
CodeAddress start,
int length,
CodeAddress entrypoint,
jq_TryCatch[] handlers,
jq_BytecodeMap bcm,
Object ed,
int stackframesize,
List code_reloc,
List data_reloc)
getMethod
public jq_Method getMethod()
getStart
public CodeAddress getStart()
getLength
public int getLength()
getEntrypoint
public CodeAddress getEntrypoint()
getStackFrameSize
public int getStackFrameSize()
findCatchBlock
public jq_TryCatch findCatchBlock(CodeAddress ip,
jq_Class extype)
deliverException
public void deliverException(jq_TryCatch tc,
StackAddress fp,
Throwable x)
getThisPointer
public Object getThisPointer(CodeAddress ip,
StackAddress fp)
getBytecodeIndex
public int getBytecodeIndex(CodeAddress ip)
redirect
public void redirect(jq_CompiledCode that)
- Rewrite the entrypoint to branch to the given compiled code.
toString
public String toString()
- Overrides:
toString
in class Object
contains
public boolean contains(CodeAddress address)
patchDirectBindCalls
public void patchDirectBindCalls()
patchDirectBindCalls
public void patchDirectBindCalls(jq_Method method,
jq_CompiledCode cc)
compareTo
public int compareTo(jq_CompiledCode that)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- NOTE that this violates the contract of hashCode when comparing against InstructionPointer objects!
- Overrides:
hashCode
in class Object
Copyright © 2001-2008 John Whaley. All Rights Reserved.