1 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
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. |
4 | |
5 | #ifndef RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
6 | #define RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
7 | |
8 | #include "vm/allocation.h" |
9 | #include "vm/tagged_pointer.h" |
10 | |
11 | namespace dart { |
12 | |
13 | class Array; |
14 | class Isolate; |
15 | class String; |
16 | class Thread; |
17 | |
18 | class MegamorphicCacheTable : public AllStatic { |
19 | public: |
20 | static MegamorphicCachePtr Lookup(Thread* thread, |
21 | const String& name, |
22 | const Array& descriptor); |
23 | |
24 | static void PrintSizes(Isolate* isolate); |
25 | }; |
26 | |
27 | } // namespace dart |
28 | |
29 | #endif // RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
30 | |