![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <code-stubs.h>


Public Types | |
| enum | InitializationState { UNINITIALIZED, INITIALIZED } |
Public Member Functions | |
| HydrogenCodeStub (InitializationState state=INITIALIZED) | |
| virtual Code::Kind | GetCodeKind () const |
| CodeStubInterfaceDescriptor * | GetInterfaceDescriptor (Isolate *isolate) |
| bool | IsUninitialized () |
| virtual void | InitializeInterfaceDescriptor (Isolate *isolate, CodeStubInterfaceDescriptor *descriptor)=0 |
| virtual Handle< Code > | GenerateCode (Isolate *isolate)=0 |
| virtual int | NotMissMinorKey ()=0 |
| Handle< Code > | GenerateLightweightMissCode (Isolate *isolate) |
| template<class StateType > | |
| void | TraceTransition (StateType from, StateType to) |
Static Public Member Functions | |
| template<class SubClass > | |
| static Handle< Code > | GetUninitialized (Isolate *isolate) |
Definition at line 382 of file code-stubs.h.
| enum InitializationState |
| Enumerator | |
|---|---|
| UNINITIALIZED | |
| INITIALIZED | |
Definition at line 384 of file code-stubs.h.
|
inlineexplicit |
Definition at line 389 of file code-stubs.h.
References HydrogenCodeStub::UNINITIALIZED.
Implemented in ElementsTransitionAndStoreStub, ToBooleanStub, InternalArrayNArgumentsConstructorStub, InternalArraySingleArgumentConstructorStub, InternalArrayNoArgumentConstructorStub, ArrayNArgumentsConstructorStub, ArraySingleArgumentConstructorStub, ArrayNoArgumentConstructorStub, TransitionElementsKindStub, KeyedStoreFastElementStub, KeyedLoadFastElementStub, KeyedLoadDictionaryElementStub, V8_FINAL< kOperandKind, kNumCachedOperands >, CompareNilICStub, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, BinaryOpICStub, StoreGlobalStub, StringLengthStub, LoadFieldStub, CreateAllocationSiteStub, FastCloneShallowObjectStub, FastCloneShallowArrayStub, V8_FINAL< kOperandKind, kNumCachedOperands >, FastNewClosureStub, V8_FINAL< kOperandKind, kNumCachedOperands >, and ToNumberStub.
Definition at line 241 of file code-stubs-hydrogen.cc.
References MacroAssembler::CodeObject(), Code::ComputeFlags(), Isolate::counters(), Isolate::factory(), v8::internal::flags, Assembler::GetCode(), HydrogenCodeStub::GetCodeKind(), Factory::NewCode(), v8::internal::NULL, and MacroAssembler::set_generating_stub().
|
inlinevirtual |
Reimplemented in ToBooleanStub, CompareNilICStub, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, BinaryOpICStub, HandlerStub, and HICStub.
Definition at line 393 of file code-stubs.h.
References v8::internal::STUB.
Referenced by HydrogenCodeStub::GenerateLightweightMissCode().
|
inline |
Definition at line 395 of file code-stubs.h.
References Isolate::code_stub_interface_descriptor().
Referenced by CodeStubGraphBuilderBase::CodeStubGraphBuilderBase().
Definition at line 402 of file code-stubs.h.
|
pure virtual |
Implemented in ElementsTransitionAndStoreStub, ToBooleanStub, InternalArrayNArgumentsConstructorStub, InternalArraySingleArgumentConstructorStub, InternalArrayNoArgumentConstructorStub, ArrayNArgumentsConstructorStub, ArraySingleArgumentConstructorStub, ArrayNoArgumentConstructorStub, TransitionElementsKindStub, KeyedStoreFastElementStub, KeyedLoadFastElementStub, KeyedLoadDictionaryElementStub, V8_FINAL< kOperandKind, kNumCachedOperands >, CompareNilICStub, V8_FINAL< kOperandKind, kNumCachedOperands >, V8_FINAL< kOperandKind, kNumCachedOperands >, BinaryOpICStub, KeyedLoadFieldStub, StoreGlobalStub, KeyedStringLengthStub, StringLengthStub, LoadFieldStub, CreateAllocationSiteStub, FastCloneShallowObjectStub, FastCloneShallowArrayStub, V8_FINAL< kOperandKind, kNumCachedOperands >, FastNewClosureStub, V8_FINAL< kOperandKind, kNumCachedOperands >, and ToNumberStub.
|
inline |
Definition at line 399 of file code-stubs.h.
|
pure virtual |
| void TraceTransition | ( | StateType | from, |
| StateType | to | ||
| ) |
Definition at line 430 of file code-stubs.cc.
References StringStream::Add(), ASSERT, and StringStream::OutputToStdOut().
Referenced by CompareNilICStub::UpdateStatus(), and ToBooleanStub::UpdateStatus().