File tree 2 files changed +7
-4
lines changed 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -626,10 +626,7 @@ class Compiler {
626
626
627
627
bool get shouldStopAfterCodegen => stage.shouldWriteCodegen;
628
628
629
- // Only use deferred reads for the linker phase as most deferred entities will
630
- // not be needed. In other phases we use most of this data so it's not worth
631
- // deferring.
632
- bool get useDeferredSourceReads => stage == CompilerStage .jsEmitter;
629
+ bool get useDeferredSourceReads => stage.shouldUseDeferredSourceReads;
633
630
634
631
Future <void > runSequentialPhases () async {
635
632
// Load kernel.
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ enum CompilerStage {
101
101
bool get shouldWriteGlobalInference => this == CompilerStage .globalInference;
102
102
bool get shouldWriteCodegen => this == CompilerStage .codegenSharded;
103
103
104
+ // Only use deferred reads for the linker and dump info phase as most deferred
105
+ // entities will not be needed. In other phases we use most of this data so
106
+ // it's not worth deferring.
107
+ bool get shouldUseDeferredSourceReads =>
108
+ this == CompilerStage .jsEmitter || this == CompilerStage .dumpInfo;
109
+
104
110
String get toFlag => _stageFlag;
105
111
106
112
static String get validFlagValuesString {
You can’t perform that action at this time.
0 commit comments