Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 2121743002: Support serialization of generic methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Don't serialize code with compile time errors. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 4301a55e5c186c1302f0b31e491fff43432f0b14..1b41be1a4e07b0999fd1ed3a6861c239a28ed71c 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -878,7 +878,8 @@ void _useSerializedDataForDartCore(CompileFunc oldCompileFunc) {
}
}
}
- options = options.copy(resolutionInputs: resolutionInputs);
+ options =
+ CompilerOptions.copy(options, resolutionInputs: resolutionInputs);
}
return oldCompileFunc(options, input, compilerDiagnostics, compilerOutput);
}
@@ -892,15 +893,12 @@ void _useSerializedDataForDartCore(CompileFunc oldCompileFunc) {
api.CompilerDiagnostics compilerDiagnostics,
api.CompilerOutput compilerOutput,
[List<_SerializedData> serializedData]) {
- CompilerOptions options = new CompilerOptions.parse(
+ CompilerOptions options = CompilerOptions.copy(compilerOptions,
entryPoint: entryPoint,
- libraryRoot: compilerOptions.libraryRoot,
- packageRoot: compilerOptions.packageRoot,
- packageConfig: compilerOptions.packageConfig,
- packagesDiscoveryProvider: compilerOptions.packagesDiscoveryProvider,
- environment: compilerOptions.environment,
resolutionOutput: serializedUri,
- options: [Flags.resolveOnly]);
+ analyzeAll: true,
+ analyzeOnly: true,
+ resolveOnly: true);
return compileWithSerializedData(options, compilerInput,
compilerDiagnostics, compilerOutput, serializedData);
}
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698