APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.tools.jcore

public Class ByteCodeRewriter

extends Object
Class Inheritance
Imports
sun.jvm.hotspot.interpreter.Bytecodes, sun.jvm.hotspot.oops.ConstantPool, .ConstantPoolCache, .Method, sun.jvm.hotspot.runtime.Bytes, .VM, sun.jvm.hotspot.utilities.Assert

Field Summary

Modifier and TypeField and Description
private Bytes
private byte[]
private ConstantPoolCache
private ConstantPool
public static final boolean
private static final int
private Method

Constructor Summary

AccessConstructor and Description
public
ByteCodeRewriter(Method method, ConstantPool cpool, byte[] code)

Method Summary

Modifier and TypeMethod and Description
protected void
protected short
getConstantPoolIndexFromRefMap(int rawcode, int bci)

public void
private static void
writeShort(byte[] buf, int index, short value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesback to summary
private Bytes bytes
codeback to summary
private byte[] code
cpCacheback to summary
private ConstantPoolCache cpCache
cpoolback to summary
private ConstantPool cpool
DEBUGback to summary
public static final boolean DEBUG
jintSizeback to summary
private static final int jintSize
methodback to summary
private Method method

Constructor Detail

ByteCodeRewriterback to summary
public ByteCodeRewriter(Method method, ConstantPool cpool, byte[] code)

Method Detail

debugMessageback to summary
protected void debugMessage(String message)
getConstantPoolIndexFromRefMapback to summary
protected short getConstantPoolIndexFromRefMap(int rawcode, int bci)
rewriteback to summary
public void rewrite()
writeShortback to summary
private static void writeShort(byte[] buf, int index, short value)