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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder.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 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:js_runtime/shared/embedded_names.dart'; 7 import 'package:js_runtime/shared/embedded_names.dart';
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 this.rtiSubstitutions = backend.rtiSubstitutions { 208 this.rtiSubstitutions = backend.rtiSubstitutions {
209 assert(target.isImplementation); 209 assert(target.isImplementation);
210 elementInferenceResults = _resultOf(target); 210 elementInferenceResults = _resultOf(target);
211 assert(elementInferenceResults != null); 211 assert(elementInferenceResults != null);
212 graph.element = target; 212 graph.element = target;
213 sourceElementStack.add(target); 213 sourceElementStack.add(target);
214 sourceInformationBuilder = 214 sourceInformationBuilder =
215 sourceInformationFactory.createBuilderForContext(resolvedAst); 215 sourceInformationFactory.createBuilderForContext(resolvedAst);
216 graph.sourceInformation = 216 graph.sourceInformation =
217 sourceInformationBuilder.buildVariableDeclaration(); 217 sourceInformationBuilder.buildVariableDeclaration();
218 localsHandler = new LocalsHandler( 218 localsHandler = new LocalsHandler(this, target, null,
219 this, target, null, closedWorld.nativeData, backend.interceptorData); 219 closedWorld.nativeData, closedWorld.interceptorData);
220 loopHandler = new SsaLoopHandler(this); 220 loopHandler = new SsaLoopHandler(this);
221 typeBuilder = new TypeBuilder(this); 221 typeBuilder = new TypeBuilder(this);
222 } 222 }
223 223
224 Element get targetElement => target; 224 Element get targetElement => target;
225 225
226 /// Reference to resolved elements in [target]'s AST. 226 /// Reference to resolved elements in [target]'s AST.
227 TreeElements get elements => resolvedAst.elements; 227 TreeElements get elements => resolvedAst.elements;
228 228
229 @override 229 @override
(...skipping 6513 matching lines...) Expand 10 before | Expand all | Expand 10 after
6743 this.oldReturnLocal, 6743 this.oldReturnLocal,
6744 this.oldReturnType, 6744 this.oldReturnType,
6745 this.oldResolvedAst, 6745 this.oldResolvedAst,
6746 this.oldStack, 6746 this.oldStack,
6747 this.oldLocalsHandler, 6747 this.oldLocalsHandler,
6748 this.inTryStatement, 6748 this.inTryStatement,
6749 this.allFunctionsCalledOnce, 6749 this.allFunctionsCalledOnce,
6750 this.oldElementInferenceResults) 6750 this.oldElementInferenceResults)
6751 : super(function); 6751 : super(function);
6752 } 6752 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698