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

Side by Side Diff: vm/ic_data.h

Issue 8379013: Implement new inline cache. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Class for handling inline cache stubs 4 // Class for handling inline cache stubs
5 5
6 // The caller of an instance function passes the IC-data array in a specific 6 // The caller of an instance function passes the IC-data array in a specific
7 // register (ECX on ia32). 7 // register (ECX on ia32).
8 // That array contains information relevant for the call site: function name and 8 // That array contains information relevant for the call site: function name and
9 // inline cache data. Class ICData is a wrapper around that array. 9 // inline cache data. Class ICData is a wrapper around that array.
10 // The array format is: 10 // The array format is:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 void SetCheckAt(intptr_t index, 55 void SetCheckAt(intptr_t index,
56 const GrowableArray<const Class*>& classes, 56 const GrowableArray<const Class*>& classes,
57 const Function& target); 57 const Function& target);
58 58
59 void GetCheckAt(intptr_t index, 59 void GetCheckAt(intptr_t index,
60 GrowableArray<const Class*>* classes, 60 GrowableArray<const Class*>* classes,
61 Function* target) const; 61 Function* target) const;
62 62
63 static const int kNameIndex = 0; 63 static const int kNameIndex = 0;
64 static const int kNumArgsCheckedIndex = 1;
65 static const int kChecksStartIndex = 2;
64 66
65 private: 67 private:
66 intptr_t ArrayElementsPerCheck() const; 68 intptr_t ArrayElementsPerCheck() const;
67 69
68 const Array* data_; 70 const Array* data_;
69 71
70 static const int kNumArgsCheckedIndex = 1;
71 static const int kChecksStartIndex = 2;
72 72
73 DISALLOW_COPY_AND_ASSIGN(ICData); 73 DISALLOW_COPY_AND_ASSIGN(ICData);
74 }; 74 };
75 75
76 } // namespace dart 76 } // namespace dart
77 77
78 #endif // VM_IC_DATA_H_ 78 #endif // VM_IC_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698