Class RubyObjectSpecializer

java.lang.Object
org.jruby.specialized.RubyObjectSpecializer

public class RubyObjectSpecializer extends Object
A code generator for Ruby objects, to map known instance variables into fields.
  • Field Details

  • Constructor Details

    • RubyObjectSpecializer

      public RubyObjectSpecializer(Ruby runtime)
  • Method Details

    • specializeForVariables

      public ObjectAllocator specializeForVariables(RubyClass klass, Set<String> foundVariables)
    • main

      public static void main(String[] args) throws Throwable
      Emit all generic RubyObject specializations to disk, so they do not need to generate at runtime.
      Throws:
      Throwable