OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_TYPE_HINT_LOWERING_H_ | 5 #ifndef V8_COMPILER_JS_TYPE_HINT_LOWERING_H_ |
6 #define V8_COMPILER_JS_TYPE_HINT_LOWERING_H_ | 6 #define V8_COMPILER_JS_TYPE_HINT_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/deoptimize-reason.h" | 10 #include "src/deoptimize-reason.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 JSTypeHintLowering(JSGraph* jsgraph, Handle<FeedbackVector> feedback_vector, | 49 JSTypeHintLowering(JSGraph* jsgraph, Handle<FeedbackVector> feedback_vector, |
50 Flags flags); | 50 Flags flags); |
51 | 51 |
52 // Potential reduction of binary (arithmetic, logical, shift and relational | 52 // Potential reduction of binary (arithmetic, logical, shift and relational |
53 // comparison) operations. | 53 // comparison) operations. |
54 Reduction ReduceBinaryOperation(const Operator* op, Node* left, Node* right, | 54 Reduction ReduceBinaryOperation(const Operator* op, Node* left, Node* right, |
55 Node* effect, Node* control, | 55 Node* effect, Node* control, |
56 FeedbackSlot slot) const; | 56 FeedbackSlot slot) const; |
57 | 57 |
| 58 // Potential reduction to ToNumber operations |
| 59 Reduction ReduceToNumberOperation(Node* value, Node* effect, Node* control, |
| 60 FeedbackSlot slot) const; |
| 61 |
58 // Potential reduction of property access operations. | 62 // Potential reduction of property access operations. |
59 Reduction ReduceLoadNamedOperation(const Operator* op, Node* obj, | 63 Reduction ReduceLoadNamedOperation(const Operator* op, Node* obj, |
60 Node* effect, Node* control, | 64 Node* effect, Node* control, |
61 FeedbackSlot slot) const; | 65 FeedbackSlot slot) const; |
62 Reduction ReduceLoadKeyedOperation(const Operator* op, Node* obj, Node* key, | 66 Reduction ReduceLoadKeyedOperation(const Operator* op, Node* obj, Node* key, |
63 Node* effect, Node* control, | 67 Node* effect, Node* control, |
64 FeedbackSlot slot) const; | 68 FeedbackSlot slot) const; |
65 Reduction ReduceStoreNamedOperation(const Operator* op, Node* obj, Node* val, | 69 Reduction ReduceStoreNamedOperation(const Operator* op, Node* obj, Node* val, |
66 Node* effect, Node* control, | 70 Node* effect, Node* control, |
67 FeedbackSlot slot) const; | 71 FeedbackSlot slot) const; |
(...skipping 17 matching lines...) Expand all Loading... |
85 Handle<FeedbackVector> feedback_vector_; | 89 Handle<FeedbackVector> feedback_vector_; |
86 | 90 |
87 DISALLOW_COPY_AND_ASSIGN(JSTypeHintLowering); | 91 DISALLOW_COPY_AND_ASSIGN(JSTypeHintLowering); |
88 }; | 92 }; |
89 | 93 |
90 } // namespace compiler | 94 } // namespace compiler |
91 } // namespace internal | 95 } // namespace internal |
92 } // namespace v8 | 96 } // namespace v8 |
93 | 97 |
94 #endif // V8_COMPILER_JS_TYPE_HINT_LOWERING_H_ | 98 #endif // V8_COMPILER_JS_TYPE_HINT_LOWERING_H_ |
OLD | NEW |