OLD | NEW |
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 Loading... |
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 if (position.isInlined()) { |
| 501 os_ << "inlining(" << position.InliningId() << "),"; |
| 502 } |
500 os_ << " pos:" << position.ScriptOffset(); | 503 os_ << " pos:" << position.ScriptOffset(); |
501 } | 504 } |
502 } | 505 } |
503 os_ << " <|@\n"; | 506 os_ << " <|@\n"; |
504 } | 507 } |
505 | 508 |
506 BasicBlock::Control control = current->control(); | 509 BasicBlock::Control control = current->control(); |
507 if (control != BasicBlock::kNone) { | 510 if (control != BasicBlock::kNone) { |
508 PrintIndent(); | 511 PrintIndent(); |
509 os_ << "0 0 "; | 512 os_ << "0 0 "; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 os << "]"; | 707 os << "]"; |
705 } | 708 } |
706 os << std::endl; | 709 os << std::endl; |
707 } | 710 } |
708 } | 711 } |
709 return os; | 712 return os; |
710 } | 713 } |
711 } // namespace compiler | 714 } // namespace compiler |
712 } // namespace internal | 715 } // namespace internal |
713 } // namespace v8 | 716 } // namespace v8 |
OLD | NEW |