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

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

Issue 24282005: Move compile-time constant registrations to the backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status Created 7 years, 2 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library elements.modelx; 5 library elements.modelx;
6 6
7 import 'dart:collection' show LinkedHashMap; 7 import 'dart:collection' show LinkedHashMap;
8 8
9 import 'elements.dart'; 9 import 'elements.dart';
10 import '../../compiler.dart' as api; 10 import '../../compiler.dart' as api;
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 int get hashCode => id; 1567 int get hashCode => id;
1568 ClassElement get patch => super.patch; 1568 ClassElement get patch => super.patch;
1569 ClassElement get origin => super.origin; 1569 ClassElement get origin => super.origin;
1570 ClassElement get declaration => super.declaration; 1570 ClassElement get declaration => super.declaration;
1571 ClassElement get implementation => super.implementation; 1571 ClassElement get implementation => super.implementation;
1572 1572
1573 bool get hasBackendMembers => !backendMembers.isEmpty; 1573 bool get hasBackendMembers => !backendMembers.isEmpty;
1574 1574
1575 bool get isUnnamedMixinApplication => false; 1575 bool get isUnnamedMixinApplication => false;
1576 1576
1577 // TODO(johnniwinther): Add [thisType] getter similar to [rawType].
1577 InterfaceType computeType(Compiler compiler) { 1578 InterfaceType computeType(Compiler compiler) {
1578 if (thisType == null) { 1579 if (thisType == null) {
1579 if (origin == null) { 1580 if (origin == null) {
1580 Link<DartType> parameters = computeTypeParameters(compiler); 1581 Link<DartType> parameters = computeTypeParameters(compiler);
1581 thisType = new InterfaceType(this, parameters); 1582 thisType = new InterfaceType(this, parameters);
1582 if (parameters.isEmpty) { 1583 if (parameters.isEmpty) {
1583 rawTypeCache = thisType; 1584 rawTypeCache = thisType;
1584 } else { 1585 } else {
1585 var dynamicParameters = const Link<DartType>(); 1586 var dynamicParameters = const Link<DartType>();
1586 parameters.forEach((_) { 1587 parameters.forEach((_) {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 2233
2233 MetadataAnnotation ensureResolved(Compiler compiler) { 2234 MetadataAnnotation ensureResolved(Compiler compiler) {
2234 if (resolutionState == STATE_NOT_STARTED) { 2235 if (resolutionState == STATE_NOT_STARTED) {
2235 compiler.resolver.resolveMetadataAnnotation(this); 2236 compiler.resolver.resolveMetadataAnnotation(this);
2236 } 2237 }
2237 return this; 2238 return this;
2238 } 2239 }
2239 2240
2240 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2241 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2241 } 2242 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/constants.dart ('k') | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698