< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/debug/NashornTextifier.java

Print this page
rev 52456 : imported patch asm.additional


  77     private final String tab = "  ";
  78     private final String tab2 = "    ";
  79     private final String tab3 = "      ";
  80 
  81     private Map<Label, String> labelNames;
  82 
  83     private boolean localVarsStarted = false;
  84 
  85     private NashornClassReader cr;
  86     private ScriptEnvironment env;
  87 
  88     /**
  89      * Constructs a new {@link NashornTextifier}. <i>Subclasses must not use this
  90      * constructor</i>. Instead, they must use the {@link #NashornTextifier(int)}
  91      * version.
  92      * @param env script environment
  93      * @param cr a customized classreader for gathering, among other things, label
  94      * information
  95      */
  96     public NashornTextifier(final ScriptEnvironment env, final NashornClassReader cr) {
  97         this(Opcodes.ASM5);
  98         this.env = env;
  99         this.cr = cr;
 100     }
 101 
 102     private NashornTextifier(final ScriptEnvironment env, final NashornClassReader cr, final Iterator<Label> labelIter, final Graph graph) {
 103         this(env, cr);
 104         this.labelIter = labelIter;
 105         this.graph = graph;
 106     }
 107 
 108     /**
 109      * Constructs a new {@link NashornTextifier}.
 110      *
 111      * @param api
 112      *            the ASM API version implemented by this visitor. Must be one
 113      *            of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}.
 114      */
 115     protected NashornTextifier(final int api) {
 116         super(api);
 117     }




  77     private final String tab = "  ";
  78     private final String tab2 = "    ";
  79     private final String tab3 = "      ";
  80 
  81     private Map<Label, String> labelNames;
  82 
  83     private boolean localVarsStarted = false;
  84 
  85     private NashornClassReader cr;
  86     private ScriptEnvironment env;
  87 
  88     /**
  89      * Constructs a new {@link NashornTextifier}. <i>Subclasses must not use this
  90      * constructor</i>. Instead, they must use the {@link #NashornTextifier(int)}
  91      * version.
  92      * @param env script environment
  93      * @param cr a customized classreader for gathering, among other things, label
  94      * information
  95      */
  96     public NashornTextifier(final ScriptEnvironment env, final NashornClassReader cr) {
  97         this(Opcodes.ASM7);
  98         this.env = env;
  99         this.cr = cr;
 100     }
 101 
 102     private NashornTextifier(final ScriptEnvironment env, final NashornClassReader cr, final Iterator<Label> labelIter, final Graph graph) {
 103         this(env, cr);
 104         this.labelIter = labelIter;
 105         this.graph = graph;
 106     }
 107 
 108     /**
 109      * Constructs a new {@link NashornTextifier}.
 110      *
 111      * @param api
 112      *            the ASM API version implemented by this visitor. Must be one
 113      *            of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}.
 114      */
 115     protected NashornTextifier(final int api) {
 116         super(api);
 117     }


< prev index next >