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

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

Issue 98533005: Handle @proxy classes in type checker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years 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/elements/elements.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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 ClassElement stringClass; 433 ClassElement stringClass;
434 ClassElement functionClass; 434 ClassElement functionClass;
435 ClassElement nullClass; 435 ClassElement nullClass;
436 ClassElement listClass; 436 ClassElement listClass;
437 ClassElement typeClass; 437 ClassElement typeClass;
438 ClassElement mapClass; 438 ClassElement mapClass;
439 ClassElement symbolClass; 439 ClassElement symbolClass;
440 ClassElement stackTraceClass; 440 ClassElement stackTraceClass;
441 ClassElement typedDataClass; 441 ClassElement typedDataClass;
442 442
443 /// The constant for the [proxy] variable defined in dart:core.
444 Constant proxyConstant;
445
443 // Initialized after symbolClass has been resolved. 446 // Initialized after symbolClass has been resolved.
444 FunctionElement symbolConstructor; 447 FunctionElement symbolConstructor;
445 448
446 // Initialized when dart:mirrors is loaded. 449 // Initialized when dart:mirrors is loaded.
447 ClassElement mirrorSystemClass; 450 ClassElement mirrorSystemClass;
448 451
449 // Initialized when dart:mirrors is loaded. 452 // Initialized when dart:mirrors is loaded.
450 ClassElement mirrorsUsedClass; 453 ClassElement mirrorsUsedClass;
451 454
452 // Initialized after mirrorSystemClass has been resolved. 455 // Initialized after mirrorSystemClass has been resolved.
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 'dart:_js_helper library does not contain required classes: ' 912 'dart:_js_helper library does not contain required classes: '
910 '$missingHelperClasses'); 913 '$missingHelperClasses');
911 } 914 }
912 915
913 if (types == null) { 916 if (types == null) {
914 types = new Types(this, dynamicClass); 917 types = new Types(this, dynamicClass);
915 } 918 }
916 backend.initializeHelperClasses(); 919 backend.initializeHelperClasses();
917 920
918 dynamicClass.ensureResolved(this); 921 dynamicClass.ensureResolved(this);
922
923 proxyConstant = constantHandler.compileVariable(
924 coreLibrary.find('proxy'), isConst: true);
919 } 925 }
920 926
921 Element _unnamedListConstructor; 927 Element _unnamedListConstructor;
922 Element get unnamedListConstructor { 928 Element get unnamedListConstructor {
923 if (_unnamedListConstructor != null) return _unnamedListConstructor; 929 if (_unnamedListConstructor != null) return _unnamedListConstructor;
924 Selector callConstructor = new Selector.callConstructor( 930 Selector callConstructor = new Selector.callConstructor(
925 "", listClass.getLibrary()); 931 "", listClass.getLibrary());
926 return _unnamedListConstructor = 932 return _unnamedListConstructor =
927 listClass.lookupConstructor(callConstructor); 933 listClass.lookupConstructor(callConstructor);
928 } 934 }
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 1678
1673 void close() {} 1679 void close() {}
1674 1680
1675 toString() => name; 1681 toString() => name;
1676 1682
1677 /// Convenience method for getting an [api.CompilerOutputProvider]. 1683 /// Convenience method for getting an [api.CompilerOutputProvider].
1678 static NullSink outputProvider(String name, String extension) { 1684 static NullSink outputProvider(String name, String extension) {
1679 return new NullSink('$name.$extension'); 1685 return new NullSink('$name.$extension');
1680 } 1686 }
1681 } 1687 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698