Index: test/cctest/trace-extension.cc |
diff --git a/test/cctest/trace-extension.cc b/test/cctest/trace-extension.cc |
index 19f8cd88cfa6e91401f6a0ede2abecd2bd672241..f0cc3cc2cc3b049a77b8c9a4574c59fb73e73b47 100644 |
--- a/test/cctest/trace-extension.cc |
+++ b/test/cctest/trace-extension.cc |
@@ -27,7 +27,7 @@ |
#include "test/cctest/trace-extension.h" |
-#include "src/profiler/tick-sample.h" |
+#include "include/v8-profiler.h" |
#include "src/vm-state-inl.h" |
#include "test/cctest/cctest.h" |
@@ -90,13 +90,9 @@ Address TraceExtension::GetFP(const v8::FunctionCallbackInfo<v8::Value>& args) { |
return fp; |
} |
+static struct { v8::TickSample* sample; } trace_env = {nullptr}; |
-static struct { |
- TickSample* sample; |
-} trace_env = { NULL }; |
- |
- |
-void TraceExtension::InitTraceEnv(TickSample* sample) { |
+void TraceExtension::InitTraceEnv(v8::TickSample* sample) { |
trace_env.sample = sample; |
} |
@@ -107,8 +103,8 @@ void TraceExtension::DoTrace(Address fp) { |
// sp is only used to define stack high bound |
regs.sp = |
reinterpret_cast<Address>(trace_env.sample) - 10240; |
- trace_env.sample->Init(CcTest::i_isolate(), regs, |
- TickSample::kSkipCEntryFrame, true); |
+ trace_env.sample->Init(CcTest::isolate(), regs, |
+ v8::TickSample::kSkipCEntryFrame, true); |
} |