equal
deleted
inserted
replaced
59 private final Log log; |
59 private final Log log; |
60 private final Symtab syms; |
60 private final Symtab syms; |
61 private final Check chk; |
61 private final Check chk; |
62 private final Resolve rs; |
62 private final Resolve rs; |
63 private final TreeMaker make; |
63 private final TreeMaker make; |
64 private final Name.Table names; |
64 private final Names names; |
65 private final Target target; |
65 private final Target target; |
66 private final Type stringBufferType; |
66 private final Type stringBufferType; |
67 private final Map<Type,Symbol> stringBufferAppend; |
67 private final Map<Type,Symbol> stringBufferAppend; |
68 private Name accessDollar; |
68 private Name accessDollar; |
69 private final Types types; |
69 private final Types types; |
90 } |
90 } |
91 |
91 |
92 protected Gen(Context context) { |
92 protected Gen(Context context) { |
93 context.put(genKey, this); |
93 context.put(genKey, this); |
94 |
94 |
95 names = Name.Table.instance(context); |
95 names = Names.instance(context); |
96 log = Log.instance(context); |
96 log = Log.instance(context); |
97 syms = Symtab.instance(context); |
97 syms = Symtab.instance(context); |
98 chk = Check.instance(context); |
98 chk = Check.instance(context); |
99 rs = Resolve.instance(context); |
99 rs = Resolve.instance(context); |
100 make = TreeMaker.instance(context); |
100 make = TreeMaker.instance(context); |
363 /** Does given name start with "access$" and end in an odd digit? |
363 /** Does given name start with "access$" and end in an odd digit? |
364 */ |
364 */ |
365 private boolean isOddAccessName(Name name) { |
365 private boolean isOddAccessName(Name name) { |
366 return |
366 return |
367 name.startsWith(accessDollar) && |
367 name.startsWith(accessDollar) && |
368 (name.byteAt(name.len - 1) & 1) == 1; |
368 (name.getByteAt(name.getByteLength() - 1) & 1) == 1; |
369 } |
369 } |
370 |
370 |
371 /* ************************************************************************ |
371 /* ************************************************************************ |
372 * Non-local exits |
372 * Non-local exits |
373 *************************************************************************/ |
373 *************************************************************************/ |