|
|||||||||
| Home >> All >> [ Allocator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
Allocator
Class CodeAllocator.InstructionPointer

java.lang.ObjectAllocator.CodeAllocator.InstructionPointer
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- CodeAllocator
- public static class CodeAllocator.InstructionPointer
- extends java.lang.Object
- implements java.lang.Comparable
- extends java.lang.Object
An object of this class represents a code address. It can be compared with a jq_CompiledCode object with compareTo and equals. They are equal if the InstructionPointer points within the range of the compiled code; the InstructionPointer is less if it is before the start address of the compiled code; the InstructionPointer is less if it is after the end address of the compiled code.
| Field Summary | |
static Clazz.jq_InstanceField |
_ip
|
private Memory.CodeAddress |
ip
The (actual) address. |
| Constructor Summary | |
CodeAllocator.InstructionPointer(Memory.CodeAddress ip)
Create a new instruction pointer. |
|
| Method Summary | |
int |
compareTo(CodeAllocator.InstructionPointer that)
Compare this instruction pointer to another instruction pointer. |
int |
compareTo(Clazz.jq_CompiledCode that)
Compare this instruction pointer to a compiled code object. |
int |
compareTo(java.lang.Object that)
Compares this instruction pointer to the given object (InstructionPointer or jq_CompiledCode) |
boolean |
equals(CodeAllocator.InstructionPointer that)
Returns true if this instruction pointer refers to the same location as the given instruction pointer, false otherwise. |
boolean |
equals(Clazz.jq_CompiledCode that)
Returns true if this instruction pointer refers to a location within the given compiled code, false otherwise. |
boolean |
equals(java.lang.Object that)
Compares this instruction pointer with the given object (InstructionPointer or jq_CompiledCode). |
Memory.CodeAddress |
getIP()
Extract the address of this instruction pointer. |
int |
hashCode()
Returns the hash code of this instruction pointer. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ip
private final Memory.CodeAddress ip
- The (actual) address.
_ip
public static final Clazz.jq_InstanceField _ip
| Constructor Detail |
CodeAllocator.InstructionPointer
public CodeAllocator.InstructionPointer(Memory.CodeAddress ip)
- Create a new instruction pointer.
| Method Detail |
getIP
public Memory.CodeAddress getIP()
- Extract the address of this instruction pointer.
compareTo
public int compareTo(Clazz.jq_CompiledCode that)
- Compare this instruction pointer to a compiled code object.
compareTo
public int compareTo(CodeAllocator.InstructionPointer that)
- Compare this instruction pointer to another instruction pointer.
compareTo
public int compareTo(java.lang.Object that)
- Compares this instruction pointer to the given object
(InstructionPointer or jq_CompiledCode)
- Specified by:
compareToin interfacejava.lang.Comparable
equals
public boolean equals(Clazz.jq_CompiledCode that)
- Returns true if this instruction pointer refers to a location
within the given compiled code, false otherwise.
equals
public boolean equals(CodeAllocator.InstructionPointer that)
- Returns true if this instruction pointer refers to the same location
as the given instruction pointer, false otherwise.
equals
public boolean equals(java.lang.Object that)
- Compares this instruction pointer with the given object
(InstructionPointer or jq_CompiledCode).
hashCode
public int hashCode()
- Returns the hash code of this instruction pointer.
This is a really bad implementation (just returns 0), and
should not be counted on.
|
|||||||||
| Home >> All >> [ Allocator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
Allocator.CodeAllocator.InstructionPointer