| Index: src/compiler/graph-visualizer.h
|
| diff --git a/src/compiler/graph-visualizer.h b/src/compiler/graph-visualizer.h
|
| index ccb22894b2d0f5c90f8a4ae4eab5ab02ccfc3152..7212a4f932d55689f6fc694f32604e83159c52e6 100644
|
| --- a/src/compiler/graph-visualizer.h
|
| +++ b/src/compiler/graph-visualizer.h
|
| @@ -9,9 +9,17 @@
|
|
|
| namespace v8 {
|
| namespace internal {
|
| +
|
| +class CompilationInfo;
|
| +
|
| namespace compiler {
|
|
|
| class Graph;
|
| +class InstructionSequence;
|
| +class RegisterAllocator;
|
| +class Schedule;
|
| +class SourcePositionTable;
|
| +
|
|
|
| struct AsDOT {
|
| explicit AsDOT(const Graph& g) : graph(g) {}
|
| @@ -28,6 +36,39 @@ struct AsJSON {
|
|
|
| std::ostream& operator<<(std::ostream& os, const AsJSON& ad);
|
|
|
| +struct AsC1VCompilation {
|
| + explicit AsC1VCompilation(const CompilationInfo* info) : info_(info) {}
|
| + const CompilationInfo* info_;
|
| +};
|
| +
|
| +
|
| +struct AsC1V {
|
| + AsC1V(const char* phase, const Schedule* schedule,
|
| + const SourcePositionTable* positions = NULL,
|
| + const InstructionSequence* instructions = NULL)
|
| + : schedule_(schedule),
|
| + instructions_(instructions),
|
| + positions_(positions),
|
| + phase_(phase) {}
|
| + const Schedule* schedule_;
|
| + const InstructionSequence* instructions_;
|
| + const SourcePositionTable* positions_;
|
| + const char* phase_;
|
| +};
|
| +
|
| +struct AsC1VAllocator {
|
| + explicit AsC1VAllocator(const char* phase,
|
| + const RegisterAllocator* allocator = NULL)
|
| + : phase_(phase), allocator_(allocator) {}
|
| + const char* phase_;
|
| + const RegisterAllocator* allocator_;
|
| +};
|
| +
|
| +std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
|
| +std::ostream& operator<<(std::ostream& os, const AsC1VCompilation& ac);
|
| +std::ostream& operator<<(std::ostream& os, const AsC1V& ac);
|
| +std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac);
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|