Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 5af771828999fc9b9a0370c6e2736e298f93c019..67a3683e980376d388f78c3ad787587f0557b8b2 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -5461,6 +5461,9 @@ class JSFunction: public JSObject { |
| // a weak list by the GC. |
| DECL_ACCESSORS(next_function_link, Object) |
| + inline int profiler_ticks(); |
|
fschneider
2011/12/12 11:31:21
Shouldn't be this on SharedFunctionInfo instead?
fschneider
2011/12/13 11:53:01
This increases the size of each JSFunction by 1 wo
Jakob Kummerow
2011/12/14 08:42:31
Done.
|
| + inline void set_profiler_ticks(int ticks); |
| + |
| // Prints the name of the function using PrintF. |
| inline void PrintName() { |
| PrintName(stdout); |
| @@ -5500,7 +5503,9 @@ class JSFunction: public JSObject { |
| kPrototypeOrInitialMapOffset + kPointerSize; |
| static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
| static const int kLiteralsOffset = kContextOffset + kPointerSize; |
| - static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; |
| + static const int kProfilerTicksOffset = kLiteralsOffset + kPointerSize; |
| + static const int kNonWeakFieldsEndOffset = |
| + kProfilerTicksOffset + kPointerSize; |
| static const int kNextFunctionLinkOffset = kNonWeakFieldsEndOffset; |
| static const int kSize = kNextFunctionLinkOffset + kPointerSize; |