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_JS_TYPED_LOWERING_H_ | 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_ |
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ | 6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ |
7 | 7 |
8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 Reduction ReduceJSBitwiseOr(Node* node); | 36 Reduction ReduceJSBitwiseOr(Node* node); |
37 Reduction ReduceJSMultiply(Node* node); | 37 Reduction ReduceJSMultiply(Node* node); |
38 Reduction ReduceJSComparison(Node* node); | 38 Reduction ReduceJSComparison(Node* node); |
39 Reduction ReduceJSLoadProperty(Node* node); | 39 Reduction ReduceJSLoadProperty(Node* node); |
40 Reduction ReduceJSStoreProperty(Node* node); | 40 Reduction ReduceJSStoreProperty(Node* node); |
41 Reduction ReduceJSEqual(Node* node, bool invert); | 41 Reduction ReduceJSEqual(Node* node, bool invert); |
42 Reduction ReduceJSStrictEqual(Node* node, bool invert); | 42 Reduction ReduceJSStrictEqual(Node* node, bool invert); |
43 Reduction ReduceJSToNumberInput(Node* input); | 43 Reduction ReduceJSToNumberInput(Node* input); |
44 Reduction ReduceJSToStringInput(Node* input); | 44 Reduction ReduceJSToStringInput(Node* input); |
45 Reduction ReduceJSToBooleanInput(Node* input); | 45 Reduction ReduceJSToBooleanInput(Node* input); |
| 46 Reduction ReduceJSToBoolean(Node* node); |
46 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); | 47 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); |
47 Reduction ReduceI32Binop(Node* node, bool left_signed, bool right_signed, | 48 Reduction ReduceI32Binop(Node* node, bool left_signed, bool right_signed, |
48 const Operator* intOp); | 49 const Operator* intOp); |
49 Reduction ReduceI32Shift(Node* node, bool left_signed, | 50 Reduction ReduceI32Shift(Node* node, bool left_signed, |
50 const Operator* shift_op); | 51 const Operator* shift_op); |
51 | 52 |
52 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } | 53 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } |
53 CommonOperatorBuilder* common() { return jsgraph_->common(); } | 54 CommonOperatorBuilder* common() { return jsgraph_->common(); } |
54 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 55 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
55 MachineOperatorBuilder* machine() { return jsgraph_->machine(); } | 56 MachineOperatorBuilder* machine() { return jsgraph_->machine(); } |
56 | 57 |
57 JSGraph* jsgraph_; | 58 JSGraph* jsgraph_; |
58 SimplifiedOperatorBuilder simplified_; | 59 SimplifiedOperatorBuilder simplified_; |
59 Type* zero_range_; | 60 Type* zero_range_; |
60 Type* one_range_; | 61 Type* one_range_; |
61 Type* zero_thirtyone_range_; | 62 Type* zero_thirtyone_range_; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace compiler | 65 } // namespace compiler |
65 } // namespace internal | 66 } // namespace internal |
66 } // namespace v8 | 67 } // namespace v8 |
67 | 68 |
68 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 69 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
OLD | NEW |