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

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

Issue 16114013: Reland "Add --version option to dart2js and add version information (if available) to generated cod… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix formatting. Created 7 years, 7 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 | « sdk/bin/dart2js.bat ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index f14543f3dcae2b23c108967dfbc57f81277b579e..36923676c443aa3ff3d93636171585e4bcc22086 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -412,6 +412,9 @@ abstract class Compiler implements DiagnosticListener {
static const SourceString START_ROOT_ISOLATE =
const SourceString('startRootIsolate');
+ static const String UNDETERMINED_BUILD_ID =
+ "build number could not be determined";
+
final Selector iteratorSelector =
new Selector.getter(const SourceString('iterator'), null);
final Selector currentSelector =
@@ -459,15 +462,14 @@ abstract class Compiler implements DiagnosticListener {
this.preserveComments: false,
this.verbose: false,
this.sourceMapUri: null,
- this.buildId: "build number could not be determined",
+ this.buildId: UNDETERMINED_BUILD_ID,
outputProvider,
List<String> strips: const []})
: this.analyzeOnly = analyzeOnly || analyzeSignaturesOnly,
this.analyzeSignaturesOnly = analyzeSignaturesOnly,
- this.outputProvider =
- (outputProvider == null) ? NullSink.outputProvider : outputProvider
-
- {
+ this.outputProvider = (outputProvider == null)
+ ? NullSink.outputProvider
+ : outputProvider {
world = new World(this);
closureMapping.ClosureNamer closureNamer;
@@ -508,6 +510,8 @@ abstract class Compiler implements DiagnosticListener {
Universe get resolverWorld => enqueuer.resolution.universe;
Universe get codegenWorld => enqueuer.codegen.universe;
+ bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID;
+
int getNextFreeClassId() => nextFreeClassId++;
void ensure(bool condition) {
« no previous file with comments | « sdk/bin/dart2js.bat ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698