| 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/machine-operator-reducer.h" | 5 #include "src/compiler/machine-operator-reducer.h" |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/compiler/generic-node-inl.h" | 8 #include "src/compiler/generic-node-inl.h" |
| 9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| 11 #include "src/compiler/node-matchers.h" | 11 #include "src/compiler/node-matchers.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 namespace compiler { | 15 namespace compiler { |
| 16 | 16 |
| 17 MachineOperatorReducer::MachineOperatorReducer(JSGraph* jsgraph) | 17 MachineOperatorReducer::MachineOperatorReducer(JSGraph* jsgraph) |
| 18 : jsgraph_(jsgraph), machine_(jsgraph->zone()) {} | 18 : jsgraph_(jsgraph) {} |
| 19 | 19 |
| 20 | 20 |
| 21 MachineOperatorReducer::~MachineOperatorReducer() {} | 21 MachineOperatorReducer::~MachineOperatorReducer() {} |
| 22 | 22 |
| 23 | 23 |
| 24 Node* MachineOperatorReducer::Float64Constant(volatile double value) { | 24 Node* MachineOperatorReducer::Float64Constant(volatile double value) { |
| 25 return jsgraph()->Float64Constant(value); | 25 return jsgraph()->Float64Constant(value); |
| 26 } | 26 } |
| 27 | 27 |
| 28 | 28 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 CommonOperatorBuilder* MachineOperatorReducer::common() const { | 475 CommonOperatorBuilder* MachineOperatorReducer::common() const { |
| 476 return jsgraph()->common(); | 476 return jsgraph()->common(); |
| 477 } | 477 } |
| 478 | 478 |
| 479 | 479 |
| 480 Graph* MachineOperatorReducer::graph() const { return jsgraph()->graph(); } | 480 Graph* MachineOperatorReducer::graph() const { return jsgraph()->graph(); } |
| 481 | 481 |
| 482 } // namespace compiler | 482 } // namespace compiler |
| 483 } // namespace internal | 483 } // namespace internal |
| 484 } // namespace v8 | 484 } // namespace v8 |
| OLD | NEW |