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 30 matching lines...) Expand all Loading... |
41 JSTypedLowering(Editor* editor, CompilationDependencies* dependencies, | 41 JSTypedLowering(Editor* editor, CompilationDependencies* dependencies, |
42 Flags flags, JSGraph* jsgraph, Zone* zone); | 42 Flags flags, JSGraph* jsgraph, Zone* zone); |
43 ~JSTypedLowering() final {} | 43 ~JSTypedLowering() final {} |
44 | 44 |
45 Reduction Reduce(Node* node) final; | 45 Reduction Reduce(Node* node) final; |
46 | 46 |
47 private: | 47 private: |
48 friend class JSBinopReduction; | 48 friend class JSBinopReduction; |
49 | 49 |
50 Reduction ReduceJSAdd(Node* node); | 50 Reduction ReduceJSAdd(Node* node); |
51 Reduction ReduceJSModulus(Node* node); | |
52 Reduction ReduceJSBitwiseOr(Node* node); | |
53 Reduction ReduceJSMultiply(Node* node); | |
54 Reduction ReduceJSComparison(Node* node); | 51 Reduction ReduceJSComparison(Node* node); |
55 Reduction ReduceJSLoadNamed(Node* node); | 52 Reduction ReduceJSLoadNamed(Node* node); |
56 Reduction ReduceJSLoadProperty(Node* node); | 53 Reduction ReduceJSLoadProperty(Node* node); |
57 Reduction ReduceJSStoreProperty(Node* node); | 54 Reduction ReduceJSStoreProperty(Node* node); |
58 Reduction ReduceJSInstanceOf(Node* node); | 55 Reduction ReduceJSInstanceOf(Node* node); |
59 Reduction ReduceJSLoadContext(Node* node); | 56 Reduction ReduceJSLoadContext(Node* node); |
60 Reduction ReduceJSStoreContext(Node* node); | 57 Reduction ReduceJSStoreContext(Node* node); |
61 Reduction ReduceJSEqualTypeOf(Node* node, bool invert); | 58 Reduction ReduceJSEqualTypeOf(Node* node, bool invert); |
62 Reduction ReduceJSEqual(Node* node, bool invert); | 59 Reduction ReduceJSEqual(Node* node, bool invert); |
63 Reduction ReduceJSStrictEqual(Node* node, bool invert); | 60 Reduction ReduceJSStrictEqual(Node* node, bool invert); |
(...skipping 12 matching lines...) Expand all Loading... |
76 Reduction ReduceJSForInNext(Node* node); | 73 Reduction ReduceJSForInNext(Node* node); |
77 Reduction ReduceJSForInStep(Node* node); | 74 Reduction ReduceJSForInStep(Node* node); |
78 Reduction ReduceJSGeneratorStore(Node* node); | 75 Reduction ReduceJSGeneratorStore(Node* node); |
79 Reduction ReduceJSGeneratorRestoreContinuation(Node* node); | 76 Reduction ReduceJSGeneratorRestoreContinuation(Node* node); |
80 Reduction ReduceJSGeneratorRestoreRegister(Node* node); | 77 Reduction ReduceJSGeneratorRestoreRegister(Node* node); |
81 Reduction ReduceCheckMaps(Node* node); | 78 Reduction ReduceCheckMaps(Node* node); |
82 Reduction ReduceCheckString(Node* node); | 79 Reduction ReduceCheckString(Node* node); |
83 Reduction ReduceLoadField(Node* node); | 80 Reduction ReduceLoadField(Node* node); |
84 Reduction ReduceNumberRoundop(Node* node); | 81 Reduction ReduceNumberRoundop(Node* node); |
85 Reduction ReduceSelect(Node* node); | 82 Reduction ReduceSelect(Node* node); |
86 Reduction ReduceJSSubtract(Node* node); | 83 Reduction ReduceNumberBinop(Node* node); |
87 Reduction ReduceJSDivide(Node* node); | 84 Reduction ReduceInt32Binop(Node* node); |
88 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); | 85 Reduction ReduceUI32Shift(Node* node, Signedness signedness); |
89 Reduction ReduceUI32Shift(Node* node, Signedness signedness, | |
90 const Operator* shift_op); | |
91 | 86 |
92 Factory* factory() const; | 87 Factory* factory() const; |
93 Graph* graph() const; | 88 Graph* graph() const; |
94 JSGraph* jsgraph() const { return jsgraph_; } | 89 JSGraph* jsgraph() const { return jsgraph_; } |
95 Isolate* isolate() const; | 90 Isolate* isolate() const; |
96 JSOperatorBuilder* javascript() const; | 91 JSOperatorBuilder* javascript() const; |
97 CommonOperatorBuilder* common() const; | 92 CommonOperatorBuilder* common() const; |
98 SimplifiedOperatorBuilder* simplified() const; | 93 SimplifiedOperatorBuilder* simplified() const; |
99 MachineOperatorBuilder* machine() const; | 94 MachineOperatorBuilder* machine() const; |
100 CompilationDependencies* dependencies() const; | 95 CompilationDependencies* dependencies() const; |
101 Flags flags() const { return flags_; } | 96 Flags flags() const { return flags_; } |
102 | 97 |
103 CompilationDependencies* dependencies_; | 98 CompilationDependencies* dependencies_; |
104 Flags flags_; | 99 Flags flags_; |
105 JSGraph* jsgraph_; | 100 JSGraph* jsgraph_; |
106 Type* shifted_int32_ranges_[4]; | 101 Type* shifted_int32_ranges_[4]; |
107 Type* const true_type_; | 102 Type* const true_type_; |
108 Type* const false_type_; | 103 Type* const false_type_; |
109 Type* const the_hole_type_; | 104 Type* const the_hole_type_; |
110 TypeCache const& type_cache_; | 105 TypeCache const& type_cache_; |
111 }; | 106 }; |
112 | 107 |
113 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) | 108 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) |
114 | 109 |
115 } // namespace compiler | 110 } // namespace compiler |
116 } // namespace internal | 111 } // namespace internal |
117 } // namespace v8 | 112 } // namespace v8 |
118 | 113 |
119 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 114 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
OLD | NEW |