| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_TYPE_INFO_H_ | 5 #ifndef V8_TYPE_INFO_H_ |
| 6 #define V8_TYPE_INFO_H_ | 6 #define V8_TYPE_INFO_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/contexts.h" | 9 #include "src/contexts.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, | 59 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, |
| 60 SmallMapList* receiver_types, | 60 SmallMapList* receiver_types, |
| 61 KeyedAccessStoreMode* store_mode, | 61 KeyedAccessStoreMode* store_mode, |
| 62 IcCheckType* key_type); | 62 IcCheckType* key_type); |
| 63 void KeyedAssignmentReceiverTypes(FeedbackVectorICSlot slot, | 63 void KeyedAssignmentReceiverTypes(FeedbackVectorICSlot slot, |
| 64 SmallMapList* receiver_types, | 64 SmallMapList* receiver_types, |
| 65 KeyedAccessStoreMode* store_mode, | 65 KeyedAccessStoreMode* store_mode, |
| 66 IcCheckType* key_type); | 66 IcCheckType* key_type); |
| 67 void CountReceiverTypes(TypeFeedbackId id, | 67 void CountReceiverTypes(TypeFeedbackId id, |
| 68 SmallMapList* receiver_types); | 68 SmallMapList* receiver_types); |
| 69 void CountReceiverTypes(FeedbackVectorICSlot slot, |
| 70 SmallMapList* receiver_types); |
| 69 | 71 |
| 70 void CollectReceiverTypes(FeedbackVectorICSlot slot, SmallMapList* types); | 72 void CollectReceiverTypes(FeedbackVectorICSlot slot, SmallMapList* types); |
| 71 void CollectReceiverTypes(TypeFeedbackId id, | 73 void CollectReceiverTypes(TypeFeedbackId id, |
| 72 SmallMapList* types); | 74 SmallMapList* types); |
| 73 template <class T> | 75 template <class T> |
| 74 void CollectReceiverTypes(T* obj, SmallMapList* types); | 76 void CollectReceiverTypes(T* obj, SmallMapList* types); |
| 75 | 77 |
| 76 static bool IsRelevantFeedback(Map* map, Context* native_context) { | 78 static bool IsRelevantFeedback(Map* map, Context* native_context) { |
| 77 Object* constructor = map->GetConstructor(); | 79 Object* constructor = map->GetConstructor(); |
| 78 return !constructor->IsJSFunction() || | 80 return !constructor->IsJSFunction() || |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Zone* zone_; | 151 Zone* zone_; |
| 150 Handle<UnseededNumberDictionary> dictionary_; | 152 Handle<UnseededNumberDictionary> dictionary_; |
| 151 Handle<TypeFeedbackVector> feedback_vector_; | 153 Handle<TypeFeedbackVector> feedback_vector_; |
| 152 | 154 |
| 153 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 155 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } } // namespace v8::internal | 158 } } // namespace v8::internal |
| 157 | 159 |
| 158 #endif // V8_TYPE_INFO_H_ | 160 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |