| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 JSTypeFeedbackSpecializer(JSGraph* jsgraph, | 51 JSTypeFeedbackSpecializer(JSGraph* jsgraph, |
| 52 JSTypeFeedbackTable* js_type_feedback, | 52 JSTypeFeedbackTable* js_type_feedback, |
| 53 TypeFeedbackOracle* oracle) | 53 TypeFeedbackOracle* oracle) |
| 54 : jsgraph_(jsgraph), | 54 : jsgraph_(jsgraph), |
| 55 simplified_(jsgraph->graph()->zone()), | 55 simplified_(jsgraph->graph()->zone()), |
| 56 js_type_feedback_(js_type_feedback), | 56 js_type_feedback_(js_type_feedback), |
| 57 oracle_(oracle) { | 57 oracle_(oracle) { |
| 58 CHECK(js_type_feedback); | 58 CHECK(js_type_feedback); |
| 59 } | 59 } |
| 60 | 60 |
| 61 Reduction Reduce(Node* node) OVERRIDE; | 61 Reduction Reduce(Node* node) override; |
| 62 | 62 |
| 63 // Visible for unit testing. | 63 // Visible for unit testing. |
| 64 Reduction ReduceJSLoadNamed(Node* node); | 64 Reduction ReduceJSLoadNamed(Node* node); |
| 65 Reduction ReduceJSLoadProperty(Node* node); | 65 Reduction ReduceJSLoadProperty(Node* node); |
| 66 Reduction ReduceJSStoreNamed(Node* node); | 66 Reduction ReduceJSStoreNamed(Node* node); |
| 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_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 83 | 83 |
| 84 void GatherReceiverTypes(Node* receiver, Node* effect, TypeFeedbackId id, | 84 void GatherReceiverTypes(Node* receiver, Node* effect, TypeFeedbackId id, |
| 85 Handle<Name> property, SmallMapList* maps); | 85 Handle<Name> property, SmallMapList* maps); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace compiler | 88 } // namespace compiler |
| 89 } // namespace internal | 89 } // namespace internal |
| 90 } // namespace v8 | 90 } // namespace v8 |
| 91 | 91 |
| 92 #endif | 92 #endif |
| OLD | NEW |