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

Side by Side Diff: vm/ic_data.h

Issue 8827015: Implement two-argument check inline cache. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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
« no previous file with comments | « vm/code_patcher_ia32_test.cc ('k') | vm/ic_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
11 // 0: function-name 11 // 0: function-name
12 // 1: N, number of arguments checked. 12 // 1: N, number of arguments checked.
13 // 2 .. (length - 1): group of checks, each check containing: 13 // 2 .. (length - 1): group of checks, each check containing:
14 // - N classes. 14 // - N classes.
15 // - 1 target function. 15 // - 1 target function.
16 // Whenever first N arguments of an instance call have the same class as the 16 // Whenever first N arguments of an instance call have the same class as the
17 // check, jump to the target function. 17 // check, jump to the target function.
18 // Array is null terminated (all classes and target are null objects). 18 // Array is null terminated (all classes and target are null objects).
19 // The array does not contain Null-Classes. Null objects cannot be added. 19 // The array may contain Null-Classes. Null objects cannot be added.
20 20
21 #ifndef VM_IC_DATA_H_ 21 #ifndef VM_IC_DATA_H_
22 #define VM_IC_DATA_H_ 22 #define VM_IC_DATA_H_
23 23
24 #include "vm/allocation.h" 24 #include "vm/allocation.h"
25 #include "vm/growable_array.h" 25 #include "vm/growable_array.h"
26 26
27 namespace dart { 27 namespace dart {
28 28
29 class Array; 29 class Array;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 const Array* data_; 73 const Array* data_;
74 74
75 75
76 DISALLOW_COPY_AND_ASSIGN(ICData); 76 DISALLOW_COPY_AND_ASSIGN(ICData);
77 }; 77 };
78 78
79 } // namespace dart 79 } // namespace dart
80 80
81 #endif // VM_IC_DATA_H_ 81 #endif // VM_IC_DATA_H_
OLDNEW
« no previous file with comments | « vm/code_patcher_ia32_test.cc ('k') | vm/ic_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698