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

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

Issue 930143002: Remove implicit dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changes committed as r43874. Created 5 years, 10 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 | « no previous file | dart/pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/compiler.dart
diff --git a/dart/pkg/compiler/lib/src/compiler.dart b/dart/pkg/compiler/lib/src/compiler.dart
index a3adcdb299c7d5df773779e43a3bece46256f5dc..d0b85f5acd79124dfc230d6b5311233f55cbc8f7 100644
--- a/dart/pkg/compiler/lib/src/compiler.dart
+++ b/dart/pkg/compiler/lib/src/compiler.dart
@@ -805,8 +805,8 @@ abstract class Compiler implements DiagnosticListener {
ClassElement typedDataClass;
- /// The constant for the [proxy] variable defined in dart:core.
- ConstantValue proxyConstant;
+ /// The class for the [proxy] value defined in dart:core.
+ ClassElement proxyClass;
// TODO(johnniwinther): Move this to the JavaScriptBackend.
/// The class for patch annotation defined in dart:_js_helper.
@@ -1331,10 +1331,6 @@ abstract class Compiler implements DiagnosticListener {
functionClass.ensureResolved(this);
functionApplyMethod = functionClass.lookupLocalMember('apply');
- proxyConstant =
- resolver.constantCompiler.compileConstant(
- coreLibrary.find('proxy')).value;
-
if (preserveComments) {
return libraryLoader.loadLibrary(DART_MIRRORS)
.then((LibraryElement libraryElement) {
@@ -1403,6 +1399,7 @@ abstract class Compiler implements DiagnosticListener {
_coreTypes.stackTraceClass = lookupCoreClass('StackTrace');
_coreTypes.iterableClass = lookupCoreClass('Iterable');
_coreTypes.symbolClass = lookupCoreClass('Symbol');
+ proxyClass = lookupCoreClass('_Proxy');
if (!missingCoreClasses.isEmpty) {
internalError(
coreLibrary,
@@ -1674,12 +1671,6 @@ abstract class Compiler implements DiagnosticListener {
if (main != null && !main.isErroneous) {
FunctionElement mainMethod = main;
if (mainMethod.computeSignature(this).parameterCount != 0) {
- // The first argument could be a list of strings.
- world.registerInstantiatedClass(
- backend.listImplementation, globalDependencies);
- world.registerInstantiatedClass(
- backend.stringImplementation, globalDependencies);
-
backend.registerMainHasArguments(world);
}
world.addToWorkList(main);
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698