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

Side by Side Diff: pkg/compiler/lib/src/common/codegen.dart

Issue 1397043002: Introduce BackendImpact to separate enqueueing from data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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
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 library dart2js.common.codegen; 5 library dart2js.common.codegen;
6 6
7 import '../compiler.dart' show 7 import '../compiler.dart' show
8 Compiler; 8 Compiler;
9 import '../constants/values.dart' show 9 import '../constants/values.dart' show
10 ConstantValue; 10 ConstantValue;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 void registerGetOfStaticFunction(FunctionElement element) { 134 void registerGetOfStaticFunction(FunctionElement element) {
135 world.registerGetOfStaticFunction(element); 135 world.registerGetOfStaticFunction(element);
136 } 136 }
137 137
138 void registerSelectorUse(Selector selector) { 138 void registerSelectorUse(Selector selector) {
139 world.registerSelectorUse(new UniverseSelector(selector, null)); 139 world.registerSelectorUse(new UniverseSelector(selector, null));
140 } 140 }
141 141
142 void registerConstSymbol(String name) { 142 void registerConstSymbol(String name) {
143 backend.registerConstSymbol(name, this); 143 backend.registerConstSymbol(name);
144 } 144 }
145 145
146 void registerSpecializedGetInterceptor(Set<ClassElement> classes) { 146 void registerSpecializedGetInterceptor(Set<ClassElement> classes) {
147 backend.registerSpecializedGetInterceptor(classes); 147 backend.registerSpecializedGetInterceptor(classes);
148 } 148 }
149 149
150 void registerUseInterceptor() { 150 void registerUseInterceptor() {
151 backend.registerUseInterceptor(world); 151 backend.registerUseInterceptor(world);
152 } 152 }
153 153
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 TreeElements get resolutionTree => element.resolvedAst.elements; 206 TreeElements get resolutionTree => element.resolvedAst.elements;
207 207
208 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { 208 WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
209 if (world.isProcessed(element)) return const WorldImpact(); 209 if (world.isProcessed(element)) return const WorldImpact();
210 210
211 registry = new CodegenRegistry(compiler, resolutionTree); 211 registry = new CodegenRegistry(compiler, resolutionTree);
212 return compiler.codegen(this, world); 212 return compiler.codegen(this, world);
213 } 213 }
214 } 214 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/common/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698