| Index: src/deoptimizer.cc
|
| diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
|
| index ff5136c301e9f9e03c9957932e115e609517b9aa..a730b48d2e8c41c26c8346637f21cf2d7d21d4ff 100644
|
| --- a/src/deoptimizer.cc
|
| +++ b/src/deoptimizer.cc
|
| @@ -699,13 +699,10 @@ int Deoptimizer::GetOutputInfo(DeoptimizationOutputData* data,
|
| return data->PcAndState(i)->value();
|
| }
|
| }
|
| - PrintF(stderr, "[couldn't find pc offset for node=%d]\n", id.ToInt());
|
| - PrintF(stderr, "[method: %s]\n", shared->DebugName()->ToCString().get());
|
| - // Print the source code if available.
|
| - HeapStringAllocator string_allocator;
|
| - StringStream stream(&string_allocator);
|
| - shared->SourceCodePrint(&stream, -1);
|
| - PrintF(stderr, "[source:\n%s\n]", stream.ToCString().get());
|
| + OFStream os(stderr);
|
| + os << "[couldn't find pc offset for node=" << id.ToInt() << "]\n"
|
| + << "[method: " << shared->DebugName()->ToCString().get() << "]\n"
|
| + << "[source:\n" << SourceCodeOf(shared) << "\n]" << endl;
|
|
|
| FATAL("unable to find pc offset during deoptimization");
|
| return -1;
|
|
|