alt.jiapi.util
Class HotSpotLocator

java.lang.Object
  extended by alt.jiapi.util.HotSpotLocator

public class HotSpotLocator
extends java.lang.Object

HotSpotLocator locates HotSpots from InstructionList.

Author:
Mika Riekkinen
See Also:
definition of HotSpot

Constructor Summary
HotSpotLocator(InstructionList il)
          Creates a new HotSpotLocator.
 
Method Summary
 HotSpot[] getHotSpots(byte[] opCodes)
          Get all the hotspots that was found.
 HotSpot[] getHotSpots(byte[] opCodes, java.lang.String resolution)
          Get all the hotspots that was found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotSpotLocator

public HotSpotLocator(InstructionList il)
Creates a new HotSpotLocator.

Parameters:
il - InstructionList to scan for hotspots
Method Detail

getHotSpots

public HotSpot[] getHotSpots(byte[] opCodes)
Get all the hotspots that was found. Note, that HotSpots found may overlap each other. This could happen, for example, if a return value of one invocation is a parameter to another one.

Parameters:
opCodes - an array of opcodes. Each opcode is treated as an opcode Instruction.
Returns:
An array of HotSpots. If no HotSpots were found, an array of length 0 is returned.

getHotSpots

public HotSpot[] getHotSpots(byte[] opCodes,
                             java.lang.String resolution)
Get all the hotspots that was found. Note, that HotSpots found may overlap each other. This could happen, for example, if a return value of one invocation is a parameter to another one.

Parameters:
opCodes - an array of opcodes. Each opcode is treated as an opcode Instruction.
resolution - An resolution of opcode. NOTE: This is not currently used.
Returns:
An array of HotSpots. If no HotSpots were found, an array of length 0 is returned.


Copyright © 2001. Documenation generated August 26 2011.