outboxDir.getSpeedTracerLogFile().getAbsolutePath()); compilerContext = compilerContextBuilder.unitCache(unitCache).build();
outboxDir.getSpeedTracerLogFile().getAbsolutePath()); compilerContext = compilerContextBuilder.unitCache(unitCache).build();
CompilerContext tempContext = compilerContextBuilder.build(); moduleDef = createModuleDef(configurationLoader, tempContext); compilerContext = compilerContextBuilder.module(moduleDef).unitCache(getPersistantCache()).build(); compilationState = createCompilationState(moduleDef, compilerContext); overlayRewriter = createOverlayRewriter(compilationState);
currentModule = compileStrategy.maybeCompileModule(moduleName, syntheticModuleName, strategy, batchingStrategy, getTopLogger()); compilerContext = compilerContextBuilder.module(currentModule).build(); currentCompilationState = currentModule.getCompilationState(getTopLogger(), compilerContext);
currentModule = compileStrategy.maybeCompileModule(moduleName, syntheticModuleName, strategy, batchingStrategy, getTopLogger()); compilerContext = compilerContextBuilder.module(currentModule).build(); currentCompilationState = currentModule.getCompilationState(getTopLogger(), compilerContext);
compilerContext = compilerContextBuilder.module(moduleDef).build();
compilerContext = compilerContextBuilder.module(moduleDef).build();
void maybeCompileForWebMode(ModuleDef module, Set<String> userAgents) throws UnableToCompleteException { compilerContext = compilerContextBuilder.module(module).build();
void maybeCompileForWebMode(ModuleDef module, Set<String> userAgents) throws UnableToCompleteException { compilerContext = compilerContextBuilder.module(module).build();
compilerContext = compilerContextBuilder.options(loadOptions).unitCache(unitCache).build();
compilerContext = compilerContextBuilder.options(loadOptions).unitCache(unitCache).build();
CompilerContext tempContext = compilerContextBuilder.build(); moduleDef = createModuleDef(configurationLoader, tempContext); compilerContext = compilerContextBuilder.module(moduleDef).unitCache(getPersistantCache()).build(); compilationState = createCompilationState(moduleDef, compilerContext); overlayRewriter = createOverlayRewriter(compilationState);
public void onModuleReady(ModuleSpace readySpace) throws UnableToCompleteException { this.space = readySpace; Event moduleSpaceHostReadyEvent = SpeedTracerLogger.start(DevModeEventType.MODULE_SPACE_HOST_READY); try { // Establish an environment for JavaScript property providers to run. // ModuleSpacePropertyOracle propOracle = new ModuleSpacePropertyOracle( module.getProperties(), module.getActiveLinkerNames(), readySpace); // Set up the rebind oracle for the module. // It has to wait until now because we need to inject javascript. // Deque<Rule> rules = module.getRules(); PrecompileTaskOptionsImpl options = new PrecompileTaskOptionsImpl(); options.setGenDir(genDir); CompilerContext compilerContext = new CompilerContext.Builder().module(module).options( options).build(); StandardGeneratorContext genCtx = new StandardGeneratorContext(compilerContext, compilationState, new ArtifactSet(), false); // Only enable generator result caching if we have a valid rebindCache genCtx.setGeneratorResultCachingEnabled(rebindCache != null); rebindOracle = new StandardRebindOracle2(propOracle, rules, genCtx); rebindOracle.setRebindCache(rebindCache); } finally { moduleSpaceHostReadyEvent.end(); } }
public void onModuleReady(ModuleSpace readySpace) throws UnableToCompleteException { this.space = readySpace; Event moduleSpaceHostReadyEvent = SpeedTracerLogger.start(DevModeEventType.MODULE_SPACE_HOST_READY); try { // Establish an environment for JavaScript property providers to run. // ModuleSpacePropertyOracle propOracle = new ModuleSpacePropertyOracle( module.getProperties(), module.getActiveLinkerNames(), readySpace); // Set up the rebind oracle for the module. // It has to wait until now because we need to inject javascript. // Deque<Rule> rules = module.getRules(); PrecompileTaskOptionsImpl options = new PrecompileTaskOptionsImpl(); options.setGenDir(genDir); CompilerContext compilerContext = new CompilerContext.Builder().module(module).options( options).build(); StandardGeneratorContext genCtx = new StandardGeneratorContext(compilerContext, compilationState, new ArtifactSet(), false); // Only enable generator result caching if we have a valid rebindCache genCtx.setGeneratorResultCachingEnabled(rebindCache != null); rebindOracle = new StandardRebindOracle2(propOracle, rules, genCtx); rebindOracle.setRebindCache(rebindCache); } finally { moduleSpaceHostReadyEvent.end(); } }
Recompiler(OutboxDir outboxDir, LauncherDir launcherDir, String inputModuleName, Options options, UnitCache unitCache, MinimalRebuildCacheManager minimalRebuildCacheManager) { this.outboxDir = outboxDir; this.launcherDir = launcherDir; this.inputModuleName = inputModuleName; this.options = options; this.unitCache = unitCache; this.minimalRebuildCacheManager = minimalRebuildCacheManager; this.serverPrefix = options.getPreferredHost() + ":" + options.getPort(); compilerContext = compilerContextBuilder.build(); }
Recompiler(OutboxDir outboxDir, LauncherDir launcherDir, String inputModuleName, Options options, UnitCache unitCache, MinimalRebuildCacheManager minimalRebuildCacheManager) { this.outboxDir = outboxDir; this.launcherDir = launcherDir; this.inputModuleName = inputModuleName; this.options = options; this.unitCache = unitCache; this.minimalRebuildCacheManager = minimalRebuildCacheManager; this.serverPrefix = options.getPreferredHost() + ":" + options.getPort(); compilerContext = compilerContextBuilder.build(); }