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

Unified Diff: pkg/compiler/lib/src/ssa/interceptor_simplifier.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
diff --git a/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart b/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
index 68c0d561c46ef9e9fe8142f1d960b1dfd3a4b4f1..cde68b71743b3c86fb01f7b094754f055750035a 100644
--- a/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
+++ b/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
@@ -37,16 +37,17 @@ class SsaSimplifyInterceptors extends HBaseVisitor
implements OptimizationPhase {
final String name = "SsaSimplifyInterceptors";
final ClosedWorld closedWorld;
- final InterceptorData interceptorData;
- final CommonElements _commonElements;
final ClassEntity enclosingClass;
HGraph graph;
- SsaSimplifyInterceptors(this.closedWorld, this._commonElements,
- this.interceptorData, this.enclosingClass);
+ SsaSimplifyInterceptors(this.closedWorld, this.enclosingClass);
+
+ CommonElements get _commonElements => closedWorld.commonElements;
ConstantSystem get constantSystem => closedWorld.constantSystem;
+ InterceptorData get interceptorData => closedWorld.interceptorData;
+
void visitGraph(HGraph graph) {
this.graph = graph;
visitDominatorTree(graph);
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698