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

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

Issue 760493003: Make generic algorithm a little less generic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-generic-stuff-3
Patch Set: Rebased. Created 6 years 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-replay.h ('k') | tools/gyp/v8.gyp » ('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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "src/v8.h" 12 #include "src/v8.h"
13 13
14 #include "src/compiler/generic-algorithm.h"
15 #include "src/compiler/opcodes.h" 14 #include "src/compiler/opcodes.h"
16 #include "src/compiler/operator.h" 15 #include "src/compiler/operator.h"
17 #include "src/types.h" 16 #include "src/types.h"
18 #include "src/zone.h" 17 #include "src/zone.h"
19 #include "src/zone-allocator.h" 18 #include "src/zone-allocator.h"
20 #include "src/zone-containers.h" 19 #include "src/zone-containers.h"
21 20
22 namespace v8 { 21 namespace v8 {
23 namespace internal { 22 namespace internal {
24 namespace compiler { 23 namespace compiler {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 Input* CurrentInput() const { 418 Input* CurrentInput() const {
420 return current_->from->GetInputRecordPtr(current_->input_index); 419 return current_->from->GetInputRecordPtr(current_->input_index);
421 } 420 }
422 421
423 Node::Use* current_; 422 Node::Use* current_;
424 }; 423 };
425 424
426 425
427 std::ostream& operator<<(std::ostream& os, const Node& n); 426 std::ostream& operator<<(std::ostream& os, const Node& n);
428 427
429 typedef GenericGraphVisit::NullNodeVisitor NullNodeVisitor;
430
431 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet; 428 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet;
432 typedef NodeSet::iterator NodeSetIter; 429 typedef NodeSet::iterator NodeSetIter;
433 typedef NodeSet::reverse_iterator NodeSetRIter; 430 typedef NodeSet::reverse_iterator NodeSetRIter;
434 431
435 typedef ZoneDeque<Node*> NodeDeque; 432 typedef ZoneDeque<Node*> NodeDeque;
436 433
437 typedef ZoneVector<Node*> NodeVector; 434 typedef ZoneVector<Node*> NodeVector;
438 typedef NodeVector::iterator NodeVectorIter; 435 typedef NodeVector::iterator NodeVectorIter;
439 typedef NodeVector::const_iterator NodeVectorConstIter; 436 typedef NodeVector::const_iterator NodeVectorConstIter;
440 typedef NodeVector::reverse_iterator NodeVectorRIter; 437 typedef NodeVector::reverse_iterator NodeVectorRIter;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 inline bool Node::OwnedBy(Node* owner) const { 640 inline bool Node::OwnedBy(Node* owner) const {
644 return first_use_ != NULL && first_use_->from == owner && 641 return first_use_ != NULL && first_use_->from == owner &&
645 first_use_->next == NULL; 642 first_use_->next == NULL;
646 } 643 }
647 644
648 } // namespace compiler 645 } // namespace compiler
649 } // namespace internal 646 } // namespace internal
650 } // namespace v8 647 } // namespace v8
651 648
652 #endif // V8_COMPILER_NODE_H_ 649 #endif // V8_COMPILER_NODE_H_
OLDNEW
« no previous file with comments | « src/compiler/graph-replay.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698