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

Side by Side Diff: src/compiler/scheduler.h

Issue 687133003: Cleanup unscheduled use count for controls of coupled nodes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/compiler/scheduler.cc » ('j') | src/compiler/scheduler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_SCHEDULER_H_ 5 #ifndef V8_COMPILER_SCHEDULER_H_
6 #define V8_COMPILER_SCHEDULER_H_ 6 #define V8_COMPILER_SCHEDULER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ZoneVector<SchedulerData> node_data_; // Per-node data for all nodes. 62 ZoneVector<SchedulerData> node_data_; // Per-node data for all nodes.
63 63
64 Scheduler(Zone* zone, Graph* graph, Schedule* schedule); 64 Scheduler(Zone* zone, Graph* graph, Schedule* schedule);
65 65
66 inline SchedulerData DefaultSchedulerData(); 66 inline SchedulerData DefaultSchedulerData();
67 inline SchedulerData* GetData(Node* node); 67 inline SchedulerData* GetData(Node* node);
68 68
69 Placement GetPlacement(Node* node); 69 Placement GetPlacement(Node* node);
70 void UpdatePlacement(Node* node, Placement placement); 70 void UpdatePlacement(Node* node, Placement placement);
71 71
72 void IncrementUnscheduledUseCount(Node* node, Node* from); 72 void IncrementUnscheduledUseCount(Node* node, int index, Node* from);
73 void DecrementUnscheduledUseCount(Node* node, Node* from); 73 void DecrementUnscheduledUseCount(Node* node, int index, Node* from);
74 74
75 inline int GetRPONumber(BasicBlock* block); 75 inline int GetRPONumber(BasicBlock* block);
76 BasicBlock* GetCommonDominator(BasicBlock* b1, BasicBlock* b2); 76 BasicBlock* GetCommonDominator(BasicBlock* b1, BasicBlock* b2);
77 77
78 // Phase 1: Build control-flow graph. 78 // Phase 1: Build control-flow graph.
79 friend class CFGBuilder; 79 friend class CFGBuilder;
80 void BuildCFG(); 80 void BuildCFG();
81 81
82 // Phase 2: Compute special RPO and dominator tree. 82 // Phase 2: Compute special RPO and dominator tree.
83 friend class SpecialRPONumberer; 83 friend class SpecialRPONumberer;
(...skipping 14 matching lines...) Expand all
98 98
99 void FuseFloatingControl(BasicBlock* block, Node* node); 99 void FuseFloatingControl(BasicBlock* block, Node* node);
100 void MovePlannedNodes(BasicBlock* from, BasicBlock* to); 100 void MovePlannedNodes(BasicBlock* from, BasicBlock* to);
101 }; 101 };
102 102
103 } // namespace compiler 103 } // namespace compiler
104 } // namespace internal 104 } // namespace internal
105 } // namespace v8 105 } // namespace v8
106 106
107 #endif // V8_COMPILER_SCHEDULER_H_ 107 #endif // V8_COMPILER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/scheduler.cc » ('j') | src/compiler/scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698