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
3 // found in the LICENSE file.
5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_
8 #include "src/type-feedback-vector.h"
13 int TypeFeedbackVector::ic_metadata_length() const {
14 return FLAG_vector_ics ? VectorICComputer::word_count(ICSlots()) : 0;
18 Handle<Object> TypeFeedbackVector::UninitializedSentinel(Isolate* isolate) {
19 return isolate->factory()->uninitialized_symbol();
23 Handle<Object> TypeFeedbackVector::MegamorphicSentinel(Isolate* isolate) {
24 return isolate->factory()->megamorphic_symbol();
28 Handle<Object> TypeFeedbackVector::PremonomorphicSentinel(Isolate* isolate) {
29 return isolate->factory()->premonomorphic_symbol();
33 Handle<Object> TypeFeedbackVector::GenericSentinel(Isolate* isolate) {
34 return isolate->factory()->generic_symbol();
38 Handle<Object> TypeFeedbackVector::MonomorphicArraySentinel(
39 Isolate* isolate, ElementsKind elements_kind) {
40 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
44 Object* TypeFeedbackVector::RawUninitializedSentinel(Heap* heap) {
45 return heap->uninitialized_symbol();
48 } // namespace v8::internal
50 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_