| OLD | NEW |
| 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 #include "src/compiler/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // representation changes between uses that demand a particular | 47 // representation changes between uses that demand a particular |
| 48 // representation and nodes that produce a different representation. | 48 // representation and nodes that produce a different representation. |
| 49 LOWER | 49 LOWER |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 | 52 |
| 53 class RepresentationSelector { | 53 class RepresentationSelector { |
| 54 public: | 54 public: |
| 55 // Information for each node tracked during the fixpoint. | 55 // Information for each node tracked during the fixpoint. |
| 56 struct NodeInfo { | 56 struct NodeInfo { |
| 57 MachineTypeUnion use : 14; // Union of all usages for the node. | 57 MachineTypeUnion use : 15; // Union of all usages for the node. |
| 58 bool queued : 1; // Bookkeeping for the traversal. | 58 bool queued : 1; // Bookkeeping for the traversal. |
| 59 bool visited : 1; // Bookkeeping for the traversal. | 59 bool visited : 1; // Bookkeeping for the traversal. |
| 60 MachineTypeUnion output : 14; // Output type of the node. | 60 MachineTypeUnion output : 15; // Output type of the node. |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 RepresentationSelector(JSGraph* jsgraph, Zone* zone, | 63 RepresentationSelector(JSGraph* jsgraph, Zone* zone, |
| 64 RepresentationChanger* changer) | 64 RepresentationChanger* changer) |
| 65 : jsgraph_(jsgraph), | 65 : jsgraph_(jsgraph), |
| 66 count_(jsgraph->graph()->NodeCount()), | 66 count_(jsgraph->graph()->NodeCount()), |
| 67 info_(zone->NewArray<NodeInfo>(count_)), | 67 info_(zone->NewArray<NodeInfo>(count_)), |
| 68 nodes_(NodeVector::allocator_type(zone)), | 68 nodes_(NodeVector::allocator_type(zone)), |
| 69 replacements_(NodeVector::allocator_type(zone)), | 69 replacements_(NodeVector::allocator_type(zone)), |
| 70 contains_js_nodes_(false), | 70 contains_js_nodes_(false), |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 break; | 1000 break; |
| 1001 default: | 1001 default: |
| 1002 UNREACHABLE(); | 1002 UNREACHABLE(); |
| 1003 break; | 1003 break; |
| 1004 } | 1004 } |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 } // namespace compiler | 1007 } // namespace compiler |
| 1008 } // namespace internal | 1008 } // namespace internal |
| 1009 } // namespace v8 | 1009 } // namespace v8 |
| OLD | NEW |