org.jikesrvm.compilers.opt.runtimesupport
Class OptExceptionTable

java.lang.Object
  extended by org.jikesrvm.compilers.common.ExceptionTable
      extended by org.jikesrvm.compilers.opt.runtimesupport.OptExceptionTable

final class OptExceptionTable
extends ExceptionTable

Encoding of try ranges in the final machinecode and the corresponding exception type and catch block start.


Field Summary
 
Fields inherited from class org.jikesrvm.compilers.common.ExceptionTable
CATCH_START, EX_TYPE, TRY_END, TRY_START
 
Constructor Summary
OptExceptionTable()
           
 
Method Summary
private static int countExceptionTableSize(IR ir)
          Return an upper bounds on the size of the exception table for an IR.
(package private) static int[] encode(IR ir)
          Encode an exception table
 
Methods inherited from class org.jikesrvm.compilers.common.ExceptionTable
findCatchBlockForInstruction, printExceptionTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptExceptionTable

OptExceptionTable()
Method Detail

encode

static int[] encode(IR ir)
Encode an exception table

Parameters:
ir - the IR to encode the exception table for
Returns:
the encoded exception table

countExceptionTableSize

private static int countExceptionTableSize(IR ir)
Return an upper bounds on the size of the exception table for an IR.