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_FEEDBACK_VECTOR_INL_H_ | 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_ |
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_ | 6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_ |
7 | 7 |
8 #include "src/type-feedback-vector.h" | 8 #include "src/type-feedback-vector.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void FeedbackNexus::SetFeedbackExtra(Object* feedback_extra, | 160 void FeedbackNexus::SetFeedbackExtra(Object* feedback_extra, |
161 WriteBarrierMode mode) { | 161 WriteBarrierMode mode) { |
162 DCHECK(TypeFeedbackVector::elements_per_ic_slot() > 1); | 162 DCHECK(TypeFeedbackVector::elements_per_ic_slot() > 1); |
163 int index = vector()->GetIndex(slot()) + 1; | 163 int index = vector()->GetIndex(slot()) + 1; |
164 vector()->set(index, feedback_extra, mode); | 164 vector()->set(index, feedback_extra, mode); |
165 } | 165 } |
166 | 166 |
167 | 167 |
168 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } | 168 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } |
169 } | 169 } // namespace internal |
170 } // namespace v8::internal | 170 } // namespace v8 |
171 | 171 |
172 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ | 172 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ |
OLD | NEW |