V8 Project
|
#include <code-stubs.h>
Classes | |
class | ResultModeBits |
class | Types |
class | TypesBits |
Public Types | |
enum | Type { UNDEFINED , BOOLEAN , NULL_TYPE , SMI , SPEC_OBJECT , STRING , SYMBOL , HEAP_NUMBER , NUMBER_OF_TYPES } |
enum | ResultMode { RESULT_AS_SMI , RESULT_AS_ODDBALL , RESULT_AS_INVERSE_ODDBALL } |
![]() | |
enum | InitializationState { UNINITIALIZED , INITIALIZED } |
Public Member Functions | |
STATIC_ASSERT (NUMBER_OF_TYPES<=8) | |
ToBooleanStub (Isolate *isolate, ResultMode mode, Types types=Types()) | |
ToBooleanStub (Isolate *isolate, ExtraICState state) | |
bool | UpdateStatus (Handle< Object > object) |
Types | types () const |
ResultMode | mode () const |
virtual Code::Kind | GetCodeKind () const |
virtual void | PrintState (OStream &os) const OVERRIDE |
virtual bool | SometimesSetsUpAFrame () |
virtual ExtraICState | GetExtraICState () const |
virtual InlineCacheState | GetICState () const |
![]() | |
virtual Handle< Code > | GenerateCode ()=0 |
bool | IsUninitialized () const |
Handle< Code > | GenerateLightweightMissCode (ExternalReference miss) |
template<class StateType > | |
void | TraceTransition (StateType from, StateType to) |
Static Public Member Functions | |
static Handle< Code > | GetUninitialized (Isolate *isolate) |
![]() | |
template<class SubClass > | |
static Handle< Code > | GetUninitialized (Isolate *isolate) |
Private Member Functions | |
ToBooleanStub (Isolate *isolate, InitializationState init_state) | |
DEFINE_CALL_INTERFACE_DESCRIPTOR (ToBoolean) | |
DEFINE_HYDROGEN_CODE_STUB (ToBoolean, HydrogenCodeStub) | |
Additional Inherited Members | |
![]() | |
HydrogenCodeStub (Isolate *isolate, InitializationState state=INITIALIZED) | |
void | set_sub_minor_key (uint32_t key) |
uint32_t | sub_minor_key () const |
![]() | |
static const int | kSubMinorKeyBits = kStubMinorKeyBits - 1 |
Definition at line 2199 of file code-stubs.h.
Enumerator | |
---|---|
RESULT_AS_SMI | |
RESULT_AS_ODDBALL | |
RESULT_AS_INVERSE_ODDBALL |
Definition at line 2213 of file code-stubs.h.
Enumerator | |
---|---|
UNDEFINED | |
BOOLEAN | |
NULL_TYPE | |
SMI | |
SPEC_OBJECT | |
STRING | |
SYMBOL | |
HEAP_NUMBER | |
NUMBER_OF_TYPES |
Definition at line 2201 of file code-stubs.h.
|
inline |
Definition at line 2237 of file code-stubs.h.
References v8::internal::BitFieldBase< T, shift, size, U >::encode(), mode(), v8::internal::HydrogenCodeStub::set_sub_minor_key(), v8::internal::ToBooleanStub::Types::ToByte(), and types().
Referenced by GetUninitialized().
|
inline |
Definition at line 2243 of file code-stubs.h.
References v8::internal::BitFieldBase< T, shift, size, U >::encode(), RESULT_AS_SMI, and v8::internal::HydrogenCodeStub::set_sub_minor_key().
|
inlineprivate |
Definition at line 2273 of file code-stubs.h.
References v8::internal::BitFieldBase< T, shift, size, U >::encode(), RESULT_AS_SMI, and v8::internal::HydrogenCodeStub::set_sub_minor_key().
|
private |
|
private |
|
inlinevirtual |
Reimplemented from v8::internal::HydrogenCodeStub.
Definition at line 2253 of file code-stubs.h.
|
inlinevirtual |
Definition at line 2262 of file code-stubs.h.
References v8::internal::EnumSet< E, T >::ToIntegral(), and types().
|
inlinevirtual |
Definition at line 2264 of file code-stubs.h.
References v8::internal::MONOMORPHIC, types(), and v8::internal::UNINITIALIZED.
Definition at line 2258 of file code-stubs.h.
References ToBooleanStub(), and v8::internal::HydrogenCodeStub::UNINITIALIZED.
|
inline |
Definition at line 2251 of file code-stubs.h.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::HydrogenCodeStub::sub_minor_key().
Referenced by v8::internal::CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), and ToBooleanStub().
|
virtual |
Definition at line 846 of file code-stubs.cc.
References types().
|
inlinevirtual |
Definition at line 2256 of file code-stubs.h.
v8::internal::ToBooleanStub::STATIC_ASSERT | ( | NUMBER_OF_TYPES<= | 8 | ) |
|
inline |
Definition at line 2250 of file code-stubs.h.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::HydrogenCodeStub::sub_minor_key().
Referenced by v8::internal::CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), GetExtraICState(), GetICState(), PrintState(), ToBooleanStub(), and UpdateStatus().
Definition at line 836 of file code-stubs.cc.
References v8::internal::HydrogenCodeStub::set_sub_minor_key(), v8::internal::HydrogenCodeStub::sub_minor_key(), v8::internal::ToBooleanStub::Types::ToByte(), v8::internal::HydrogenCodeStub::TraceTransition(), types(), v8::internal::BitFieldBase< T, shift, size, U >::update(), and v8::internal::ToBooleanStub::Types::UpdateStatus().
Referenced by v8::internal::ToBooleanIC::ToBoolean().