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

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

Issue 10908287: Make identical(a,b) a compile-time constant in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comment. Created 8 years, 3 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
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index b91a4580dcfdaec308f3f10c6980fbb122ab913e..f533623192b54941161f181c274d2b44964b40ef 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -122,6 +122,7 @@ class Compiler implements DiagnosticListener {
ClassElement nullClass;
ClassElement listClass;
Element assertMethod;
+ Element identicalFunction;
Element get currentElement => _currentElement;
withCurrentElement(Element element, f()) {
@@ -367,6 +368,7 @@ class Compiler implements DiagnosticListener {
libraries['dart:coreimpl'] = coreImplLibrary;
assertMethod = jsHelperLibrary.find(const SourceString('assert'));
+ identicalFunction = coreLibrary.find(const SourceString('identical'));
ahe 2012/09/18 08:30:17 This doesn't report an error if it cannot find 'id
initializeSpecialClasses();
}

Powered by Google App Engine
This is Rietveld 408576698