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/globals.h" | 8 #include "src/globals.h" |
9 #include "src/type-feedback-vector.h" | 9 #include "src/type-feedback-vector.h" |
10 | 10 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 case FeedbackVectorSlotKind::KEYED_LOAD_IC: | 178 case FeedbackVectorSlotKind::KEYED_LOAD_IC: |
179 case FeedbackVectorSlotKind::STORE_SLOPPY_IC: | 179 case FeedbackVectorSlotKind::STORE_SLOPPY_IC: |
180 case FeedbackVectorSlotKind::STORE_STRICT_IC: | 180 case FeedbackVectorSlotKind::STORE_STRICT_IC: |
181 case FeedbackVectorSlotKind::KEYED_STORE_SLOPPY_IC: | 181 case FeedbackVectorSlotKind::KEYED_STORE_SLOPPY_IC: |
182 case FeedbackVectorSlotKind::KEYED_STORE_STRICT_IC: | 182 case FeedbackVectorSlotKind::KEYED_STORE_STRICT_IC: |
183 case FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC: { | 183 case FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC: { |
184 if (obj->IsWeakCell() || obj->IsFixedArray() || obj->IsString()) { | 184 if (obj->IsWeakCell() || obj->IsFixedArray() || obj->IsString()) { |
185 with++; | 185 with++; |
186 } else if (obj == megamorphic_sentinel) { | 186 } else if (obj == megamorphic_sentinel) { |
187 gen++; | 187 gen++; |
| 188 if (code_is_interpreted) with++; |
188 } | 189 } |
189 total++; | 190 total++; |
190 break; | 191 break; |
191 } | 192 } |
192 case FeedbackVectorSlotKind::INTERPRETER_BINARYOP_IC: | 193 case FeedbackVectorSlotKind::INTERPRETER_BINARYOP_IC: |
193 // If we are not running interpreted code, we need to ignore the special | 194 // If we are not running interpreted code, we need to ignore the special |
194 // IC slots for binaryop/compare used by the interpreter. | 195 // IC slots for binaryop/compare used by the interpreter. |
195 // TODO(mvstanton): Remove code_is_interpreted when full code is retired | 196 // TODO(mvstanton): Remove code_is_interpreted when full code is retired |
196 // from service. | 197 // from service. |
197 if (code_is_interpreted) { | 198 if (code_is_interpreted) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 int index = vector()->GetIndex(slot()) + 1; | 299 int index = vector()->GetIndex(slot()) + 1; |
299 vector()->set(index, feedback_extra, mode); | 300 vector()->set(index, feedback_extra, mode); |
300 } | 301 } |
301 | 302 |
302 | 303 |
303 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } | 304 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } |
304 } // namespace internal | 305 } // namespace internal |
305 } // namespace v8 | 306 } // namespace v8 |
306 | 307 |
307 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ | 308 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ |
OLD | NEW |