| 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 <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 void PrintIntProperty(const char* name, int value); | 417 void PrintIntProperty(const char* name, int value); |
| 418 void PrintBlockProperty(const char* name, int rpo_number); | 418 void PrintBlockProperty(const char* name, int rpo_number); |
| 419 void PrintNodeId(Node* n); | 419 void PrintNodeId(Node* n); |
| 420 void PrintNode(Node* n); | 420 void PrintNode(Node* n); |
| 421 void PrintInputs(Node* n); | 421 void PrintInputs(Node* n); |
| 422 template <typename InputIterator> | 422 template <typename InputIterator> |
| 423 void PrintInputs(InputIterator* i, int count, const char* prefix); | 423 void PrintInputs(InputIterator* i, int count, const char* prefix); |
| 424 void PrintType(Node* node); | 424 void PrintType(Node* node); |
| 425 | 425 |
| 426 void PrintLiveRange(LiveRange* range, const char* type); | 426 void PrintLiveRange(LiveRange* range, const char* type); |
| 427 class Tag FINAL BASE_EMBEDDED { | 427 class Tag final BASE_EMBEDDED { |
| 428 public: | 428 public: |
| 429 Tag(GraphC1Visualizer* visualizer, const char* name) { | 429 Tag(GraphC1Visualizer* visualizer, const char* name) { |
| 430 name_ = name; | 430 name_ = name; |
| 431 visualizer_ = visualizer; | 431 visualizer_ = visualizer; |
| 432 visualizer->PrintIndent(); | 432 visualizer->PrintIndent(); |
| 433 visualizer_->os_ << "begin_" << name << "\n"; | 433 visualizer_->os_ << "begin_" << name << "\n"; |
| 434 visualizer->indent_++; | 434 visualizer->indent_++; |
| 435 } | 435 } |
| 436 | 436 |
| 437 ~Tag() { | 437 ~Tag() { |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); | 829 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); |
| 830 } | 830 } |
| 831 os << ")" << std::endl; | 831 os << ")" << std::endl; |
| 832 } | 832 } |
| 833 } | 833 } |
| 834 return os; | 834 return os; |
| 835 } | 835 } |
| 836 } | 836 } |
| 837 } | 837 } |
| 838 } // namespace v8::internal::compiler | 838 } // namespace v8::internal::compiler |
| OLD | NEW |