Top Description Constructors Methods
org.jruby.ir.persistence

public Class IRWriter

extends Object
Class Inheritance
Imports
org.jruby.RubyInstanceConfig, org.jruby.ir.IRMethod, .IRScope, .IRScriptBody, org.jruby.ir.instructions.Instr, org.jruby.ir.interpreter.InterpreterContext, org.jruby.parser.StaticScope, java.io.IOException, java.util.BitSet

Write IR data out to persistent store. IRReader is capable of re-reading this information back into live IR data again. This class knows the logical order of how information will be written out but the IRWriterEncoder actually knows how to encode that information.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
private static void
private static void
private static void
private static void
private static void
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IRWriterback to summary
private IRWriter()

Method Detail

persistback to summary
public static void persist(IRWriterEncoder file, IRScope script) throws IOException
persistScopeHeaderback to summary
private static void persistScopeHeader(IRWriterEncoder file, IRScope scope)
persistScopeHeadersback to summary
private static void persistScopeHeaders(IRWriterEncoder file, IRScope parent)
persistScopeInstrsback to summary
private static void persistScopeInstrs(IRWriterEncoder file, IRScope scope)
persistScopeInstructionsback to summary
private static void persistScopeInstructions(IRWriterEncoder file, IRScope parent)
persistStaticScopeback to summary
private static void persistStaticScope(IRWriterEncoder file, StaticScope staticScope)
shouldLogback to summary
public static boolean shouldLog(IRWriterEncoder encoder)