|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pass
A Pass
represents a compiler pass.
A Job
runs a series of passes over the AST.
Each pass has an ID that is used to identify similar passes across
several jobs. For example, most jobs contain a pass named PARSE
that returns an AST for a source file and a pass TYPE_CHECK
that performs type checking on the job's AST.
Nested Class Summary | |
---|---|
static class |
Pass.ID
Pass identifiers. |
Field Summary | |
---|---|
static Pass.ID |
ADD_MEMBERS
ID of the add-members pass. |
static Pass.ID |
ADD_MEMBERS_ALL
ID of the barrier after add-members. |
static Pass.ID |
BUILD_TYPES
ID of the build-types pass. |
static Pass.ID |
BUILD_TYPES_ALL
ID of the barrier after build-types. |
static Pass.ID |
CLEAN_SIGS
ID of the clean-sigs pass. |
static Pass.ID |
CLEAN_SUPER
ID of the clean-super pass. |
static Pass.ID |
CLEAN_SUPER_ALL
ID of the barrier after clean-super. |
static Pass.ID |
CONSTRUCTOR_CHECK
ID of the constructor-check pass. |
static Pass.ID |
DISAM
ID of the disambiguate pass. |
static Pass.ID |
DISAM_ALL
ID of the barrier after disam. |
static Pass.ID |
DUMP
ID of the AST dumper pass. |
static Pass.ID |
EXC_CHECK
ID of the exception-check pass. |
static Pass.ID |
EXIT_CHECK
ID of the exit-check pass. |
static Pass.ID |
FIRST_BARRIER
ID of the first barrier pass. |
static Pass.ID |
FOLD
ID of the constant-fold pass. |
static Pass.ID |
FWD_REF_CHECK
ID of the forward-reference-check pass. |
static Pass.ID |
INIT_CHECK
ID of the initialization-check pass. |
static Pass.ID |
OUTPUT
ID of the output pass. |
static Pass.ID |
PARSE
ID of the parser pass. |
static Pass.ID |
PRE_OUTPUT_ALL
ID of the barrier before output. |
static Pass.ID |
REACH_CHECK
ID of the reachability-check pass. |
static Pass.ID |
SERIALIZE
ID of the class serialzation pass. |
static Pass.ID |
SET_EXPECTED_TYPES
ID of the set-expected-types pass. |
static Pass.ID |
TYPE_CHECK
ID of the type-check pass. |
Method Summary | |
---|---|
long |
exclusiveTime()
The total accumulated time in ms since the last timer reset that the pass was running, excluding spawned passes. |
Pass.ID |
id()
Return the identifier for the pass. |
long |
inclusiveTime()
The total accumulated time in ms since the last timer reset that the pass was running, including spawned passes. |
java.lang.String |
name()
Return a user-readable name for the pass. |
void |
resetTimers()
Reset the pass timers to 0. |
boolean |
run()
Run the pass. |
void |
toggleTimers(boolean exclusive_only)
Start/stop the pass timers. |
Field Detail |
---|
static final Pass.ID PARSE
static final Pass.ID BUILD_TYPES
static final Pass.ID BUILD_TYPES_ALL
static final Pass.ID CLEAN_SUPER
static final Pass.ID CLEAN_SUPER_ALL
static final Pass.ID CLEAN_SIGS
static final Pass.ID ADD_MEMBERS
static final Pass.ID ADD_MEMBERS_ALL
static final Pass.ID DISAM
static final Pass.ID DISAM_ALL
static final Pass.ID TYPE_CHECK
static final Pass.ID SET_EXPECTED_TYPES
static final Pass.ID EXC_CHECK
static final Pass.ID FOLD
static final Pass.ID INIT_CHECK
static final Pass.ID CONSTRUCTOR_CHECK
static final Pass.ID FWD_REF_CHECK
static final Pass.ID REACH_CHECK
static final Pass.ID EXIT_CHECK
static final Pass.ID DUMP
static final Pass.ID PRE_OUTPUT_ALL
static final Pass.ID SERIALIZE
static final Pass.ID OUTPUT
static final Pass.ID FIRST_BARRIER
Method Detail |
---|
Pass.ID id()
java.lang.String name()
boolean run()
void resetTimers()
void toggleTimers(boolean exclusive_only)
long inclusiveTime()
long exclusiveTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |