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

Side by Side Diff: src/compiler/generic-algorithm-inl.h

Issue 752263003: Remove deprecated pieces from generic algorithm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/compiler/graph.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 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_GENERIC_ALGORITHM_INL_H_ 5 #ifndef V8_COMPILER_GENERIC_ALGORITHM_INL_H_
6 #define V8_COMPILER_GENERIC_ALGORITHM_INL_H_ 6 #define V8_COMPILER_GENERIC_ALGORITHM_INL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/compiler/generic-algorithm.h" 10 #include "src/compiler/generic-algorithm.h"
(...skipping 11 matching lines...) Expand all
22 typedef N Node; 22 typedef N Node;
23 typedef typename N::Inputs::iterator Iterator; 23 typedef typename N::Inputs::iterator Iterator;
24 24
25 static Iterator begin(Node* node) { return node->inputs().begin(); } 25 static Iterator begin(Node* node) { return node->inputs().begin(); }
26 static Iterator end(Node* node) { return node->inputs().end(); } 26 static Iterator end(Node* node) { return node->inputs().end(); }
27 static int max_id(GenericGraphBase* graph) { return graph->NodeCount(); } 27 static int max_id(GenericGraphBase* graph) { return graph->NodeCount(); }
28 static Node* to(Iterator iterator) { return *iterator; } 28 static Node* to(Iterator iterator) { return *iterator; }
29 static Node* from(Iterator iterator) { return iterator.edge().from(); } 29 static Node* from(Iterator iterator) { return iterator.edge().from(); }
30 }; 30 };
31 31
32 template <class N> 32 } // namespace compiler
33 class NodeUseIterationTraits { 33 } // namespace internal
34 public: 34 } // namespace v8
35 typedef N Node;
36 typedef typename N::Uses::iterator Iterator;
37
38 static Iterator begin(Node* node) { return node->uses().begin(); }
39 static Iterator end(Node* node) { return node->uses().end(); }
40 static int max_id(GenericGraphBase* graph) { return graph->NodeCount(); }
41 static Node* to(Iterator iterator) { return *iterator; }
42 static Node* from(Iterator iterator) { return iterator.edge().to(); }
43 };
44 }
45 }
46 } // namespace v8::internal::compiler
47 35
48 #endif // V8_COMPILER_GENERIC_ALGORITHM_INL_H_ 36 #endif // V8_COMPILER_GENERIC_ALGORITHM_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698