Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index 2eece46230eb565fd17c815980384457fc383ee3..40b5b79125a7f22fa0c2db853a2e9ec4b50820a6 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -64,6 +64,7 @@ static void EnqueueTickSampleEvent(ProfilerEventsProcessor* proc, |
i::Address frame3 = NULL) { |
i::TickSample* sample = proc->TickSampleEvent(); |
sample->pc = frame1; |
+ sample->tos = frame1; |
sample->frames_count = 0; |
if (frame2 != NULL) { |
sample->stack[0] = frame2; |
@@ -238,6 +239,7 @@ TEST(Issue1398) { |
i::TickSample* sample = processor.TickSampleEvent(); |
sample->pc = ToAddress(0x1200); |
+ sample->tos = 0; |
sample->frames_count = i::TickSample::kMaxFramesCount; |
for (int i = 0; i < sample->frames_count; ++i) { |
sample->stack[i] = ToAddress(0x1200); |