Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index f52bd67d9cb9ee3a0be03ba6690776dc2af0051d..1afd8ca3cacac7939fa1806ca2b439465f7d5507 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -165,6 +165,8 @@ class ProfilerEventsProcessor : public Thread { |
// Puts current stack into tick sample events buffer. |
void AddCurrentStack(); |
bool IsKnownFunction(Address start); |
+ void RegisterMovedFunctions(); |
+ void RememberMovedFunction(JSFunction* function); |
// Tick sample events are filled directly in the buffer of the circular |
// queue (because the structure is of fixed width, but usually not all |
@@ -202,6 +204,7 @@ class ProfilerEventsProcessor : public Thread { |
// Used from the VM thread. |
HashMap* known_functions_; |
+ List<JSFunction*> moved_functions_; |
}; |
} } // namespace v8::internal |
@@ -257,12 +260,12 @@ class CpuProfiler { |
static void FunctionCreateEvent(JSFunction* function); |
// Reports function creation in case we had missed it (e.g. |
// if it was created from compiled code). |
- static void FunctionCreateEventFromMove(JSFunction* function, |
- HeapObject* source); |
+ static void FunctionCreateEventFromMove(JSFunction* function); |
static void FunctionMoveEvent(Address from, Address to); |
static void FunctionDeleteEvent(Address from); |
static void GetterCallbackEvent(String* name, Address entry_point); |
static void RegExpCodeCreateEvent(Code* code, String* source); |
+ static void RegisterMovedFunctions(); |
static void SetterCallbackEvent(String* name, Address entry_point); |
static INLINE(bool is_profiling()) { |