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/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 Reduction ReduceCheckString(Node* node); | 82 Reduction ReduceCheckString(Node* node); |
83 Reduction ReduceLoadField(Node* node); | 83 Reduction ReduceLoadField(Node* node); |
84 Reduction ReduceNumberRoundop(Node* node); | 84 Reduction ReduceNumberRoundop(Node* node); |
85 Reduction ReduceSelect(Node* node); | 85 Reduction ReduceSelect(Node* node); |
86 Reduction ReduceJSSubtract(Node* node); | 86 Reduction ReduceJSSubtract(Node* node); |
87 Reduction ReduceJSDivide(Node* node); | 87 Reduction ReduceJSDivide(Node* node); |
88 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); | 88 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); |
89 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, | 89 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, |
90 const Operator* shift_op); | 90 const Operator* shift_op); |
91 | 91 |
92 Node* EmptyFrameState(); | |
93 | |
94 Factory* factory() const; | 92 Factory* factory() const; |
95 Graph* graph() const; | 93 Graph* graph() const; |
96 JSGraph* jsgraph() const { return jsgraph_; } | 94 JSGraph* jsgraph() const { return jsgraph_; } |
97 Isolate* isolate() const; | 95 Isolate* isolate() const; |
98 JSOperatorBuilder* javascript() const; | 96 JSOperatorBuilder* javascript() const; |
99 CommonOperatorBuilder* common() const; | 97 CommonOperatorBuilder* common() const; |
100 SimplifiedOperatorBuilder* simplified() const; | 98 SimplifiedOperatorBuilder* simplified() const; |
101 MachineOperatorBuilder* machine() const; | 99 MachineOperatorBuilder* machine() const; |
102 CompilationDependencies* dependencies() const; | 100 CompilationDependencies* dependencies() const; |
103 Flags flags() const { return flags_; } | 101 Flags flags() const { return flags_; } |
104 | 102 |
105 CompilationDependencies* dependencies_; | 103 CompilationDependencies* dependencies_; |
106 Flags flags_; | 104 Flags flags_; |
107 JSGraph* jsgraph_; | 105 JSGraph* jsgraph_; |
108 Type* shifted_int32_ranges_[4]; | 106 Type* shifted_int32_ranges_[4]; |
109 Type* const true_type_; | 107 Type* const true_type_; |
110 Type* const false_type_; | 108 Type* const false_type_; |
111 Type* const the_hole_type_; | 109 Type* const the_hole_type_; |
112 TypeCache const& type_cache_; | 110 TypeCache const& type_cache_; |
113 }; | 111 }; |
114 | 112 |
115 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) | 113 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) |
116 | 114 |
117 } // namespace compiler | 115 } // namespace compiler |
118 } // namespace internal | 116 } // namespace internal |
119 } // namespace v8 | 117 } // namespace v8 |
120 | 118 |
121 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 119 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
OLD | NEW |