Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 2b7b9dfa42f7edbbcdfdb136a9f158bbeba629eb..37ac235d7ac56928fbc453492984d55649d50ca5 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1613,21 +1613,21 @@ class V8_EXPORT StackFrame { |
// A StateTag represents a possible state of the VM. |
enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; |
- |
// A RegisterState represents the current state of registers used |
// by the sampling profiler API. |
struct RegisterState { |
- RegisterState() : pc(NULL), sp(NULL), fp(NULL) {} |
+ RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr) {} |
void* pc; // Instruction pointer. |
void* sp; // Stack pointer. |
void* fp; // Frame pointer. |
}; |
- |
// The output structure filled up by GetStackSample API function. |
struct SampleInfo { |
- size_t frames_count; |
- StateTag vm_state; |
+ size_t frames_count; // Number of frames collected. |
+ StateTag vm_state; // Current VM state. |
+ void* external_callback_entry; // External callback address if VM is |
+ // executing an external callback. |
}; |
/** |