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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.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
Index: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 4436023b10b8f494823fe8d52977563e52062601..514cf8e2447edc98b40ffbac3277c2da81990653 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -15,7 +15,6 @@ import '../elements/entities.dart';
import '../elements/resolution_types.dart';
import '../js/js.dart' as js;
import '../js_backend/js_backend.dart';
-import '../js_backend/interceptor_data.dart' show InterceptorData;
import '../js_backend/native_data.dart' show NativeData;
import '../native/native.dart' as native;
import '../options.dart';
@@ -54,8 +53,6 @@ class SsaOptimizerTask extends CompilerTask {
RuntimeTypesSubstitutions get _rtiSubstitutions => _backend.rtiSubstitutions;
- InterceptorData get _interceptorData => _backend.interceptorData;
-
void optimize(CodegenWorkItem work, HGraph graph, ClosedWorld closedWorld) {
void runPhase(OptimizationPhase phase) {
measureSubtask(phase.name, () => phase.visitGraph(graph));
@@ -120,10 +117,7 @@ class SsaOptimizerTask extends CompilerTask {
// required for implementation correctness because the code generator
// assumes it is always performed.
runPhase(new SsaSimplifyInterceptors(
- closedWorld,
- closedWorld.commonElements,
- _interceptorData,
- work.element.enclosingClass));
+ closedWorld, work.element.enclosingClass));
SsaDeadCodeEliminator dce = new SsaDeadCodeEliminator(closedWorld, this);
runPhase(dce);
@@ -139,8 +133,7 @@ class SsaOptimizerTask extends CompilerTask {
new SsaInstructionSimplifier(
_results, _options, _rtiSubstitutions, closedWorld, registry),
new SsaCheckInserter(trustPrimitives, closedWorld, boundsChecked),
- new SsaSimplifyInterceptors(closedWorld, closedWorld.commonElements,
- _interceptorData, work.element.enclosingClass),
+ new SsaSimplifyInterceptors(closedWorld, work.element.enclosingClass),
new SsaDeadCodeEliminator(closedWorld, this),
];
} else {
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/universe/element_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698