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

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

Issue 11093015: Implement Function.apply in dart2js. (Closed) Base URL: http://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
Index: lib/compiler/implementation/compiler.dart
===================================================================
--- lib/compiler/implementation/compiler.dart (revision 13403)
+++ lib/compiler/implementation/compiler.dart (working copy)
@@ -131,6 +131,7 @@
ClassElement listClass;
Element assertMethod;
Element identicalFunction;
+ Element functionApplyMethod;
Element get currentElement => _currentElement;
withCurrentElement(Element element, f()) {
@@ -178,6 +179,7 @@
const SourceString('startRootIsolate');
bool enabledNoSuchMethod = false;
bool enabledRuntimeType = false;
+ bool enabledFunctionApply = false;
Stopwatch progress;
@@ -384,6 +386,10 @@
identicalFunction = coreLibrary.find(const SourceString('identical'));
initializeSpecialClasses();
+
+ functionClass.ensureResolved(this);
ahe 2012/10/09 12:12:26 I think this is problematic.
+ functionApplyMethod =
+ functionClass.lookupLocalMember(const SourceString('apply'));
}
void loadCoreImplLibrary() {
« no previous file with comments | « no previous file | lib/compiler/implementation/enqueue.dart » ('j') | lib/compiler/implementation/lib/core_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698