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

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

Issue 15987007: Revert r23380, some browser tests fail. (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;
310 ClassElement dynamicClass; 309 ClassElement dynamicClass;
311 ClassElement boolClass; 310 ClassElement boolClass;
312 ClassElement numClass; 311 ClassElement numClass;
313 ClassElement intClass; 312 ClassElement intClass;
314 ClassElement doubleClass; 313 ClassElement doubleClass;
315 ClassElement stringClass; 314 ClassElement stringClass;
316 ClassElement functionClass; 315 ClassElement functionClass;
317 ClassElement nullClass; 316 ClassElement nullClass;
318 ClassElement listClass; 317 ClassElement listClass;
319 ClassElement typeClass; 318 ClassElement typeClass;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 699
701 final List missingHelperClasses = []; 700 final List missingHelperClasses = [];
702 ClassElement lookupHelperClass(String name) { 701 ClassElement lookupHelperClass(String name) {
703 ClassElement result = jsHelperLibrary.find(new SourceString(name)); 702 ClassElement result = jsHelperLibrary.find(new SourceString(name));
704 if (result == null) { 703 if (result == null) {
705 missingHelperClasses.add(name); 704 missingHelperClasses.add(name);
706 } 705 }
707 return result; 706 return result;
708 } 707 }
709 jsInvocationMirrorClass = lookupHelperClass('JSInvocationMirror'); 708 jsInvocationMirrorClass = lookupHelperClass('JSInvocationMirror');
710 boundClosureClass = lookupHelperClass('BoundClosure');
711 closureClass = lookupHelperClass('Closure'); 709 closureClass = lookupHelperClass('Closure');
712 dynamicClass = lookupHelperClass('Dynamic_'); 710 dynamicClass = lookupHelperClass('Dynamic_');
713 nullClass = lookupHelperClass('Null'); 711 nullClass = lookupHelperClass('Null');
714 if (!missingHelperClasses.isEmpty) { 712 if (!missingHelperClasses.isEmpty) {
715 internalErrorOnElement(jsHelperLibrary, 713 internalErrorOnElement(jsHelperLibrary,
716 'dart:_js_helper library does not contain required classes: ' 714 'dart:_js_helper library does not contain required classes: '
717 '$missingHelperClasses'); 715 '$missingHelperClasses');
718 } 716 }
719 717
720 types = new Types(this, dynamicClass); 718 types = new Types(this, dynamicClass);
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 1336
1339 void close() {} 1337 void close() {}
1340 1338
1341 toString() => name; 1339 toString() => name;
1342 1340
1343 /// Convenience method for getting an [api.CompilerOutputProvider]. 1341 /// Convenience method for getting an [api.CompilerOutputProvider].
1344 static NullSink outputProvider(String name, String extension) { 1342 static NullSink outputProvider(String name, String extension) {
1345 return new NullSink('$name.$extension'); 1343 return new NullSink('$name.$extension');
1346 } 1344 }
1347 } 1345 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/closure.dart ('k') | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698