Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
FPIIM-449
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
diff --git a/src/compiler/graph-visualizer.h b/src/compiler/graph-visualizer.h
index 3dd66ea..1a971a5 100644
--- a/src/compiler/graph-visualizer.h
+++ b/src/compiler/graph-visualizer.h
@@ -5,6 +5,7 @@
#ifndef V8_COMPILER_GRAPH_VISUALIZER_H_
#define V8_COMPILER_GRAPH_VISUALIZER_H_
+#include <stdio.h>
#include <iosfwd>
namespace v8 {
@@ -16,22 +17,17 @@
class Graph;
class InstructionSequence;
-class RegisterAllocator;
+class RegisterAllocationData;
class Schedule;
class SourcePositionTable;
-
-struct AsDOT {
- explicit AsDOT(const Graph& g) : graph(g) {}
- const Graph& graph;
-};
-
-std::ostream& operator<<(std::ostream& os, const AsDOT& ad);
-
+FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
+ const char* suffix, const char* mode);
struct AsJSON {
- explicit AsJSON(const Graph& g) : graph(g) {}
+ AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {}
const Graph& graph;
+ const SourcePositionTable* positions;
};
std::ostream& operator<<(std::ostream& os, const AsJSON& ad);
@@ -52,8 +48,8 @@
struct AsC1V {
AsC1V(const char* phase, const Schedule* schedule,
- const SourcePositionTable* positions = NULL,
- const InstructionSequence* instructions = NULL)
+ const SourcePositionTable* positions = nullptr,
+ const InstructionSequence* instructions = nullptr)
: schedule_(schedule),
instructions_(instructions),
positions_(positions),
@@ -64,18 +60,18 @@
const char* phase_;
};
-struct AsC1VAllocator {
- explicit AsC1VAllocator(const char* phase,
- const RegisterAllocator* allocator = NULL)
- : phase_(phase), allocator_(allocator) {}
+struct AsC1VRegisterAllocationData {
+ explicit AsC1VRegisterAllocationData(
+ const char* phase, const RegisterAllocationData* data = nullptr)
+ : phase_(phase), data_(data) {}
const char* phase_;
- const RegisterAllocator* allocator_;
+ const RegisterAllocationData* data_;
};
-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);
+std::ostream& operator<<(std::ostream& os,
+ const AsC1VRegisterAllocationData& ac);
} // namespace compiler
} // namespace internal