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

Unified Diff: pkg/compiler/lib/src/ssa/interceptor_simplifier.dart

Issue 2302363003: No longer store the compilation-context in WorkItem. (Closed)
Patch Set: Created 4 years, 3 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/interceptor_simplifier.dart
diff --git a/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart b/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
index 8cc746748cdbbae1aba411a580985f6a7cdea446..a12a57efe1f1f40e9ed5aecfe7977ad9dd4ebd1e 100644
--- a/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
+++ b/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart
@@ -40,10 +40,10 @@ class SsaSimplifyInterceptors extends HBaseVisitor
final String name = "SsaSimplifyInterceptors";
final ConstantSystem constantSystem;
final Compiler compiler;
- final CodegenWorkItem work;
+ final Element element;
HGraph graph;
- SsaSimplifyInterceptors(this.compiler, this.constantSystem, this.work);
+ SsaSimplifyInterceptors(this.compiler, this.constantSystem, this.element);
JavaScriptBackend get backend => compiler.backend;
@@ -129,7 +129,7 @@ class SsaSimplifyInterceptors extends HBaseVisitor
// If we just happen to be in an instance method of the constant
// interceptor, `this` is a shorter alias.
- if (constantInterceptor == work.element.enclosingClass &&
+ if (constantInterceptor == element.enclosingClass &&
graph.thisInstruction != null) {
return graph.thisInstruction;
}

Powered by Google App Engine
This is Rietveld 408576698