| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 76cebc389c72815855e7d3a0719dfa573ca7b626..b5db5fe4295d11d17589fdeb07fefdbf2cde7e81 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -1613,21 +1613,21 @@
|
| // 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(nullptr), sp(nullptr), fp(nullptr) {}
|
| + RegisterState() : pc(NULL), sp(NULL), fp(NULL) {}
|
| 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; // Number of frames collected.
|
| - StateTag vm_state; // Current VM state.
|
| - void* external_callback_entry; // External callback address if VM is
|
| - // executing an external callback.
|
| + size_t frames_count;
|
| + StateTag vm_state;
|
| };
|
|
|
| /**
|
|
|