| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index 9627277aa4dcbe5ab17ae6655c987621ad32d2b4..d32bde4c2c0107e506081935686812446533683c 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -147,7 +147,7 @@ TEST(CodeEvents) {
|
| SmartPointer<ProfilerEventsProcessor> processor(new ProfilerEventsProcessor(
|
| &generator, NULL, TimeDelta::FromMicroseconds(100)));
|
| processor->Start();
|
| - CpuProfiler profiler(isolate, profiles, &generator, *processor);
|
| + CpuProfiler profiler(isolate, profiles, &generator, processor.get());
|
|
|
| // Enqueue code creation events.
|
| const char* aaa_str = "aaa";
|
| @@ -162,7 +162,7 @@ TEST(CodeEvents) {
|
| profiler.CodeCreateEvent(i::Logger::STUB_TAG, args4_code, 4);
|
|
|
| // Enqueue a tick event to enable code events processing.
|
| - EnqueueTickSampleEvent(*processor, aaa_code->address());
|
| + EnqueueTickSampleEvent(processor.get(), aaa_code->address());
|
|
|
| processor->StopSynchronously();
|
|
|
| @@ -209,19 +209,19 @@ TEST(TickEvents) {
|
| SmartPointer<ProfilerEventsProcessor> processor(new ProfilerEventsProcessor(
|
| &generator, NULL, TimeDelta::FromMicroseconds(100)));
|
| processor->Start();
|
| - CpuProfiler profiler(isolate, profiles, &generator, *processor);
|
| + CpuProfiler profiler(isolate, profiles, &generator, processor.get());
|
|
|
| profiler.CodeCreateEvent(i::Logger::BUILTIN_TAG, frame1_code, "bbb");
|
| profiler.CodeCreateEvent(i::Logger::STUB_TAG, frame2_code, 5);
|
| profiler.CodeCreateEvent(i::Logger::BUILTIN_TAG, frame3_code, "ddd");
|
|
|
| - EnqueueTickSampleEvent(*processor, frame1_code->instruction_start());
|
| + EnqueueTickSampleEvent(processor.get(), frame1_code->instruction_start());
|
| EnqueueTickSampleEvent(
|
| - *processor,
|
| + processor.get(),
|
| frame2_code->instruction_start() + frame2_code->ExecutableSize() / 2,
|
| frame1_code->instruction_start() + frame2_code->ExecutableSize() / 2);
|
| EnqueueTickSampleEvent(
|
| - *processor,
|
| + processor.get(),
|
| frame3_code->instruction_end() - 1,
|
| frame2_code->instruction_end() - 1,
|
| frame1_code->instruction_end() - 1);
|
| @@ -278,7 +278,7 @@ TEST(Issue1398) {
|
| SmartPointer<ProfilerEventsProcessor> processor(new ProfilerEventsProcessor(
|
| &generator, NULL, TimeDelta::FromMicroseconds(100)));
|
| processor->Start();
|
| - CpuProfiler profiler(isolate, profiles, &generator, *processor);
|
| + CpuProfiler profiler(isolate, profiles, &generator, processor.get());
|
|
|
| profiler.CodeCreateEvent(i::Logger::BUILTIN_TAG, code, "bbb");
|
|
|
|
|