| Index: src/cpu-profiler.cc
|
| ===================================================================
|
| --- src/cpu-profiler.cc (revision 7511)
|
| +++ src/cpu-profiler.cc (working copy)
|
| @@ -184,12 +184,13 @@
|
| void ProfilerEventsProcessor::AddCurrentStack() {
|
| TickSampleEventRecord record;
|
| TickSample* sample = &record.sample;
|
| - sample->state = Isolate::Current()->current_vm_state();
|
| + Isolate* isolate = Isolate::Current();
|
| + sample->state = isolate->current_vm_state();
|
| sample->pc = reinterpret_cast<Address>(sample); // Not NULL.
|
| sample->tos = NULL;
|
| sample->has_external_callback = false;
|
| sample->frames_count = 0;
|
| - for (StackTraceFrameIterator it;
|
| + for (StackTraceFrameIterator it(isolate);
|
| !it.done() && sample->frames_count < TickSample::kMaxFramesCount;
|
| it.Advance()) {
|
| sample->stack[sample->frames_count++] = it.frame()->pc();
|
|
|