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

Side by Side Diff: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java

Issue 9865025: Revert "Removes dartc reliance on its own libraries, now can be targeted at any implementation's li… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 package com.google.dart.compiler; 5 package com.google.dart.compiler;
6 6
7 import com.google.dart.compiler.CommandLineOptions.CompilerOptions; 7 import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
8 import com.google.dart.compiler.metrics.CompilerMetrics; 8 import com.google.dart.compiler.metrics.CompilerMetrics;
9 import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer; 9 import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
10 import com.google.dart.compiler.resolver.Resolver; 10 import com.google.dart.compiler.resolver.Resolver;
(...skipping 20 matching lines...) Expand all
31 * A default configuration. 31 * A default configuration.
32 */ 32 */
33 public DefaultCompilerConfiguration() { 33 public DefaultCompilerConfiguration() {
34 this(new CompilerOptions()); 34 this(new CompilerOptions());
35 } 35 }
36 36
37 /** 37 /**
38 * A new instance with the specified {@link CompilerOptions}. 38 * A new instance with the specified {@link CompilerOptions}.
39 */ 39 */
40 public DefaultCompilerConfiguration(CompilerOptions compilerOptions) { 40 public DefaultCompilerConfiguration(CompilerOptions compilerOptions) {
41 this(compilerOptions, new SystemLibraryManager(compilerOptions.getDartSdkPat h(), 41 this(compilerOptions, new SystemLibraryManager());
42 compilerOptions.getPlatformNa me()));
43 } 42 }
44 43
45 /** 44 /**
46 * A new instance with the specified options and system library manager. 45 * A new instance with the specified options and system library manager.
47 */ 46 */
48 public DefaultCompilerConfiguration(CompilerOptions compilerOptions, 47 public DefaultCompilerConfiguration(CompilerOptions compilerOptions,
49 SystemLibraryManager libraryManager) { 48 SystemLibraryManager libraryManager) {
50 this.compilerOptions = compilerOptions; 49 this.compilerOptions = compilerOptions;
51 this.compilerMetrics = compilerOptions.showMetrics() ? new CompilerMetrics() : null; 50 this.compilerMetrics = compilerOptions.showMetrics() ? new CompilerMetrics() : null;
52 this.systemLibraryManager = libraryManager; 51 this.systemLibraryManager = libraryManager;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 @Override 119 @Override
121 public CompilerOptions getCompilerOptions() { 120 public CompilerOptions getCompilerOptions() {
122 return compilerOptions; 121 return compilerOptions;
123 } 122 }
124 123
125 @Override 124 @Override
126 public ErrorFormat printErrorFormat() { 125 public ErrorFormat printErrorFormat() {
127 return compilerOptions.printErrorFormat(); 126 return compilerOptions.printErrorFormat();
128 } 127 }
129 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698