Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 76ac347d32a27e3bd3d2edd56d9f18f5ab61d0f8..cdf4a76cc26eed5c7461c43f02a415d656a625ed 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -5206,6 +5206,9 @@ class SharedFunctionInfo: public HeapObject { |
| inline int deopt_counter(); |
| inline void set_deopt_counter(int counter); |
| + inline int profiler_ticks(); |
| + inline void set_profiler_ticks(int ticks); |
| + |
| inline int ast_node_count(); |
| inline void set_ast_node_count(int count); |
| @@ -5381,10 +5384,12 @@ class SharedFunctionInfo: public HeapObject { |
| kInferredNameOffset + kPointerSize; |
| static const int kThisPropertyAssignmentsOffset = |
| kInitialMapOffset + kPointerSize; |
| + static const int kProfilerTicksOffset = |
| + kThisPropertyAssignmentsOffset + kPointerSize; |
|
Erik Corry
2012/02/08 14:09:23
This is a Smi field. Can we find another one and
Jakob Kummerow
2012/02/08 15:24:08
I'd love to, but I don't see any other Smi fields.
|
| #if V8_HOST_ARCH_32_BIT |
| // Smi fields. |
| static const int kLengthOffset = |
| - kThisPropertyAssignmentsOffset + kPointerSize; |
| + kProfilerTicksOffset + kPointerSize; |
| static const int kFormalParameterCountOffset = kLengthOffset + kPointerSize; |
| static const int kExpectedNofPropertiesOffset = |
| kFormalParameterCountOffset + kPointerSize; |
| @@ -5418,7 +5423,7 @@ class SharedFunctionInfo: public HeapObject { |
| // word is not set and thus this word cannot be treated as pointer |
| // to HeapObject during old space traversal. |
| static const int kLengthOffset = |
| - kThisPropertyAssignmentsOffset + kPointerSize; |
| + kProfilerTicksOffset + kPointerSize; |
| static const int kFormalParameterCountOffset = |
| kLengthOffset + kIntSize; |