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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 636903002: Compute an incremental patch to JavaScript code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use Namer.elementAccess (to address Johnni's comment) Created 6 years, 2 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
Index: dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
index 8cb14ddc4d69fafe17373c707ba28f71fe2a1ed0..27672ab2bf90b978d90251a238c2b62f17fd3b5a 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart
@@ -13,6 +13,8 @@ import 'elements/elements.dart' as elements;
import '../../libraries.dart';
import 'source_file.dart';
+const bool forceIncrementalSupport =
+ const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT');
class Compiler extends leg.Compiler {
api.CompilerInputProvider provider;
@@ -71,7 +73,9 @@ class Compiler extends leg.Compiler {
showPackageWarnings:
hasOption(options, '--show-package-warnings'),
useContentSecurityPolicy: hasOption(options, '--csp'),
- hasIncrementalSupport: hasOption(options, '--incremental-support'),
+ hasIncrementalSupport:
+ forceIncrementalSupport ||
+ hasOption(options, '--incremental-support'),
suppressWarnings: hasOption(options, '--suppress-warnings')) {
tasks.addAll([
userHandlerTask = new leg.GenericTask('Diagnostic handler', this),
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/library_updater.dart ('k') | dart/sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698