| 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 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 int TypeFeedbackVector::ic_metadata_length() const { |
| 14 return FLAG_vector_ics ? VectorICComputer::word_count(ICSlots()) : 0; |
| 15 } |
| 16 |
| 17 |
| 13 Handle<Object> TypeFeedbackVector::UninitializedSentinel(Isolate* isolate) { | 18 Handle<Object> TypeFeedbackVector::UninitializedSentinel(Isolate* isolate) { |
| 14 return isolate->factory()->uninitialized_symbol(); | 19 return isolate->factory()->uninitialized_symbol(); |
| 15 } | 20 } |
| 16 | 21 |
| 17 | 22 |
| 18 Handle<Object> TypeFeedbackVector::MegamorphicSentinel(Isolate* isolate) { | 23 Handle<Object> TypeFeedbackVector::MegamorphicSentinel(Isolate* isolate) { |
| 19 return isolate->factory()->megamorphic_symbol(); | 24 return isolate->factory()->megamorphic_symbol(); |
| 20 } | 25 } |
| 21 | 26 |
| 22 | 27 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 } | 41 } |
| 37 | 42 |
| 38 | 43 |
| 39 Object* TypeFeedbackVector::RawUninitializedSentinel(Heap* heap) { | 44 Object* TypeFeedbackVector::RawUninitializedSentinel(Heap* heap) { |
| 40 return heap->uninitialized_symbol(); | 45 return heap->uninitialized_symbol(); |
| 41 } | 46 } |
| 42 } | 47 } |
| 43 } // namespace v8::internal | 48 } // namespace v8::internal |
| 44 | 49 |
| 45 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ | 50 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ |
| OLD | NEW |