equal
deleted
inserted
replaced
40 * If you write code that depends on this, you do so at your own risk. |
40 * If you write code that depends on this, you do so at your own risk. |
41 * This code and its internal interfaces are subject to change or |
41 * This code and its internal interfaces are subject to change or |
42 * deletion without notice.</b> |
42 * deletion without notice.</b> |
43 */ |
43 */ |
44 strictfp class ConstFold { |
44 strictfp class ConstFold { |
45 protected static final Context.Key<ConstFold> constFoldKey = |
45 protected static final Context.Key<ConstFold> constFoldKey = new Context.Key<>(); |
46 new Context.Key<ConstFold>(); |
|
47 |
46 |
48 private Symtab syms; |
47 private Symtab syms; |
49 |
48 |
50 public static ConstFold instance(Context context) { |
49 public static ConstFold instance(Context context) { |
51 ConstFold instance = context.get(constFoldKey); |
50 ConstFold instance = context.get(constFoldKey); |