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

Side by Side Diff: src/compiler/select-lowering.h

Issue 684413003: Revert "[turbofan] Fix select lowering." (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 | « src/compiler/node.h ('k') | src/compiler/select-lowering.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 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 #ifndef V8_COMPILER_SELECT_LOWERING_H_ 5 #ifndef V8_COMPILER_SELECT_LOWERING_H_
6 #define V8_COMPILER_SELECT_LOWERING_H_ 6 #define V8_COMPILER_SELECT_LOWERING_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Lowers Select nodes to diamonds. 22 // Lowers Select nodes to diamonds.
23 class SelectLowering FINAL : public Reducer { 23 class SelectLowering FINAL : public Reducer {
24 public: 24 public:
25 SelectLowering(Graph* graph, CommonOperatorBuilder* common); 25 SelectLowering(Graph* graph, CommonOperatorBuilder* common);
26 ~SelectLowering(); 26 ~SelectLowering();
27 27
28 Reduction Reduce(Node* node) OVERRIDE; 28 Reduction Reduce(Node* node) OVERRIDE;
29 29
30 private: 30 private:
31 typedef std::multimap<Node*, Node*, std::less<Node*>, 31 typedef std::map<Node*, Node*, std::less<Node*>,
32 zone_allocator<std::pair<Node* const, Node*>>> Merges; 32 zone_allocator<std::pair<Node* const, Node*>>> Merges;
33
34 bool ReachableFrom(Node* const sink, Node* const source);
35 33
36 CommonOperatorBuilder* common() const { return common_; } 34 CommonOperatorBuilder* common() const { return common_; }
37 Graph* graph() const { return graph_; } 35 Graph* graph() const { return graph_; }
38 36
39 CommonOperatorBuilder* common_; 37 CommonOperatorBuilder* common_;
40 Graph* graph_; 38 Graph* graph_;
41 Merges merges_; 39 Merges merges_;
42 }; 40 };
43 41
44 } // namespace compiler 42 } // namespace compiler
45 } // namespace internal 43 } // namespace internal
46 } // namespace v8 44 } // namespace v8
47 45
48 #endif // V8_COMPILER_SELECT_LOWERING_H_ 46 #endif // V8_COMPILER_SELECT_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/node.h ('k') | src/compiler/select-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698