org.jikesrvm.ia32
Class CodeArray.Factory

java.lang.Object
  extended by org.jikesrvm.ia32.CodeArray.Factory
Enclosing class:
CodeArray

public static class CodeArray.Factory
extends Object

A helper class to contain the 'real' methods of CodeArray. Because Jikes RVM believes that CodeArray is really a Code[] (i.e., an array of primitives), we cannot define non-hijacked methods on the 'class' CodeArray.


Constructor Summary
CodeArray.Factory()
           
 
Method Summary
static ArchitectureSpecific.CodeArray create(int numInstrs, boolean isHot)
          Allocate a code array big enough to contain numInstrs instructions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeArray.Factory

public CodeArray.Factory()
Method Detail

create

public static ArchitectureSpecific.CodeArray create(int numInstrs,
                                                    boolean isHot)
Allocate a code array big enough to contain numInstrs instructions.

Parameters:
numInstrs - the number of instructions to copy from instrs
isHot - is this an allocation of code for a hot method?
Returns:
a CodeArray containing the instructions