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

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

Issue 11418183: Fix a bad merge that lead to unused optimization: implement the dataEquals in HInterceptor in order… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/nodes.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (revision 15445)
+++ sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (working copy)
@@ -2371,7 +2371,7 @@
}
class HInterceptor extends HInstruction {
- final Set<ClassElement> interceptedClasses;
+ Set<ClassElement> interceptedClasses;
HInterceptor(this.interceptedClasses, HInstruction receiver)
: super(<HInstruction>[receiver]);
String toString() => 'interceptor on $interceptedClasses';
@@ -2385,6 +2385,11 @@
int typeCode() => HInstruction.INTERCEPTOR_TYPECODE;
bool typeEquals(other) => other is HInterceptor;
+ bool dataEquals(HInterceptor other) {
+ return interceptedClasses == other.interceptedClasses
+ || (interceptedClasses.length == other.interceptedClasses.length
+ && interceptedClasses.containsAll(other.interceptedClasses));
+ }
}
/** An [HLazyStatic] is a static that is initialized lazily at first read. */

Powered by Google App Engine
This is Rietveld 408576698