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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 Reduction ReduceJSMultiply(Node* node); | 53 Reduction ReduceJSMultiply(Node* node); |
54 Reduction ReduceJSComparison(Node* node); | 54 Reduction ReduceJSComparison(Node* node); |
55 Reduction ReduceJSLoadNamed(Node* node); | 55 Reduction ReduceJSLoadNamed(Node* node); |
56 Reduction ReduceJSLoadProperty(Node* node); | 56 Reduction ReduceJSLoadProperty(Node* node); |
57 Reduction ReduceJSStoreProperty(Node* node); | 57 Reduction ReduceJSStoreProperty(Node* node); |
58 Reduction ReduceJSInstanceOf(Node* node); | 58 Reduction ReduceJSInstanceOf(Node* node); |
59 Reduction ReduceJSLoadContext(Node* node); | 59 Reduction ReduceJSLoadContext(Node* node); |
60 Reduction ReduceJSStoreContext(Node* node); | 60 Reduction ReduceJSStoreContext(Node* node); |
61 Reduction ReduceJSEqual(Node* node, bool invert); | 61 Reduction ReduceJSEqual(Node* node, bool invert); |
62 Reduction ReduceJSStrictEqual(Node* node, bool invert); | 62 Reduction ReduceJSStrictEqual(Node* node, bool invert); |
63 Reduction ReduceJSUnaryNot(Node* node); | |
64 Reduction ReduceJSToBoolean(Node* node); | 63 Reduction ReduceJSToBoolean(Node* node); |
65 Reduction ReduceJSToNumberInput(Node* input); | 64 Reduction ReduceJSToNumberInput(Node* input); |
66 Reduction ReduceJSToNumber(Node* node); | 65 Reduction ReduceJSToNumber(Node* node); |
67 Reduction ReduceJSToStringInput(Node* input); | 66 Reduction ReduceJSToStringInput(Node* input); |
68 Reduction ReduceJSToString(Node* node); | 67 Reduction ReduceJSToString(Node* node); |
69 Reduction ReduceJSToObject(Node* node); | 68 Reduction ReduceJSToObject(Node* node); |
70 Reduction ReduceJSConvertReceiver(Node* node); | 69 Reduction ReduceJSConvertReceiver(Node* node); |
71 Reduction ReduceJSCreate(Node* node); | 70 Reduction ReduceJSCreate(Node* node); |
72 Reduction ReduceJSCreateArguments(Node* node); | 71 Reduction ReduceJSCreateArguments(Node* node); |
73 Reduction ReduceJSCreateArray(Node* node); | 72 Reduction ReduceJSCreateArray(Node* node); |
74 Reduction ReduceJSCreateClosure(Node* node); | 73 Reduction ReduceJSCreateClosure(Node* node); |
75 Reduction ReduceJSCreateLiteralArray(Node* node); | 74 Reduction ReduceJSCreateLiteralArray(Node* node); |
76 Reduction ReduceJSCreateLiteralObject(Node* node); | 75 Reduction ReduceJSCreateLiteralObject(Node* node); |
77 Reduction ReduceJSCreateFunctionContext(Node* node); | 76 Reduction ReduceJSCreateFunctionContext(Node* node); |
78 Reduction ReduceJSCreateWithContext(Node* node); | 77 Reduction ReduceJSCreateWithContext(Node* node); |
79 Reduction ReduceJSCreateBlockContext(Node* node); | 78 Reduction ReduceJSCreateBlockContext(Node* node); |
80 Reduction ReduceJSCallFunction(Node* node); | 79 Reduction ReduceJSCallFunction(Node* node); |
81 Reduction ReduceJSForInDone(Node* node); | 80 Reduction ReduceJSForInDone(Node* node); |
82 Reduction ReduceJSForInNext(Node* node); | 81 Reduction ReduceJSForInNext(Node* node); |
83 Reduction ReduceJSForInPrepare(Node* node); | 82 Reduction ReduceJSForInPrepare(Node* node); |
84 Reduction ReduceJSForInStep(Node* node); | 83 Reduction ReduceJSForInStep(Node* node); |
| 84 Reduction ReduceSelect(Node* node); |
85 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); | 85 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); |
86 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); | 86 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); |
87 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, | 87 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, |
88 const Operator* shift_op); | 88 const Operator* shift_op); |
89 Reduction ReduceNewArray(Node* node, Node* length, int capacity, | 89 Reduction ReduceNewArray(Node* node, Node* length, int capacity, |
90 Handle<AllocationSite> site); | 90 Handle<AllocationSite> site); |
91 | 91 |
92 Node* Word32Shl(Node* const lhs, int32_t const rhs); | 92 Node* Word32Shl(Node* const lhs, int32_t const rhs); |
93 Node* AllocateArguments(Node* effect, Node* control, Node* frame_state); | 93 Node* AllocateArguments(Node* effect, Node* control, Node* frame_state); |
94 Node* AllocateAliasedArguments(Node* effect, Node* control, Node* frame_state, | 94 Node* AllocateAliasedArguments(Node* effect, Node* control, Node* frame_state, |
(...skipping 15 matching lines...) Expand all Loading... |
110 Flags flags() const { return flags_; } | 110 Flags flags() const { return flags_; } |
111 | 111 |
112 // Limits up to which context allocations are inlined. | 112 // Limits up to which context allocations are inlined. |
113 static const int kFunctionContextAllocationLimit = 16; | 113 static const int kFunctionContextAllocationLimit = 16; |
114 static const int kBlockContextAllocationLimit = 16; | 114 static const int kBlockContextAllocationLimit = 16; |
115 | 115 |
116 CompilationDependencies* dependencies_; | 116 CompilationDependencies* dependencies_; |
117 Flags flags_; | 117 Flags flags_; |
118 JSGraph* jsgraph_; | 118 JSGraph* jsgraph_; |
119 Type* shifted_int32_ranges_[4]; | 119 Type* shifted_int32_ranges_[4]; |
| 120 Type* const true_type_; |
| 121 Type* const false_type_; |
120 Type* const the_hole_type_; | 122 Type* const the_hole_type_; |
121 TypeCache const& type_cache_; | 123 TypeCache const& type_cache_; |
122 }; | 124 }; |
123 | 125 |
124 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) | 126 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) |
125 | 127 |
126 } // namespace compiler | 128 } // namespace compiler |
127 } // namespace internal | 129 } // namespace internal |
128 } // namespace v8 | 130 } // namespace v8 |
129 | 131 |
130 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 132 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
OLD | NEW |