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

Side by Side Diff: runtime/vm/megamorphic_cache_table.h

Issue 1420433004: Move selector and arguments descriptor into MegamorphicCache. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698