Class: IRVisualizer

Inherits:
JRubyFX::Application
  • Object
show all
Defined in:
lib/jruby_visualizer/ir_visualizer.rb

Overview

Visualizer for JRuby’s Intermediate Representation (IR) displaying all IR Scopes with its lexical nesting and diffs on the IR, if it has changed (after executing a compiler pass)

Instance Method Summary collapse

Instance Method Details

#start(stage) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/jruby_visualizer/ir_visualizer.rb', line 34

def start(stage)
  compiler_data = JRubyVisualizer.compiler_data
  with(stage, title: 'Intermediate Representation (IR) Visualizer') do
    fxml(IRVisualizerController, initialize: [compiler_data])
    icons.add(Image.new(resource_url(:images, 'jruby-icon-32.png').to_s))
    show
  end
end