Index: test/cctest/test-log-stack-tracer.cc |
diff --git a/test/cctest/test-log-stack-tracer.cc b/test/cctest/test-log-stack-tracer.cc |
index 567197586f3f7f6b441a48fad3d61b8773fe6aa8..20f135d8f6b40ec406dd5821589b84420548d1ef 100644 |
--- a/test/cctest/test-log-stack-tracer.cc |
+++ b/test/cctest/test-log-stack-tracer.cc |
@@ -52,6 +52,7 @@ using v8::internal::Address; |
using v8::internal::Handle; |
using v8::internal::Isolate; |
using v8::internal::JSFunction; |
+using v8::internal::RegisterState; |
using v8::internal::TickSample; |
@@ -66,11 +67,12 @@ static void InitTraceEnv(TickSample* sample) { |
static void DoTrace(Address fp) { |
- trace_env.sample->fp = fp; |
+ RegisterState regs; |
+ regs.fp = fp; |
// sp is only used to define stack high bound |
- trace_env.sample->sp = |
+ regs.sp = |
reinterpret_cast<Address>(trace_env.sample) - 10240; |
- trace_env.sample->Trace(Isolate::Current()); |
+ trace_env.sample->Init(Isolate::Current(), regs); |
} |