OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_FEEDBACK_H_ | 5 #ifndef V8_COMPILER_JS_TYPE_FEEDBACK_H_ |
6 #define V8_COMPILER_JS_TYPE_FEEDBACK_H_ | 6 #define V8_COMPILER_JS_TYPE_FEEDBACK_H_ |
7 | 7 |
8 #include "src/utils.h" | 8 #include "src/utils.h" |
9 | 9 |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 Reduction ReduceJSStoreProperty(Node* node); | 67 Reduction ReduceJSStoreProperty(Node* node); |
68 | 68 |
69 private: | 69 private: |
70 JSGraph* jsgraph_; | 70 JSGraph* jsgraph_; |
71 SimplifiedOperatorBuilder simplified_; | 71 SimplifiedOperatorBuilder simplified_; |
72 JSTypeFeedbackTable* js_type_feedback_; | 72 JSTypeFeedbackTable* js_type_feedback_; |
73 TypeFeedbackOracle* oracle_; | 73 TypeFeedbackOracle* oracle_; |
74 | 74 |
75 TypeFeedbackOracle* oracle() { return oracle_; } | 75 TypeFeedbackOracle* oracle() { return oracle_; } |
76 Graph* graph() { return jsgraph_->graph(); } | 76 Graph* graph() { return jsgraph_->graph(); } |
| 77 JSGraph* jsgraph() { return jsgraph_; } |
77 CommonOperatorBuilder* common() { return jsgraph_->common(); } | 78 CommonOperatorBuilder* common() { return jsgraph_->common(); } |
78 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 79 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
79 | 80 |
80 void BuildMapCheck(Node* receiver, Handle<Map> map, bool smi_check, | 81 void BuildMapCheck(Node* receiver, Handle<Map> map, bool smi_check, |
81 Node* effect, Node* control, Node** success, Node** fail); | 82 Node* effect, Node* control, Node** success, Node** fail); |
82 | 83 |
83 void GatherReceiverTypes(Node* receiver, Node* effect, TypeFeedbackId id, | 84 void GatherReceiverTypes(Node* receiver, Node* effect, TypeFeedbackId id, |
84 Handle<Name> property, SmallMapList* maps); | 85 Handle<Name> property, SmallMapList* maps); |
85 }; | 86 }; |
86 | 87 |
87 } // namespace compiler | 88 } // namespace compiler |
88 } // namespace internal | 89 } // namespace internal |
89 } // namespace v8 | 90 } // namespace v8 |
90 | 91 |
91 #endif | 92 #endif |
OLD | NEW |