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

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

Issue 1411783005: Remove [addForEmission] parameter from [registerCompileTimeConstant] (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/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 library dart2js.common.codegen; 5 library dart2js.common.codegen;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show 8 import '../compiler.dart' show
9 Compiler; 9 Compiler;
10 import '../constants/values.dart' show 10 import '../constants/values.dart' show
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 world.registerFieldSetter(element); 99 world.registerFieldSetter(element);
100 } 100 }
101 101
102 void registerIsCheck(DartType type) { 102 void registerIsCheck(DartType type) {
103 world.registerIsCheck(type); 103 world.registerIsCheck(type);
104 backend.registerIsCheckForCodegen(type, world, this); 104 backend.registerIsCheckForCodegen(type, world, this);
105 } 105 }
106 106
107 void registerCompileTimeConstant(ConstantValue constant) { 107 void registerCompileTimeConstant(ConstantValue constant) {
108 backend.registerCompileTimeConstant(constant, this); 108 backend.registerCompileTimeConstant(constant, this);
109 backend.addCompileTimeConstantForEmission(constant);
109 } 110 }
110 111
111 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, 112 void registerTypeVariableBoundsSubtypeCheck(DartType subtype,
112 DartType supertype) { 113 DartType supertype) {
113 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); 114 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype);
114 } 115 }
115 116
116 void registerInstantiatedClosure(LocalFunctionElement element) { 117 void registerInstantiatedClosure(LocalFunctionElement element) {
117 backend.registerInstantiatedClosure(element, this); 118 backend.registerInstantiatedClosure(element, this);
118 } 119 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 192
192 TreeElements get resolutionTree => element.resolvedAst.elements; 193 TreeElements get resolutionTree => element.resolvedAst.elements;
193 194
194 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { 195 WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
195 if (world.isProcessed(element)) return const WorldImpact(); 196 if (world.isProcessed(element)) return const WorldImpact();
196 197
197 registry = new CodegenRegistry(compiler, resolutionTree); 198 registry = new CodegenRegistry(compiler, resolutionTree);
198 return compiler.codegen(this, world); 199 return compiler.codegen(this, world);
199 } 200 }
200 } 201 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698