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

Side by Side Diff: src/compiler/pipeline.cc

Issue 471563002: Simplify public pipeline interface. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/pipeline.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include "src/base/platform/elapsed-timer.h" 7 #include "src/base/platform/elapsed-timer.h"
8 #include "src/compiler/ast-graph-builder.h" 8 #include "src/compiler/ast-graph-builder.h"
9 #include "src/compiler/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/graph-replay.h" 10 #include "src/compiler/graph-replay.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private: 67 private:
68 CompilationInfo* info_; 68 CompilationInfo* info_;
69 PhaseKind kind_; 69 PhaseKind kind_;
70 const char* name_; 70 const char* name_;
71 size_t size_; 71 size_t size_;
72 base::ElapsedTimer timer_; 72 base::ElapsedTimer timer_;
73 }; 73 };
74 74
75 75
76 static inline bool VerifyGraphs() {
77 #ifdef DEBUG
78 return true;
79 #else
80 return FLAG_turbo_verify;
81 #endif
82 }
83
84
76 void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) { 85 void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) {
77 if (FLAG_trace_turbo) { 86 if (FLAG_trace_turbo) {
78 char buffer[256]; 87 char buffer[256];
79 Vector<char> filename(buffer, sizeof(buffer)); 88 Vector<char> filename(buffer, sizeof(buffer));
80 SmartArrayPointer<char> functionname = 89 SmartArrayPointer<char> functionname =
81 info_->shared_info()->DebugName()->ToCString(); 90 info_->shared_info()->DebugName()->ToCString();
82 if (strlen(functionname.get()) > 0) { 91 if (strlen(functionname.get()) > 0) {
83 SNPrintF(filename, "turbo-%s-%s.dot", functionname.get(), phase); 92 SNPrintF(filename, "turbo-%s-%s.dot", functionname.get(), phase);
84 } else { 93 } else {
85 SNPrintF(filename, "turbo-%p-%s.dot", static_cast<void*>(info_), phase); 94 SNPrintF(filename, "turbo-%p-%s.dot", static_cast<void*>(info_), phase);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 341 }
333 342
334 343
335 void Pipeline::TearDown() { 344 void Pipeline::TearDown() {
336 InstructionOperand::TearDownCaches(); 345 InstructionOperand::TearDownCaches();
337 } 346 }
338 347
339 } // namespace compiler 348 } // namespace compiler
340 } // namespace internal 349 } // namespace internal
341 } // namespace v8 350 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698