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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 266193004: Clean patch implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 954a95f8d7e4842dc9301da529ced66367e82356..efbad80568c103ba387cd8c888fd0f7aa24d8b21 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -1492,8 +1492,10 @@ class SsaBuilder extends ResolvedVisitor {
if (constructor.isPatch) {
// Create origin body element for patched constructors.
- bodyElement.origin = new ConstructorBodyElementX(constructor.origin);
- bodyElement.origin.patch = bodyElement;
+ ConstructorBodyElementX patch = bodyElement;
+ ConstructorBodyElementX origin =
+ new ConstructorBodyElementX(constructor.origin);
+ origin.applyPatch(patch);
classElement.origin.addBackendMember(bodyElement.origin);
}
}

Powered by Google App Engine
This is Rietveld 408576698