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

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

Issue 11085020: Revert "Address Peter's comments on Function.apply." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index c65ed5db7f95b5b0003f80aa75214374810aa6b0..f0e83debdde8babd1ab14f41d9ca46024330138b 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -384,10 +384,12 @@ abstract class Compiler implements DiagnosticListener {
assertMethod = jsHelperLibrary.find(const SourceString('assert'));
identicalFunction = coreLibrary.find(const SourceString('identical'));
- functionApplyMethod =
- jsHelperLibrary.find(const SourceString('applyFunction'));
initializeSpecialClasses();
+
+ functionClass.ensureResolved(this);
+ functionApplyMethod =
+ functionClass.lookupLocalMember(const SourceString('apply'));
}
void loadCoreImplLibrary() {
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698