Chromium Code Reviews| Index: src/compiler/simd-scalar-lowering.h |
| diff --git a/src/compiler/simd-scalar-lowering.h b/src/compiler/simd-scalar-lowering.h |
| index 04f9d0ff77ca2dc6f2c4438a31e8ff807a99210b..5a6625379273b01e35f38c57467af3e7538e86ab 100644 |
| --- a/src/compiler/simd-scalar-lowering.h |
| +++ b/src/compiler/simd-scalar-lowering.h |
| @@ -7,6 +7,7 @@ |
| #include "src/compiler/common-operator.h" |
| #include "src/compiler/graph.h" |
| +#include "src/compiler/js-graph.h" |
| #include "src/compiler/machine-operator.h" |
| #include "src/compiler/node-marker.h" |
| #include "src/zone/zone-containers.h" |
| @@ -17,8 +18,7 @@ namespace compiler { |
| class SimdScalarLowering { |
| public: |
| - SimdScalarLowering(Graph* graph, MachineOperatorBuilder* machine, |
| - CommonOperatorBuilder* common, Zone* zone, |
| + SimdScalarLowering(JSGraph* jsgraph, |
| Signature<MachineRepresentation>* signature); |
| void LowerGraph(); |
| @@ -38,10 +38,10 @@ class SimdScalarLowering { |
| SimdType type; // represents what input type is expected |
| }; |
| - Zone* zone() const { return zone_; } |
| - Graph* graph() const { return graph_; } |
| - MachineOperatorBuilder* machine() const { return machine_; } |
| - CommonOperatorBuilder* common() const { return common_; } |
| + Zone* zone() const { return jsgraph_->zone(); } |
| + Graph* graph() const { return jsgraph_->graph(); } |
| + MachineOperatorBuilder* machine() const { return jsgraph_->machine(); } |
| + CommonOperatorBuilder* common() const { return jsgraph_->common(); } |
| Signature<MachineRepresentation>* signature() const { return signature_; } |
| void LowerNode(Node* node); |
| @@ -61,16 +61,17 @@ class SimdScalarLowering { |
| const Operator* store_op, SimdType rep_type); |
| void LowerBinaryOp(Node* node, SimdType input_rep_type, const Operator* op); |
| void LowerUnaryOp(Node* node, SimdType input_rep_type, const Operator* op); |
| + void LowerIntMinMax(Node* node, const Operator* op, bool is_max); |
| + void LowerConvertFromFloat(Node* node, bool is_signed); |
| + void LowerShiftOp(Node* node, const Operator* op); |
| + Node* BuildF64Trunc(Node* input); |
| struct NodeState { |
|
Mircea Trofin
2017/03/03 01:26:50
while here, mind moving this struct together with
aseemgarg
2017/03/03 01:35:59
Done.
|
| Node* node; |
| int input_index; |
| }; |
| - Zone* zone_; |
| - Graph* const graph_; |
| - MachineOperatorBuilder* machine_; |
| - CommonOperatorBuilder* common_; |
| + JSGraph* const jsgraph_; |
| NodeMarker<State> state_; |
| ZoneDeque<NodeState> stack_; |
| Replacement* replacements_; |