diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-02-03 09:06:03 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-03 09:07:02 -0800 |
commit | c7cb4daa25966e4f9af3c6d5499d762736454da9 (patch) | |
tree | 27c6541f5a1207eb74797ed63a43126c9bf2ba81 /deps/v8/src/log.h | |
parent | c723acc72192334a62bea6ff4baa33aab0da50ad (diff) | |
download | node-c7cb4daa25966e4f9af3c6d5499d762736454da9.tar.gz |
Upgrade V8 to 2.1.0
Diffstat (limited to 'deps/v8/src/log.h')
-rw-r--r-- | deps/v8/src/log.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/v8/src/log.h b/deps/v8/src/log.h index 4d5acced6..1f6e60e1a 100644 --- a/deps/v8/src/log.h +++ b/deps/v8/src/log.h @@ -116,6 +116,10 @@ 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") \ V(BUILTIN_TAG, "Builtin", "bi") \ @@ -223,6 +227,14 @@ 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); // ==== Events logged by --log-gc. ==== // Heap sampling events: start, end, and individual types. @@ -275,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. @@ -296,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(); |