V8 Project
type-feedback-vector-inl.h
Go to the documentation of this file.
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.
4 
5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_
7 
9 
10 namespace v8 {
11 namespace internal {
12 
14  return isolate->factory()->uninitialized_symbol();
15 }
16 
17 
19  return isolate->factory()->megamorphic_symbol();
20 }
21 
22 
24  return isolate->factory()->megamorphic_symbol();
25 }
26 
27 
29  return isolate->factory()->generic_symbol();
30 }
31 
32 
34  Isolate* isolate, ElementsKind elements_kind) {
35  return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate);
36 }
37 
38 
40  return heap->uninitialized_symbol();
41 }
42 }
43 } // namespace v8::internal
44 
45 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_
Factory * factory()
Definition: isolate.h:982
static Smi * FromInt(int value)
Definition: objects-inl.h:1321
static Handle< Object > UninitializedSentinel(Isolate *isolate)
static Handle< Object > PremonomorphicSentinel(Isolate *isolate)
static Handle< Object > MegamorphicSentinel(Isolate *isolate)
static Handle< Object > MonomorphicArraySentinel(Isolate *isolate, ElementsKind elements_kind)
static Handle< Object > GenericSentinel(Isolate *isolate)
static Object * RawUninitializedSentinel(Heap *heap)
Debugger support for the V8 JavaScript engine.
Definition: accessors.cc:20