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

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

Issue 2899273002: Pass context class directly to KernelSsaBuilder (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/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index cd8bbc4b89bccc1578d716ac976325a137827f04..0abf07d050c71267ed6a5b316af45d5bc68c828f 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -96,6 +96,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
KernelSsaBuilder(
this.targetElement,
+ ClassEntity contextClass,
this.compiler,
this._elementMap,
this.closedWorld,
@@ -109,7 +110,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
graph.sourceInformation =
sourceInformationBuilder.buildVariableDeclaration();
this.localsHandler = new LocalsHandler(this, targetElement, targetElement,
- targetElement.enclosingClass, null, nativeData, interceptorData);
+ contextClass, null, nativeData, interceptorData);
target = astAdapter.getInitialKernelNode(targetElement);
if (targetElement is ConstructorBodyElement) {
_targetIsConstructorBody = true;
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698