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

Unified Diff: src/objects.h

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 0b1c761281c7238c1a99fe511aab195e3104aedc..94cc51358046a07a0d7e17922a9a1192d13aae93 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5241,6 +5241,12 @@ class SharedFunctionInfo: public HeapObject {
inline int ast_node_count();
inline void set_ast_node_count(int count);
+ inline int ic_total_count();
+ inline void set_ic_total_count(int count);
+
+ inline int ic_typeinfo_count();
+ inline void set_ic_typeinfo_count(int count);
+
// Add information on assignments of the form this.x = ...;
void SetThisPropertyAssignmentsInfo(
bool has_only_simple_this_property_assignments,
@@ -5441,8 +5447,10 @@ class SharedFunctionInfo: public HeapObject {
static const int kAstNodeCountOffset = kOptCountOffset + kPointerSize;
static const int kDeoptCounterOffset =
kAstNodeCountOffset + kPointerSize;
+ static const int kIcTotalCountOffset = kDeoptCounterOffset + kPointerSize;
+ static const int kIcTypeInfoCountOffset = kIcTotalCountOffset + kPointerSize;
// Total size.
- static const int kSize = kDeoptCounterOffset + kPointerSize;
+ static const int kSize = kIcTypeInfoCountOffset + kPointerSize;
#else
// The only reason to use smi fields instead of int fields
// is to allow iteration without maps decoding during
@@ -5481,8 +5489,11 @@ class SharedFunctionInfo: public HeapObject {
static const int kAstNodeCountOffset = kOptCountOffset + kIntSize;
static const int kDeoptCounterOffset = kAstNodeCountOffset + kIntSize;
+ static const int kIcTotalCountOffset = kDeoptCounterOffset + kIntSize;
+ static const int kIcTypeInfoCountOffset = kIcTotalCountOffset + kIntSize;
+
// Total size.
- static const int kSize = kDeoptCounterOffset + kIntSize;
+ static const int kSize = kIcTypeInfoCountOffset + kIntSize;
#endif

Powered by Google App Engine
This is Rietveld 408576698