| 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 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
| 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
| 7 | 7 |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
| 10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 SourcePositionTable* source_positions) | 24 SourcePositionTable* source_positions) |
| 25 : jsgraph_(jsgraph), zone_(zone), source_positions_(source_positions) {} | 25 : jsgraph_(jsgraph), zone_(zone), source_positions_(source_positions) {} |
| 26 ~SimplifiedLowering() {} | 26 ~SimplifiedLowering() {} |
| 27 | 27 |
| 28 void LowerAllNodes(); | 28 void LowerAllNodes(); |
| 29 | 29 |
| 30 // TODO(titzer): These are exposed for direct testing. Use a friend class. | 30 // TODO(titzer): These are exposed for direct testing. Use a friend class. |
| 31 void DoAllocate(Node* node); | 31 void DoAllocate(Node* node); |
| 32 void DoLoadField(Node* node); | 32 void DoLoadField(Node* node); |
| 33 void DoStoreField(Node* node); | 33 void DoStoreField(Node* node); |
| 34 // TODO(turbofan): The output_type can be removed once the result of the | 34 void DoLoadBuffer(Node* node); |
| 35 // representation analysis is stored in the node bounds. | |
| 36 void DoLoadBuffer(Node* node, MachineType output_type, | |
| 37 RepresentationChanger* changer); | |
| 38 void DoStoreBuffer(Node* node); | 35 void DoStoreBuffer(Node* node); |
| 39 void DoLoadElement(Node* node); | 36 void DoLoadElement(Node* node); |
| 40 void DoStoreElement(Node* node); | 37 void DoStoreElement(Node* node); |
| 41 void DoStringAdd(Node* node); | 38 void DoStringAdd(Node* node); |
| 42 void DoStringEqual(Node* node); | 39 void DoStringEqual(Node* node); |
| 43 void DoStringLessThan(Node* node); | 40 void DoStringLessThan(Node* node); |
| 44 void DoStringLessThanOrEqual(Node* node); | 41 void DoStringLessThanOrEqual(Node* node); |
| 45 | 42 |
| 46 private: | 43 private: |
| 47 JSGraph* const jsgraph_; | 44 JSGraph* const jsgraph_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 Graph* graph() { return jsgraph()->graph(); } | 69 Graph* graph() { return jsgraph()->graph(); } |
| 73 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 70 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
| 74 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 71 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
| 75 }; | 72 }; |
| 76 | 73 |
| 77 } // namespace compiler | 74 } // namespace compiler |
| 78 } // namespace internal | 75 } // namespace internal |
| 79 } // namespace v8 | 76 } // namespace v8 |
| 80 | 77 |
| 81 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 78 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
| OLD | NEW |