OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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 #ifndef RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ | 5 #ifndef RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
6 #define RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ | 6 #define RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
11 | 11 |
12 class Array; | 12 class Array; |
13 class Function; | 13 class Function; |
14 class Isolate; | 14 class Isolate; |
15 class ObjectPointerVisitor; | 15 class ObjectPointerVisitor; |
16 class RawArray; | 16 class RawArray; |
17 class RawFunction; | 17 class RawFunction; |
18 class RawCode; | 18 class RawCode; |
19 class RawMegamorphicCache; | 19 class RawMegamorphicCache; |
20 class RawString; | 20 class RawString; |
21 class String; | 21 class String; |
22 | 22 |
23 class MegamorphicCacheTable : public AllStatic { | 23 class MegamorphicCacheTable : public AllStatic { |
24 public: | 24 public: |
25 static RawFunction* miss_handler(Isolate* isolate); | 25 static RawFunction* miss_handler(Isolate* isolate); |
26 NOT_IN_PRECOMPILED(static void InitMissHandler(Isolate* isolate)); | 26 static void InitMissHandler(Isolate* isolate); |
27 | 27 |
28 static RawMegamorphicCache* Lookup(Isolate* isolate, | 28 static RawMegamorphicCache* Lookup(Isolate* isolate, |
29 const String& name, | 29 const String& name, |
30 const Array& descriptor); | 30 const Array& descriptor); |
31 | 31 |
32 static void PrintSizes(Isolate* isolate); | 32 static void PrintSizes(Isolate* isolate); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace dart | 35 } // namespace dart |
36 | 36 |
37 #endif // RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ | 37 #endif // RUNTIME_VM_MEGAMORPHIC_CACHE_TABLE_H_ |
OLD | NEW |