| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of mocks; | 5 part of mocks; |
| 6 | 6 |
| 7 class MegamorphicCacheRefMock implements M.MegamorphicCacheRef { | 7 class MegamorphicCacheRefMock implements M.MegamorphicCacheRef { |
| 8 final String id; | 8 final String id; |
| 9 final String selector; | 9 final String selector; |
| 10 | 10 |
| 11 const MegamorphicCacheRefMock({this.id : 'megamorphiccache-id', | 11 const MegamorphicCacheRefMock({this.id : 'megamorphiccache-id', |
| 12 this.selector}); | 12 this.selector: 'selector'}); |
| 13 } | 13 } |
| 14 |
| 15 class MegamorphicCacheMock implements M.MegamorphicCache { |
| 16 final String id; |
| 17 final M.ClassRef clazz; |
| 18 final int size; |
| 19 final String selector; |
| 20 final int mask; |
| 21 final M.InstanceRef buckets; |
| 22 final M.InstanceRef argumentsDescriptor; |
| 23 |
| 24 const MegamorphicCacheMock({this.id : 'megamorphiccache-id', |
| 25 this.clazz: const ClassRefMock(), this.size: 1, this.selector: 'selector', |
| 26 this.mask: 0, this.buckets: const InstanceRefMock(), |
| 27 this.argumentsDescriptor: const InstanceRefMock()}); |
| 28 } |
| OLD | NEW |