| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_COMPILER_BOUNDS_CHECK_LOWERING_H_ |
| 6 #define V8_COMPILER_BOUNDS_CHECK_LOWERING_H_ |
| 7 |
| 8 #include "src/compiler/graph-reducer.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 namespace compiler { |
| 13 |
| 14 // Forward declarations. |
| 15 class CommonOperatorBuilder; |
| 16 class JSGraph; |
| 17 class MachineOperatorBuilder; |
| 18 |
| 19 class BoundsCheckLowering FINAL : public Reducer { |
| 20 public: |
| 21 explicit BoundsCheckLowering(JSGraph* jsgraph) : jsgraph_(jsgraph) {} |
| 22 ~BoundsCheckLowering(); |
| 23 |
| 24 Reduction Reduce(Node* node) OVERRIDE; |
| 25 |
| 26 private: |
| 27 Graph* graph() const; |
| 28 JSGraph* jsgraph() const { return jsgraph_; } |
| 29 CommonOperatorBuilder* common() const; |
| 30 MachineOperatorBuilder* machine() const; |
| 31 |
| 32 JSGraph* jsgraph_; |
| 33 }; |
| 34 |
| 35 } // namespace compiler |
| 36 } // namespace internal |
| 37 } // namespace v8 |
| 38 |
| 39 #endif // V8_COMPILER_BOUNDS_CHECK_LOWERING_H_ |
| OLD | NEW |