Index: src/log.h |
diff --git a/src/log.h b/src/log.h |
index e21df033bf6a2d63692ad384aacc1ffc9d420783..1f6e60e1a67b6425bb20db56fe473d614824ba20 100644 |
--- a/src/log.h |
+++ b/src/log.h |
@@ -116,6 +116,9 @@ class VMState BASE_EMBEDDED { |
V(CODE_CREATION_EVENT, "code-creation", "cc") \ |
V(CODE_MOVE_EVENT, "code-move", "cm") \ |
V(CODE_DELETE_EVENT, "code-delete", "cd") \ |
+ V(FUNCTION_CREATION_EVENT, "function-creation", "fc") \ |
+ V(FUNCTION_MOVE_EVENT, "function-move", "fm") \ |
+ V(FUNCTION_DELETE_EVENT, "function-delete", "fd") \ |
V(SNAPSHOT_POSITION_EVENT, "snapshot-pos", "sp") \ |
V(TICK_EVENT, "tick", "t") \ |
V(REPEAT_META_EVENT, "repeat", "r") \ |
@@ -224,6 +227,12 @@ class Logger { |
static void CodeMoveEvent(Address from, Address to); |
// Emits a code delete event. |
static void CodeDeleteEvent(Address from); |
+ // Emits a function object create event. |
+ static void FunctionCreateEvent(JSFunction* function); |
+ // Emits a function move event. |
+ static void FunctionMoveEvent(Address from, Address to); |
+ // Emits a function delete event. |
+ static void FunctionDeleteEvent(Address from); |
static void SnapshotPositionEvent(Address addr, int pos); |
@@ -278,6 +287,8 @@ class Logger { |
// Logs all compiled functions found in the heap. |
static void LogCompiledFunctions(); |
+ // Logs all compiled JSFunction objects found in the heap. |
+ static void LogFunctionObjects(); |
// Logs all accessor callbacks found in the heap. |
static void LogAccessorCallbacks(); |
// Used for logging stubs found in the snapshot. |
@@ -299,6 +310,15 @@ class Logger { |
const char* name, |
Address entry_point); |
+ // Internal configurable move event. |
+ static void MoveEventInternal(LogEventsAndTags event, |
+ Address from, |
+ Address to); |
+ |
+ // Internal configurable move event. |
+ static void DeleteEventInternal(LogEventsAndTags event, |
+ Address from); |
+ |
// Emits aliases for compressed messages. |
static void LogAliases(); |