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

Side by Side Diff: pkg/compiler/lib/src/js_model/elements.dart

Issue 2971673002: Split ClassEnv into env and data to avoid copying types/constants from the k-model (Closed)
Patch Set: Updated cf. comments. Created 3 years, 5 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 dart2js.js_model.elements; 5 library dart2js.js_model.elements;
6 6
7 import '../common_elements.dart'; 7 import '../common_elements.dart';
8 import '../constants/constant_system.dart'; 8 import '../constants/constant_system.dart';
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../elements/entities.dart'; 10 import '../elements/entities.dart';
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return new JLibrary(libraryIndex, name, canonicalUri); 102 return new JLibrary(libraryIndex, name, canonicalUri);
103 } 103 }
104 104
105 IndexedClass createClass(LibraryEntity library, int classIndex, String name, 105 IndexedClass createClass(LibraryEntity library, int classIndex, String name,
106 {bool isAbstract}) { 106 {bool isAbstract}) {
107 return new JClass(library, classIndex, name, isAbstract: isAbstract); 107 return new JClass(library, classIndex, name, isAbstract: isAbstract);
108 } 108 }
109 109
110 TypeVariableEntity createTypeVariable( 110 TypeVariableEntity createTypeVariable(
111 Entity typeDeclaration, String name, int index) { 111 Entity typeDeclaration, String name, int index) {
112 throw new UnsupportedError('JsElementCreatorMixin.createTypeVariable'); 112 return new JTypeVariable(typeDeclaration, name, index);
113 } 113 }
114 114
115 IndexedConstructor createGenerativeConstructor( 115 IndexedConstructor createGenerativeConstructor(
116 int memberIndex, 116 int memberIndex,
117 ClassEntity enclosingClass, 117 ClassEntity enclosingClass,
118 Name name, 118 Name name,
119 ParameterStructure parameterStructure, 119 ParameterStructure parameterStructure,
120 {bool isExternal, 120 {bool isExternal,
121 bool isConst}) { 121 bool isConst}) {
122 return new JGenerativeConstructor( 122 return new JGenerativeConstructor(
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 773
774 @override 774 @override
775 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; 775 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed;
776 776
777 @override 777 @override
778 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; 778 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed;
779 779
780 @override 780 @override
781 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; 781 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed;
782 } 782 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698