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

Unified Diff: src/isolate.cc

Issue 637313002: [turbofan] Output file for C1 visualizer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use ofstream Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« src/compiler/pipeline.cc ('K') | « src/compiler/schedule.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index e8e1d66602b90606e3728f3590af7af3aecc9511..e8b4f263c9fbf1e59d376f104919b514db083ba3 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -4,6 +4,8 @@
#include <stdlib.h>
+#include <fstream> // NOLINT(readability/streams)
+
#include "src/v8.h"
#include "src/ast.h"
@@ -1931,6 +1933,12 @@ bool Isolate::Init(Deserializer* des) {
optimizing_compiler_thread_->Start();
}
+ if (FLAG_trace_turbo) {
+ // Erase the file.
+ std::ofstream turbo_cfg_stream("turbo.cfg",
+ std::fstream::out | std::fstream::trunc);
+ }
+
// If we are deserializing, read the state into the now-empty heap.
if (!create_heap_objects) {
des->Deserialize(this);
« src/compiler/pipeline.cc ('K') | « src/compiler/schedule.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698