Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/compiler/graph-visualizer.cc

Issue 2586823002: Fix positions printing in compiler/graph-visualizer.cc. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/graph-visualizer.h" 5 #include "src/compiler/graph-visualizer.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 PrintIndent(); 490 PrintIndent();
491 os_ << "0 " << uses << " "; 491 os_ << "0 " << uses << " ";
492 PrintNode(node); 492 PrintNode(node);
493 if (FLAG_trace_turbo_types) { 493 if (FLAG_trace_turbo_types) {
494 os_ << " "; 494 os_ << " ";
495 PrintType(node); 495 PrintType(node);
496 } 496 }
497 if (positions != nullptr) { 497 if (positions != nullptr) {
498 SourcePosition position = positions->GetSourcePosition(node); 498 SourcePosition position = positions->GetSourcePosition(node);
499 if (position.IsKnown()) { 499 if (position.IsKnown()) {
500 os_ << " pos:";
500 if (position.isInlined()) { 501 if (position.isInlined()) {
501 os_ << "inlining(" << position.InliningId() << "),"; 502 os_ << "inlining(" << position.InliningId() << "),";
502 } 503 }
503 os_ << " pos:" << position.ScriptOffset(); 504 os_ << position.ScriptOffset();
504 } 505 }
505 } 506 }
506 os_ << " <|@\n"; 507 os_ << " <|@\n";
507 } 508 }
508 509
509 BasicBlock::Control control = current->control(); 510 BasicBlock::Control control = current->control();
510 if (control != BasicBlock::kNone) { 511 if (control != BasicBlock::kNone) {
511 PrintIndent(); 512 PrintIndent();
512 os_ << "0 0 "; 513 os_ << "0 0 ";
513 if (current->control_input() != nullptr) { 514 if (current->control_input() != nullptr) {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 os << "]"; 708 os << "]";
708 } 709 }
709 os << std::endl; 710 os << std::endl;
710 } 711 }
711 } 712 }
712 return os; 713 return os;
713 } 714 }
714 } // namespace compiler 715 } // namespace compiler
715 } // namespace internal 716 } // namespace internal
716 } // namespace v8 717 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698