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

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

Issue 23766002: Work around runtime engine deficiencies. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 LibraryElement isolateLibrary; 391 LibraryElement isolateLibrary;
392 LibraryElement isolateHelperLibrary; 392 LibraryElement isolateHelperLibrary;
393 LibraryElement jsHelperLibrary; 393 LibraryElement jsHelperLibrary;
394 LibraryElement interceptorsLibrary; 394 LibraryElement interceptorsLibrary;
395 LibraryElement foreignLibrary; 395 LibraryElement foreignLibrary;
396 LibraryElement mainApp; 396 LibraryElement mainApp;
397 397
398 /// Initialized when dart:mirrors is loaded. 398 /// Initialized when dart:mirrors is loaded.
399 LibraryElement mirrorsLibrary; 399 LibraryElement mirrorsLibrary;
400 400
401 /// Initialized when dart:typed_data is loaded.
402 LibraryElement typedDataLibrary;
403
401 ClassElement objectClass; 404 ClassElement objectClass;
402 ClassElement closureClass; 405 ClassElement closureClass;
403 ClassElement boundClosureClass; 406 ClassElement boundClosureClass;
404 ClassElement dynamicClass; 407 ClassElement dynamicClass;
405 ClassElement boolClass; 408 ClassElement boolClass;
406 ClassElement numClass; 409 ClassElement numClass;
407 ClassElement intClass; 410 ClassElement intClass;
408 ClassElement doubleClass; 411 ClassElement doubleClass;
409 ClassElement stringClass; 412 ClassElement stringClass;
410 ClassElement functionClass; 413 ClassElement functionClass;
411 ClassElement nullClass; 414 ClassElement nullClass;
412 ClassElement listClass; 415 ClassElement listClass;
413 ClassElement typeClass; 416 ClassElement typeClass;
414 ClassElement mapClass; 417 ClassElement mapClass;
415 ClassElement symbolClass; 418 ClassElement symbolClass;
416 ClassElement stackTraceClass; 419 ClassElement stackTraceClass;
420 ClassElement typedDataClass;
417 421
418 // Initialized after mirrorSystemClass has been resolved. 422 // Initialized after mirrorSystemClass has been resolved.
419 FunctionElement symbolConstructor; 423 FunctionElement symbolConstructor;
420 424
421 // Initialized when dart:mirrors is loaded. 425 // Initialized when dart:mirrors is loaded.
422 ClassElement mirrorSystemClass; 426 ClassElement mirrorSystemClass;
423 427
424 // Initialized when dart:mirrors is loaded. 428 // Initialized when dart:mirrors is loaded.
425 ClassElement mirrorsUsedClass; 429 ClassElement mirrorsUsedClass;
426 430
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 withCurrentElement(dynamicClass, () { 766 withCurrentElement(dynamicClass, () {
763 library.addToScope(dynamicClass, this); 767 library.addToScope(dynamicClass, this);
764 }); 768 });
765 } 769 }
766 if (uri == new Uri(scheme: 'dart', path: 'mirrors')) { 770 if (uri == new Uri(scheme: 'dart', path: 'mirrors')) {
767 mirrorsLibrary = library; 771 mirrorsLibrary = library;
768 mirrorSystemClass = 772 mirrorSystemClass =
769 findRequiredElement(library, const SourceString('MirrorSystem')); 773 findRequiredElement(library, const SourceString('MirrorSystem'));
770 mirrorsUsedClass = 774 mirrorsUsedClass =
771 findRequiredElement(library, const SourceString('MirrorsUsed')); 775 findRequiredElement(library, const SourceString('MirrorsUsed'));
776 } else if (uri == new Uri(scheme: 'dart', path: 'typed_data')) {
777 typedDataLibrary = library;
778 typedDataClass =
779 findRequiredElement(library, const SourceString('TypedData'));
772 } else if (uri == new Uri(scheme: 'dart', path: '_collection-dev')) { 780 } else if (uri == new Uri(scheme: 'dart', path: '_collection-dev')) {
773 symbolImplementationClass = 781 symbolImplementationClass =
774 findRequiredElement(library, const SourceString('Symbol')); 782 findRequiredElement(library, const SourceString('Symbol'));
775 } else if (uri == new Uri(scheme: 'dart', path: 'async')) { 783 } else if (uri == new Uri(scheme: 'dart', path: 'async')) {
776 deferredLibraryClass = 784 deferredLibraryClass =
777 findRequiredElement(library, const SourceString('DeferredLibrary')); 785 findRequiredElement(library, const SourceString('DeferredLibrary'));
778 } else if (isolateHelperLibrary == null 786 } else if (isolateHelperLibrary == null
779 && (uri == new Uri(scheme: 'dart', path: '_isolate_helper'))) { 787 && (uri == new Uri(scheme: 'dart', path: '_isolate_helper'))) {
780 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); 788 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper');
781 } else if (foreignLibrary == null 789 } else if (foreignLibrary == null
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 1536
1529 void close() {} 1537 void close() {}
1530 1538
1531 toString() => name; 1539 toString() => name;
1532 1540
1533 /// Convenience method for getting an [api.CompilerOutputProvider]. 1541 /// Convenience method for getting an [api.CompilerOutputProvider].
1534 static NullSink outputProvider(String name, String extension) { 1542 static NullSink outputProvider(String name, String extension) {
1535 return new NullSink('$name.$extension'); 1543 return new NullSink('$name.$extension');
1536 } 1544 }
1537 } 1545 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698