Class PassSwitches
java.lang.Object
org.ek9lang.compiler.phase9.PassSwitches
THE switches of IR_OPTIMISATION's passes (D3', Steve 2026-11-12; EK9_IR_OPTIMISATION_RAILS_AND_REWRITES.md A.1,
item 3 - one system property, not the pass manager):
-D"ek9.opt.disable"=<pass>[,<pass>]
names the placement or rewrite passes IR_OPTIMISATION leaves out, so a differential leg can run a program with
and without one pass and a native defect can be attributed to it. Every pass is keyed here from its first commit;
the passes are SAFE_POINTS, CANCEL_POINTS, PUBLISH and CONFINE today. A name
that is no pass is
an error - a misspelt switch that disabled nothing would be a blind instrument.
The switch changes the IR a build produces, so it is in the build key (cli/BuildKeyOf holds one and writes
keyText()); a build under one setting is never reused for another (DI-7). Ownership rewrites run at every
optimisation level (D3'): the level never gates a pass, only this switch does.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCancelPointPlacementand its verifier V-C.static final StringConfinePlacementand its verifier V-N (N-V V1).static final StringThe property: a comma-separated list of the passes to disable.Every pass a switch may name: a new pass adds its name here, in its first commit.static final StringPublishPlacementand its verifier V-P.static final StringSafePointPlacementand its verifier V-S. -
Constructor Summary
ConstructorsConstructorDescriptionThe switches of this JVM:-Dek9.opt.disable.PassSwitches(String text) The switches a property's text names. -
Method Summary
-
Field Details
-
DISABLE_PROPERTY
The property: a comma-separated list of the passes to disable.- See Also:
-
SAFE_POINTS
-
CANCEL_POINTS
-
PUBLISH
-
CONFINE
-
PASSES
-
-
Constructor Details
-
PassSwitches
public PassSwitches()The switches of this JVM:-Dek9.opt.disable. -
PassSwitches
The switches a property's text names.- Parameters:
text- a comma-separated list of pass names; blank disables nothing
-
-
Method Details
-
isEnabled
Does the named pass run. -
keyText
The build key's text for these switches:none, or the disabled passes sorted and comma-joined.
-