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_REPRESENTATION_CHANGE_H_ | 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ |
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ | 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ |
7 | 7 |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
11 #include "src/compiler/js-graph.h" | 11 #include "src/compiler/js-graph.h" |
12 #include "src/compiler/machine-operator.h" | 12 #include "src/compiler/machine-operator.h" |
13 #include "src/compiler/node-properties-inl.h" | |
14 #include "src/compiler/simplified-operator.h" | 13 #include "src/compiler/simplified-operator.h" |
15 | 14 |
16 namespace v8 { | 15 namespace v8 { |
17 namespace internal { | 16 namespace internal { |
18 namespace compiler { | 17 namespace compiler { |
19 | 18 |
20 // Contains logic related to changing the representation of values for constants | 19 // Contains logic related to changing the representation of values for constants |
21 // and other nodes, as well as lowering Simplified->Machine operators. | 20 // and other nodes, as well as lowering Simplified->Machine operators. |
22 // Eagerly folds any representation changes for constants. | 21 // Eagerly folds any representation changes for constants. |
23 class RepresentationChanger { | 22 class RepresentationChanger { |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 Factory* factory() const { return isolate()->factory(); } | 453 Factory* factory() const { return isolate()->factory(); } |
455 SimplifiedOperatorBuilder* simplified() { return simplified_; } | 454 SimplifiedOperatorBuilder* simplified() { return simplified_; } |
456 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 455 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
457 }; | 456 }; |
458 | 457 |
459 } // namespace compiler | 458 } // namespace compiler |
460 } // namespace internal | 459 } // namespace internal |
461 } // namespace v8 | 460 } // namespace v8 |
462 | 461 |
463 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 462 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
OLD | NEW |