public class

InstructionHints

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.items.InstructionHints

Class Overview

Hints for native instruction items.

Summary

Public Constructors
InstructionHints()
Public Methods
IPrototypeItem getCallsitePrototype()
Integer getStackPointerDelta()
int getSwitchDispatcher()
Get value indicating whether branching instruction may be a switch dispatcher (heuristic).
boolean isCondTailCall()
boolean isFakeCall()
boolean isTailCall()
void setCallsitePrototype(IPrototypeItem callsiteProto)
Set the prototype associated with a callsite target.
void setCondTailCall(boolean isCondTailCall)
void setFakeCall(boolean isFakeCall)
void setStackPointerDelta(Integer spDelta)
Set the stack-pointer delta after the execution of an instruction.
void setSwitchDispatcher(int switchDispatcher)
void setTailCall(boolean isTailCall)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InstructionHints ()

Public Methods

public IPrototypeItem getCallsitePrototype ()

Returns
  • a prototype or null if none

public Integer getStackPointerDelta ()

Returns
  • an integer or null if none

public int getSwitchDispatcher ()

Get value indicating whether branching instruction may be a switch dispatcher (heuristic).

Returns
  • 0:no, 1: yes, not processed, 2: yes, processed

public boolean isCondTailCall ()

public boolean isFakeCall ()

Returns
  • true if instruction is a routine call that should be considered as an intra-routine branch, false otherwise.

public boolean isTailCall ()

public void setCallsitePrototype (IPrototypeItem callsiteProto)

Set the prototype associated with a callsite target. Typically, this is used on branching instructions instructions to dynamic callsites that have not been determined automatically.

Parameters
callsiteProto a prototype; null to remmove

public void setCondTailCall (boolean isCondTailCall)

public void setFakeCall (boolean isFakeCall)

public void setStackPointerDelta (Integer spDelta)

Set the stack-pointer delta after the execution of an instruction. Typically, this is used on branching instructions to dynamic callsites that have not been determined automatically.

Parameters
spDelta a delta; null to remove

public void setSwitchDispatcher (int switchDispatcher)

public void setTailCall (boolean isTailCall)