| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 040664dc06641f4df917320456564869c86e8242..dc1cb20d767ce108c7c14b3fe30475f9d99879b9 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -4872,6 +4872,11 @@ class Code: public HeapObject {
|
| // it is only used by the garbage collector itself.
|
| DECL_ACCESSORS(gc_metadata, Object)
|
|
|
| + // Profiling budget counter to govern when to invoke the runtime profiler.
|
| + DECL_ACCESSORS(profiling_budget, Cell)
|
| +
|
| + inline void ResetProfilingBudget(int value);
|
| +
|
| // [ic_age]: Inline caching age: the value of the Heap::global_ic_age
|
| // at the moment when this object was created.
|
| inline void set_ic_age(int count);
|
| @@ -5185,8 +5190,8 @@ class Code: public HeapObject {
|
| static const int kTypeFeedbackInfoOffset =
|
| kDeoptimizationDataOffset + kPointerSize;
|
| static const int kGCMetadataOffset = kTypeFeedbackInfoOffset + kPointerSize;
|
| - static const int kICAgeOffset =
|
| - kGCMetadataOffset + kPointerSize;
|
| + static const int kProfilingBudgetOffset = kGCMetadataOffset + kPointerSize;
|
| + static const int kICAgeOffset = kProfilingBudgetOffset + kPointerSize;
|
| static const int kFlagsOffset = kICAgeOffset + kIntSize;
|
| static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize;
|
| static const int kKindSpecificFlags2Offset =
|
|
|