Commit 6fff5880 authored by Sven Panne's avatar Sven Panne

Print the SharedFunctionInfo besides the function name, makes matching against...

Print the SharedFunctionInfo besides the function name, makes matching against --trace_opt output easier.

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/816013002

Cr-Commit-Position: refs/heads/master@{#25962}
parent 8cb08cdc
...@@ -637,7 +637,7 @@ Code* Deoptimizer::FindOptimizedCode(JSFunction* function, ...@@ -637,7 +637,7 @@ Code* Deoptimizer::FindOptimizedCode(JSFunction* function,
void Deoptimizer::PrintFunctionName() { void Deoptimizer::PrintFunctionName() {
if (function_->IsJSFunction()) { if (function_->IsJSFunction()) {
function_->PrintName(trace_scope_->file()); function_->ShortPrint(trace_scope_->file());
} else { } else {
PrintF(trace_scope_->file(), PrintF(trace_scope_->file(),
"%s", Code::Kind2String(compiled_code_->kind())); "%s", Code::Kind2String(compiled_code_->kind()));
...@@ -761,10 +761,8 @@ void Deoptimizer::DoComputeOutputFrames() { ...@@ -761,10 +761,8 @@ void Deoptimizer::DoComputeOutputFrames() {
if (trace_scope_ != NULL) { if (trace_scope_ != NULL) {
timer.Start(); timer.Start();
PrintF(trace_scope_->file(), PrintF(trace_scope_->file(), "[deoptimizing (DEOPT %s): begin ",
"[deoptimizing (DEOPT %s): begin 0x%08" V8PRIxPTR " ", MessageFor(bailout_type_));
MessageFor(bailout_type_),
reinterpret_cast<intptr_t>(function_));
PrintFunctionName(); PrintFunctionName();
PrintF(trace_scope_->file(), PrintF(trace_scope_->file(),
" (opt #%d) @%d, FP to SP delta: %d]\n", " (opt #%d) @%d, FP to SP delta: %d]\n",
...@@ -850,11 +848,8 @@ void Deoptimizer::DoComputeOutputFrames() { ...@@ -850,11 +848,8 @@ void Deoptimizer::DoComputeOutputFrames() {
if (trace_scope_ != NULL) { if (trace_scope_ != NULL) {
double ms = timer.Elapsed().InMillisecondsF(); double ms = timer.Elapsed().InMillisecondsF();
int index = output_count_ - 1; // Index of the topmost frame. int index = output_count_ - 1; // Index of the topmost frame.
JSFunction* function = output_[index]->GetFunction(); PrintF(trace_scope_->file(), "[deoptimizing (%s): end ",
PrintF(trace_scope_->file(), MessageFor(bailout_type_));
"[deoptimizing (%s): end 0x%08" V8PRIxPTR " ",
MessageFor(bailout_type_),
reinterpret_cast<intptr_t>(function));
PrintFunctionName(); PrintFunctionName();
PrintF(trace_scope_->file(), PrintF(trace_scope_->file(),
" @%d => node=%d, pc=0x%08" V8PRIxPTR ", state=%s, alignment=%s," " @%d => node=%d, pc=0x%08" V8PRIxPTR ", state=%s, alignment=%s,"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment