1 package polyglot.frontend; 2 3 import polyglot.util.Enum; 4 5 12 public interface Pass 13 { 14 15 public static class ID extends Enum { 16 public ID(String name) { super(name); } 17 } 18 19 22 public ID id(); 23 24 25 public String name(); 26 27 28 public boolean run(); 29 30 31 public void resetTimers(); 32 33 34 public void toggleTimers(boolean exclusive_only); 35 36 38 public long inclusiveTime(); 39 40 42 public long exclusiveTime(); 43 44 47 48 public static final ID PARSE = new ID("parse"); 49 50 51 public static final ID BUILD_TYPES = new ID("build-types"); 52 53 54 public static final ID BUILD_TYPES_ALL = new ID("build-types-barrier"); 55 56 57 public static final ID CLEAN_SUPER = new ID("clean-super"); 58 59 60 public static final ID CLEAN_SUPER_ALL = new ID("clean-super-barrier"); 61 62 63 public static final ID CLEAN_SIGS = new ID("clean-sigs"); 64 65 66 public static final ID ADD_MEMBERS = new ID("add-members"); 67 68 69 public static final ID ADD_MEMBERS_ALL = new ID("add-members-barrier"); 70 71 72 public static final ID DISAM = new ID("disam"); 73 74 75 public static final ID DISAM_ALL = new ID("disam-barrier"); 76 77 78 public static final ID TYPE_CHECK = new ID("type-check"); 79 80 81 public static final ID SET_EXPECTED_TYPES = new ID("set-expected-types"); 82 83 84 public static final ID EXC_CHECK = new ID("exc-check"); 85 86 87 public static final ID FOLD = new ID("fold"); 88 89 90 public static final ID INIT_CHECK = new ID("init-check"); 91 92 93 public static final ID CONSTRUCTOR_CHECK = new ID("constructor-check"); 94 95 96 public static final ID FWD_REF_CHECK = new ID("fwd-reference-check"); 97 98 99 public static final ID REACH_CHECK = new ID("reach-check"); 100 101 102 public static final ID EXIT_CHECK = new ID("exit-check"); 103 104 105 public static final ID DUMP = new ID("dump"); 106 107 108 public static final ID PRE_OUTPUT_ALL = new ID("pre-output-barrier"); 109 110 111 public static final ID SERIALIZE = new ID("serialization"); 112 113 114 public static final ID OUTPUT = new ID("output"); 115 116 117 public static final ID FIRST_BARRIER = BUILD_TYPES_ALL; 118 } 119 | Popular Tags |