Class: Rubinius::ToolSet.current::TS::Compiler::Encoder

Inherits:
Stage
  • Object
show all
Defined in:
lib/rubinius/compiler/stages.rb

Overview

symbolic bytecode -> encoded bytecode

Instance Attribute Summary

Attributes inherited from Stage

#next_stage, #printer

Instance Method Summary collapse

Methods inherited from Stage

#create_next_stage, #input, #insert, next_stage, next_stage_class, #processor, #run_next, stage, stage_name

Constructor Details

#initialize(compiler, last) ⇒ Encoder

Returns a new instance of Encoder.



124
125
126
127
# File 'lib/rubinius/compiler/stages.rb', line 124

def initialize(compiler, last)
  super
  compiler.encoder = self
end

Instance Method Details

#runObject



129
130
131
132
133
# File 'lib/rubinius/compiler/stages.rb', line 129

def run
  @input.encode
  @output = @input
  run_next
end