111
111
import java .util .List ;
112
112
import java .util .Map ;
113
113
import java .util .Set ;
114
- import java .util .TreeMap ;
115
114
import java .util .concurrent .Callable ;
116
115
import java .util .concurrent .ConcurrentHashMap ;
117
116
import java .util .concurrent .ConcurrentMap ;
@@ -3921,9 +3920,6 @@ protected static class CompilerState implements Serializable {
3921
3920
private final String idGeneratorMap ;
3922
3921
private final IdGenerator crossModuleIdGenerator ;
3923
3922
private final boolean runJ2clPasses ;
3924
- // TODO(b/235404079): Stop serializing input source maps here since we serialize them in
3925
- // TypedAsts
3926
- private final ImmutableMap <String , SourceMapInput > inputSourceMaps ;
3927
3923
private final ImmutableList <InputId > externs ;
3928
3924
private final ImmutableListMultimap <JSChunk , InputId > moduleToInputList ;
3929
3925
private final LinkedHashSet <String > injectedLibraries ;
@@ -3944,7 +3940,6 @@ protected static class CompilerState implements Serializable {
3944
3940
this .idGeneratorMap = compiler .idGeneratorMap ;
3945
3941
this .crossModuleIdGenerator = compiler .crossModuleIdGenerator ;
3946
3942
this .runJ2clPasses = compiler .runJ2clPasses ;
3947
- this .inputSourceMaps = ImmutableMap .copyOf (new TreeMap <>(compiler .inputSourceMaps ));
3948
3943
this .externs =
3949
3944
compiler .externs .stream ().map (CompilerInput ::getInputId ).collect (toImmutableList ());
3950
3945
this .moduleToInputList = mapJSModulesToInputIds (compiler .moduleGraph .getAllChunks ());
@@ -3994,19 +3989,6 @@ protected void restoreFromState(CompilerState compilerState) {
3994
3989
changeStamp = 1 ;
3995
3990
3996
3991
accessorSummary = compilerState .accessorSummary ;
3997
- inputSourceMaps = new ConcurrentHashMap <>(compilerState .inputSourceMaps );
3998
- if (options .shouldGatherSourceMapInfo ()
3999
- && options .sourceMapIncludeSourcesContent
4000
- && options .applyInputSourceMaps ) {
4001
- // The inline source maps found by the parser in stage one will be in the restored
4002
- // inputSourceMaps field.
4003
- // addSourceMapSourceFiles() is invoked by the parser during stage one.
4004
- // When restoring state, we need to do it again to get the source content from
4005
- // the inline source maps into our current source map object.
4006
- for (SourceMapInput inputSourceMap : inputSourceMaps .values ()) {
4007
- addSourceMapSourceFiles (inputSourceMap );
4008
- }
4009
- }
4010
3992
}
4011
3993
4012
3994
private static final ImmutableListMultimap <JSChunk , InputId > mapJSModulesToInputIds (
0 commit comments