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

Side by Side Diff: src/compiler/control-reducer.cc

Issue 687553002: Silence control reducer tracing a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ben Titzer. Created 6 years, 1 month 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 | « no previous file | src/flag-definitions.h » ('j') | 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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/control-reducer.h" 6 #include "src/compiler/control-reducer.h"
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
11 #include "src/zone-containers.h" 11 #include "src/zone-containers.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 enum VisitState { kUnvisited = 0, kOnStack = 1, kRevisit = 2, kVisited = 3 }; 17 enum VisitState { kUnvisited = 0, kOnStack = 1, kRevisit = 2, kVisited = 3 };
18 enum Reachability { kFromStart = 8 }; 18 enum Reachability { kFromStart = 8 };
19 19
20 #define TRACE(x) \ 20 #define TRACE(x) \
21 if (FLAG_trace_turbo) PrintF x 21 if (FLAG_trace_turbo_reduction) PrintF x
22 22
23 class ControlReducerImpl { 23 class ControlReducerImpl {
24 public: 24 public:
25 ControlReducerImpl(Zone* zone, JSGraph* jsgraph, 25 ControlReducerImpl(Zone* zone, JSGraph* jsgraph,
26 CommonOperatorBuilder* common) 26 CommonOperatorBuilder* common)
27 : zone_(zone), 27 : zone_(zone),
28 jsgraph_(jsgraph), 28 jsgraph_(jsgraph),
29 common_(common), 29 common_(common),
30 state_(jsgraph->graph()->NodeCount(), kUnvisited, zone_), 30 state_(jsgraph->graph()->NodeCount(), kUnvisited, zone_),
31 stack_(zone_), 31 stack_(zone_),
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, 526 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph,
527 CommonOperatorBuilder* common, 527 CommonOperatorBuilder* common,
528 Node* node) { 528 Node* node) {
529 Zone zone(jsgraph->graph()->zone()->isolate()); 529 Zone zone(jsgraph->graph()->zone()->isolate());
530 ControlReducerImpl impl(&zone, jsgraph, common); 530 ControlReducerImpl impl(&zone, jsgraph, common);
531 return impl.ReduceBranch(node); 531 return impl.ReduceBranch(node);
532 } 532 }
533 } 533 }
534 } 534 }
535 } // namespace v8::internal::compiler 535 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698