| 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. */
|
|
|