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

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

Issue 940403002: [turbofan] Don't compute unneeded gray set in AllNodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | test/cctest/compiler/test-osr.cc » ('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 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_NODE_H_ 5 #ifndef V8_COMPILER_NODE_H_
6 #define V8_COMPILER_NODE_H_ 6 #define V8_COMPILER_NODE_H_
7 7
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 #include "src/types-inl.h" 10 #include "src/types-inl.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 DISALLOW_COPY_AND_ASSIGN(Node); 243 DISALLOW_COPY_AND_ASSIGN(Node);
244 }; 244 };
245 245
246 246
247 std::ostream& operator<<(std::ostream& os, const Node& n); 247 std::ostream& operator<<(std::ostream& os, const Node& n);
248 248
249 249
250 // Typedefs to shorten commonly used Node containers. 250 // Typedefs to shorten commonly used Node containers.
251 typedef ZoneDeque<Node*> NodeDeque; 251 typedef ZoneDeque<Node*> NodeDeque;
252 typedef ZoneSet<Node*> NodeSet;
252 typedef ZoneVector<Node*> NodeVector; 253 typedef ZoneVector<Node*> NodeVector;
253 typedef ZoneVector<NodeVector> NodeVectorVector; 254 typedef ZoneVector<NodeVector> NodeVectorVector;
254 255
255 256
256 // Helper to extract parameters from Operator1<*> nodes. 257 // Helper to extract parameters from Operator1<*> nodes.
257 template <typename T> 258 template <typename T>
258 static inline const T& OpParameter(const Node* node) { 259 static inline const T& OpParameter(const Node* node) {
259 return OpParameter<T>(node->op()); 260 return OpParameter<T>(node->op());
260 } 261 }
261 262
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 478
478 void Node::ReplaceInput(int index, Node* new_to) { 479 void Node::ReplaceInput(int index, Node* new_to) {
479 GetInputRecordPtr(index)->Update(new_to); 480 GetInputRecordPtr(index)->Update(new_to);
480 } 481 }
481 482
482 } // namespace compiler 483 } // namespace compiler
483 } // namespace internal 484 } // namespace internal
484 } // namespace v8 485 } // namespace v8
485 486
486 #endif // V8_COMPILER_NODE_H_ 487 #endif // V8_COMPILER_NODE_H_
OLDNEW
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | test/cctest/compiler/test-osr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698