public class IRWriterStream extends java.lang.Object implements IRWriterEncoder
Modifier and Type | Field and Description |
---|---|
static byte |
ARRAY |
static byte |
DOUBLE |
static byte |
FALSE |
static byte |
FLOAT |
static byte |
FULL |
static byte |
INSTR |
static byte |
LONG |
static byte |
NULL |
static int |
NULL_STRING |
static int |
PRIMITIVE_BASE |
static int |
PROLOGUE_LENGTH |
static byte |
STRING |
static byte |
TRUE |
static int |
TWO_MEGS |
static int |
VERSION |
Constructor and Description |
---|
IRWriterStream(java.io.File file) |
IRWriterStream(java.io.OutputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
addScopeInstructionOffset(IRScope scope)
Record current offset as the beginning of specified scopes list of instructions.
|
void |
encode(boolean value) |
void |
encode(byte value) |
void |
encode(byte[] bytes) |
void |
encode(ByteList value) |
void |
encode(char value) |
void |
encode(double value) |
void |
encode(org.jcodings.Encoding encoding) |
void |
encode(float value) |
void |
encode(Instr instr) |
void |
encode(int value) |
void |
encode(int[] value) |
void |
encode(IRScope value) |
void |
encode(IRScopeType value) |
void |
encode(long value) |
void |
encode(Operand operand) |
void |
encode(Operand[] operands) |
void |
encode(OperandType value) |
void |
encode(Operation value) |
void |
encode(RubyEvent event) |
void |
encode(RubySymbol symbol) |
void |
encode(Signature signature) |
void |
encode(StaticScope.Type value) |
void |
encode(java.lang.String value) |
void |
encode(java.lang.String[] values) |
void |
endEncoding(IRScope script) |
void |
endEncodingScopeHeader(IRScope scope) |
void |
endEncodingScopeHeaders(IRScope script) |
void |
endEncodingScopeInstrs(IRScope scope) |
int |
getScopeInstructionOffset(IRScope scope)
Get recorded offset for this scropes instruction list.
|
void |
startEncoding(IRScope script) |
void |
startEncodingScopeHeader(IRScope scope) |
void |
startEncodingScopeHeaders(IRScope script) |
void |
startEncodingScopeInstrs(IRScope scope) |
public static final int VERSION
public static final int TWO_MEGS
public static final int PRIMITIVE_BASE
public static final byte STRING
public static final byte TRUE
public static final byte FALSE
public static final byte ARRAY
public static final byte NULL
public static final byte INSTR
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte FULL
public static final int PROLOGUE_LENGTH
public static final int NULL_STRING
public IRWriterStream(java.io.OutputStream stream)
public IRWriterStream(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void addScopeInstructionOffset(IRScope scope)
public int getScopeInstructionOffset(IRScope scope)
public void encode(boolean value)
encode
in interface IRWriterEncoder
public void encode(byte value)
encode
in interface IRWriterEncoder
public void encode(char value)
encode
in interface IRWriterEncoder
public void encode(int value)
encode
in interface IRWriterEncoder
public void encode(int[] value)
encode
in interface IRWriterEncoder
public void encode(long value)
encode
in interface IRWriterEncoder
public void encode(float value)
encode
in interface IRWriterEncoder
public void encode(double value)
encode
in interface IRWriterEncoder
public void encode(ByteList value)
encode
in interface IRWriterEncoder
public void encode(byte[] bytes)
encode
in interface IRWriterEncoder
public void encode(org.jcodings.Encoding encoding)
encode
in interface IRWriterEncoder
public void encode(RubySymbol symbol)
encode
in interface IRWriterEncoder
public void encode(java.lang.String value)
encode
in interface IRWriterEncoder
public void encode(java.lang.String[] values)
encode
in interface IRWriterEncoder
public void encode(Operand operand)
encode
in interface IRWriterEncoder
public void encode(Operand[] operands)
encode
in interface IRWriterEncoder
public void encode(Instr instr)
encode
in interface IRWriterEncoder
public void encode(IRScope value)
encode
in interface IRWriterEncoder
public void encode(IRScopeType value)
encode
in interface IRWriterEncoder
public void encode(Signature signature)
encode
in interface IRWriterEncoder
public void encode(RubyEvent event)
encode
in interface IRWriterEncoder
public void encode(StaticScope.Type value)
encode
in interface IRWriterEncoder
public void encode(Operation value)
encode
in interface IRWriterEncoder
public void encode(OperandType value)
encode
in interface IRWriterEncoder
public void startEncodingScopeHeader(IRScope scope)
startEncodingScopeHeader
in interface IRWriterEncoder
public void endEncodingScopeHeader(IRScope scope)
endEncodingScopeHeader
in interface IRWriterEncoder
public void startEncodingScopeInstrs(IRScope scope)
startEncodingScopeInstrs
in interface IRWriterEncoder
public void endEncodingScopeInstrs(IRScope scope)
endEncodingScopeInstrs
in interface IRWriterEncoder
public void startEncodingScopeHeaders(IRScope script)
startEncodingScopeHeaders
in interface IRWriterEncoder
public void endEncodingScopeHeaders(IRScope script)
endEncodingScopeHeaders
in interface IRWriterEncoder
public void startEncoding(IRScope script)
startEncoding
in interface IRWriterEncoder
public void endEncoding(IRScope script)
endEncoding
in interface IRWriterEncoder
Copyright © 2001-2018 JRuby. All Rights Reserved.