| 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 VM_MEGAMORPHIC_CACHE_TABLE_H_ | 5 #ifndef VM_MEGAMORPHIC_CACHE_TABLE_H_ |
| 6 #define VM_MEGAMORPHIC_CACHE_TABLE_H_ | 6 #define 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 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 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 | |
| 34 private: | |
| 35 enum { | |
| 36 kEntryNameOffset = 0, | |
| 37 kEntryDescriptorOffset, | |
| 38 kEntryCacheOffset, | |
| 39 kEntrySize | |
| 40 }; | |
| 41 }; | 33 }; |
| 42 | 34 |
| 43 } // namespace dart | 35 } // namespace dart |
| 44 | 36 |
| 45 #endif // VM_MEGAMORPHIC_CACHE_TABLE_H_ | 37 #endif // VM_MEGAMORPHIC_CACHE_TABLE_H_ |
| OLD | NEW |