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_TYPE_FEEDBACK_VECTOR_H_ | 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_ |
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ | 6 #define V8_TYPE_FEEDBACK_VECTOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/checks.h" | 10 #include "src/checks.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 FeedbackVectorICSlot AddLoadICSlots(int count) { | 101 FeedbackVectorICSlot AddLoadICSlots(int count) { |
102 return AddSlots(FeedbackVectorSlotKind::LOAD_IC, count); | 102 return AddSlots(FeedbackVectorSlotKind::LOAD_IC, count); |
103 } | 103 } |
104 | 104 |
105 FeedbackVectorICSlot AddKeyedLoadICSlot() { | 105 FeedbackVectorICSlot AddKeyedLoadICSlot() { |
106 return AddSlot(FeedbackVectorSlotKind::KEYED_LOAD_IC); | 106 return AddSlot(FeedbackVectorSlotKind::KEYED_LOAD_IC); |
107 } | 107 } |
108 | 108 |
109 FeedbackVectorICSlot AddStoreICSlots(int count) { | 109 FeedbackVectorICSlot AddStoreICSlot() { |
110 return AddSlots(FeedbackVectorSlotKind::STORE_IC, count); | 110 return AddSlot(FeedbackVectorSlotKind::STORE_IC); |
111 } | 111 } |
112 | 112 |
113 FeedbackVectorSlot AddStubSlot() { | 113 FeedbackVectorSlot AddStubSlot() { |
114 int slot = slots_; | 114 int slot = slots_; |
115 increase_slots(1); | 115 increase_slots(1); |
116 return FeedbackVectorSlot(slot); | 116 return FeedbackVectorSlot(slot); |
117 } | 117 } |
118 | 118 |
119 FeedbackVectorSlot AddStubSlots(int count) { | 119 FeedbackVectorSlot AddStubSlots(int count) { |
120 int slot = slots_; | 120 int slot = slots_; |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; | 494 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; |
495 IcCheckType GetKeyType() const; | 495 IcCheckType GetKeyType() const; |
496 | 496 |
497 InlineCacheState StateFromFeedback() const override; | 497 InlineCacheState StateFromFeedback() const override; |
498 Name* FindFirstName() const override; | 498 Name* FindFirstName() const override; |
499 }; | 499 }; |
500 } | 500 } |
501 } // namespace v8::internal | 501 } // namespace v8::internal |
502 | 502 |
503 #endif // V8_TRANSITIONS_H_ | 503 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |