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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 15888010: Re-apply "Implement operator== and hashCode for bound closures." (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 LibraryElement coreLibrary; 299 LibraryElement coreLibrary;
300 LibraryElement isolateLibrary; 300 LibraryElement isolateLibrary;
301 LibraryElement isolateHelperLibrary; 301 LibraryElement isolateHelperLibrary;
302 LibraryElement jsHelperLibrary; 302 LibraryElement jsHelperLibrary;
303 LibraryElement interceptorsLibrary; 303 LibraryElement interceptorsLibrary;
304 LibraryElement foreignLibrary; 304 LibraryElement foreignLibrary;
305 LibraryElement mainApp; 305 LibraryElement mainApp;
306 306
307 ClassElement objectClass; 307 ClassElement objectClass;
308 ClassElement closureClass; 308 ClassElement closureClass;
309 ClassElement boundClosureClass;
309 ClassElement dynamicClass; 310 ClassElement dynamicClass;
310 ClassElement boolClass; 311 ClassElement boolClass;
311 ClassElement numClass; 312 ClassElement numClass;
312 ClassElement intClass; 313 ClassElement intClass;
313 ClassElement doubleClass; 314 ClassElement doubleClass;
314 ClassElement stringClass; 315 ClassElement stringClass;
315 ClassElement functionClass; 316 ClassElement functionClass;
316 ClassElement nullClass; 317 ClassElement nullClass;
317 ClassElement listClass; 318 ClassElement listClass;
318 ClassElement typeClass; 319 ClassElement typeClass;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 700
700 final List missingHelperClasses = []; 701 final List missingHelperClasses = [];
701 ClassElement lookupHelperClass(String name) { 702 ClassElement lookupHelperClass(String name) {
702 ClassElement result = jsHelperLibrary.find(new SourceString(name)); 703 ClassElement result = jsHelperLibrary.find(new SourceString(name));
703 if (result == null) { 704 if (result == null) {
704 missingHelperClasses.add(name); 705 missingHelperClasses.add(name);
705 } 706 }
706 return result; 707 return result;
707 } 708 }
708 jsInvocationMirrorClass = lookupHelperClass('JSInvocationMirror'); 709 jsInvocationMirrorClass = lookupHelperClass('JSInvocationMirror');
710 boundClosureClass = lookupHelperClass('BoundClosure');
709 closureClass = lookupHelperClass('Closure'); 711 closureClass = lookupHelperClass('Closure');
710 dynamicClass = lookupHelperClass('Dynamic_'); 712 dynamicClass = lookupHelperClass('Dynamic_');
711 nullClass = lookupHelperClass('Null'); 713 nullClass = lookupHelperClass('Null');
712 if (!missingHelperClasses.isEmpty) { 714 if (!missingHelperClasses.isEmpty) {
713 internalErrorOnElement(jsHelperLibrary, 715 internalErrorOnElement(jsHelperLibrary,
714 'dart:_js_helper library does not contain required classes: ' 716 'dart:_js_helper library does not contain required classes: '
715 '$missingHelperClasses'); 717 '$missingHelperClasses');
716 } 718 }
717 719
718 types = new Types(this, dynamicClass); 720 types = new Types(this, dynamicClass);
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1338
1337 void close() {} 1339 void close() {}
1338 1340
1339 toString() => name; 1341 toString() => name;
1340 1342
1341 /// Convenience method for getting an [api.CompilerOutputProvider]. 1343 /// Convenience method for getting an [api.CompilerOutputProvider].
1342 static NullSink outputProvider(String name, String extension) { 1344 static NullSink outputProvider(String name, String extension) {
1343 return new NullSink('$name.$extension'); 1345 return new NullSink('$name.$extension');
1344 } 1346 }
1345 } 1347 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698