예제 #1
0
    @Specialization
    public RubyString fullTree() {
      notDesignedForCompilation();

      return getContext()
          .makeString(
              NodeUtil.printTreeToString(
                  Truffle.getRuntime().getCallerFrame().getCallNode().getRootNode()));
    }
예제 #2
0
 public GeneralDispatchNode(RubyContext context, String name) {
   super(context);
   assert name != null;
   this.name = name;
   callNode = Truffle.getRuntime().createIndirectCallNode();
 }