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

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/megamorphiccache.dart

Issue 2294073003: Converted Observatory class-view element (Closed)
Patch Set: Addressed comments Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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: 'selector'}); 12 this.selector: 'selector'});
13 } 13 }
14 14
15 class MegamorphicCacheMock implements M.MegamorphicCache { 15 class MegamorphicCacheMock implements M.MegamorphicCache {
16 final String id; 16 final String id;
17 final M.ClassRef clazz; 17 final M.ClassRef clazz;
18 final String vmName;
18 final int size; 19 final int size;
19 final String selector; 20 final String selector;
20 final int mask; 21 final int mask;
21 final M.InstanceRef buckets; 22 final M.InstanceRef buckets;
22 final M.InstanceRef argumentsDescriptor; 23 final M.InstanceRef argumentsDescriptor;
23 24
24 const MegamorphicCacheMock({this.id : 'megamorphiccache-id', 25 const MegamorphicCacheMock({this.id : 'megamorphiccache-id',
25 this.clazz: const ClassRefMock(), this.size: 1, this.selector: 'selector', 26 this.vmName: 'megamorphiccache-vmName',
26 this.mask: 0, this.buckets: const InstanceRefMock(), 27 this.clazz: const ClassRefMock(),
27 this.argumentsDescriptor: const InstanceRefMock()}); 28 this.size: 1, this.selector: 'selector',
29 this.mask: 0,
30 this.buckets: const InstanceRefMock(),
31 this.argumentsDescriptor: const InstanceRefMock()
32 });
28 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698