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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 2871583002: Pass InterceptorData through ResolutionWorldBuilder and access it through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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.js_emitter.code_emitter_task; 5 library dart2js.js_emitter.code_emitter_task;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; 7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/tasks.dart' show CompilerTask; 10 import '../common/tasks.dart' show CompilerTask;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 typeTestRegistry.computeRequiredTypeChecks(backend.rtiChecksBuilder); 161 typeTestRegistry.computeRequiredTypeChecks(backend.rtiChecksBuilder);
162 // Compute the classes needed by RTI. 162 // Compute the classes needed by RTI.
163 typeTestRegistry.computeRtiNeededClasses(backend.rtiSubstitutions, 163 typeTestRegistry.computeRtiNeededClasses(backend.rtiSubstitutions,
164 backend.mirrorsData, backend.generatedCode.keys); 164 backend.mirrorsData, backend.generatedCode.keys);
165 } 165 }
166 166
167 /// Creates the [Emitter] for this task. 167 /// Creates the [Emitter] for this task.
168 void createEmitter(Namer namer, ClosedWorld closedWorld, 168 void createEmitter(Namer namer, ClosedWorld closedWorld,
169 CodegenWorldBuilder codegenWorldBuilder) { 169 CodegenWorldBuilder codegenWorldBuilder) {
170 measure(() { 170 measure(() {
171 _nativeEmitter = new NativeEmitter(this, closedWorld.nativeData); 171 _nativeEmitter = new NativeEmitter(
172 this, closedWorld.nativeData, closedWorld.interceptorData);
172 _emitter = _emitterFactory.createEmitter(this, namer, closedWorld); 173 _emitter = _emitterFactory.createEmitter(this, namer, closedWorld);
173 metadataCollector = new MetadataCollector( 174 metadataCollector = new MetadataCollector(
174 compiler.options, 175 compiler.options,
175 compiler.reporter, 176 compiler.reporter,
176 compiler.deferredLoadTask, 177 compiler.deferredLoadTask,
177 _emitter, 178 _emitter,
178 backend.constants, 179 backend.constants,
179 backend.typeVariableCodegenAnalysis, 180 backend.typeVariableCodegenAnalysis,
180 backend.mirrorsData, 181 backend.mirrorsData,
181 backend.rtiEncoder); 182 backend.rtiEncoder);
(...skipping 11 matching lines...) Expand all
193 compiler.types, 194 compiler.types,
194 compiler.deferredLoadTask, 195 compiler.deferredLoadTask,
195 compiler.closureToClassMapper, 196 compiler.closureToClassMapper,
196 compiler.codegenWorldBuilder, 197 compiler.codegenWorldBuilder,
197 backend.nativeCodegenEnqueuer, 198 backend.nativeCodegenEnqueuer,
198 backend.backendUsage, 199 backend.backendUsage,
199 backend.constants, 200 backend.constants,
200 closedWorld.nativeData, 201 closedWorld.nativeData,
201 backend.rtiNeed, 202 backend.rtiNeed,
202 backend.mirrorsData, 203 backend.mirrorsData,
203 backend.interceptorData, 204 closedWorld.interceptorData,
204 backend.superMemberData, 205 backend.superMemberData,
205 typeTestRegistry.rtiChecks, 206 typeTestRegistry.rtiChecks,
206 backend.rtiEncoder, 207 backend.rtiEncoder,
207 backend.rtiSubstitutions, 208 backend.rtiSubstitutions,
208 backend.jsInteropAnalysis, 209 backend.jsInteropAnalysis,
209 backend.oneShotInterceptorData, 210 backend.oneShotInterceptorData,
210 backend.customElementsCodegenAnalysis, 211 backend.customElementsCodegenAnalysis,
211 backend.generatedCode, 212 backend.generatedCode,
212 namer, 213 namer,
213 this, 214 this,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 /// Returns the JS code for accessing the given [constant]. 278 /// Returns the JS code for accessing the given [constant].
278 jsAst.Expression constantReference(ConstantValue constant); 279 jsAst.Expression constantReference(ConstantValue constant);
279 280
280 /// Returns the JS template for the given [builtin]. 281 /// Returns the JS template for the given [builtin].
281 jsAst.Template templateForBuiltin(JsBuiltin builtin); 282 jsAst.Template templateForBuiltin(JsBuiltin builtin);
282 283
283 /// Returns the size of the code generated for a given output [unit]. 284 /// Returns the size of the code generated for a given output [unit].
284 int generatedSize(OutputUnit unit); 285 int generatedSize(OutputUnit unit);
285 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698