V8 Project
|
#include <interface.h>
Classes | |
class | Iterator |
Public Member Functions | |
void | Add (const AstRawString *name, Interface *interface, Zone *zone, bool *ok) |
void | Unify (Interface *that, Zone *zone, bool *ok) |
void | MakeValue (bool *ok) |
void | MakeConst (bool *ok) |
void | MakeModule (bool *ok) |
void | Freeze (bool *ok) |
void | Allocate (int index) |
bool | IsUnknown () |
bool | IsValue () |
bool | IsConst () |
bool | IsModule () |
bool | IsFrozen () |
bool | IsUnified (Interface *that) |
int | Length () |
int | Index () |
Interface * | Lookup (Handle< String > name, Zone *zone) |
Iterator | iterator () const |
![]() | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Static Public Member Functions | |
static Interface * | NewUnknown (Zone *zone) |
static Interface * | NewValue () |
static Interface * | NewConst () |
static Interface * | NewModule (Zone *zone) |
Private Types | |
enum | Flags { NONE = 0 , VALUE = 1 , CONST = 2 , MODULE = 4 , FROZEN = 8 } |
Private Member Functions | |
Interface (int flags) | |
Interface * | Chase () |
void | DoAdd (const void *name, uint32_t hash, Interface *interface, Zone *zone, bool *ok) |
void | DoUnify (Interface *that, bool *ok, Zone *zone) |
Private Attributes | |
int | flags_ |
Interface * | forward_ |
ZoneHashMap * | exports_ |
int | index_ |
Definition at line 35 of file interface.h.
|
private |
|
inlineexplicitprivate |
Definition at line 194 of file interface.h.
References v8::internal::PrintF().
Referenced by NewModule(), and NewUnknown().
|
inline |
Definition at line 63 of file interface.h.
Referenced by v8::internal::Parser::ParseImportDeclaration(), and v8::internal::Parser::ParseModulePath().
|
inline |
Definition at line 97 of file interface.h.
References Chase(), DCHECK, index_, IsFrozen(), and IsModule().
|
inlineprivate |
Definition at line 205 of file interface.h.
References forward_, and NULL.
Referenced by Allocate(), DoAdd(), Freeze(), Index(), IsConst(), IsFrozen(), IsModule(), IsUnified(), IsUnknown(), IsValue(), Length(), Lookup(), MakeConst(), MakeModule(), MakeValue(), and Unify().
|
private |
Definition at line 41 of file interface.cc.
References Chase(), exports_, IsFrozen(), v8::internal::TemplateHashMapImpl< ZoneAllocationPolicy >::kDefaultHashMapCapacity, v8::internal::AstRawString::length(), v8::internal::TemplateHashMapImpl< AllocationPolicy >::Lookup(), MakeModule(), map, name, v8::internal::Zone::New(), NULL, v8::internal::TemplateHashMapImpl< ZoneAllocationPolicy >::PointersMatch(), v8::internal::PrintF(), v8::internal::AstRawString::raw_data(), and Unify().
Referenced by Add(), and DoUnify().
Definition at line 140 of file interface.cc.
References DCHECK, DoAdd(), exports_, flags_, forward_, index_, IsFrozen(), IsValue(), map, NULL, and v8::internal::TemplateHashMapImpl< AllocationPolicy >::occupancy().
Referenced by Unify().
|
inline |
|
inline |
Definition at line 133 of file interface.h.
References Chase(), DCHECK, index_, IsFrozen(), and IsModule().
Referenced by v8::internal::FullCodeGenerator::AllocateModules(), and v8::internal::ModuleInfo::Create().
|
inline |
Definition at line 112 of file interface.h.
References Chase(), CONST, and flags_.
Referenced by IsUnified(), MakeConst(), and Unify().
|
inline |
Definition at line 118 of file interface.h.
References Chase(), flags_, and FROZEN.
Referenced by Allocate(), v8::internal::Scope::AllocateModulesRecursively(), DoAdd(), DoUnify(), Index(), Length(), and MakeConst().
|
inline |
Definition at line 115 of file interface.h.
References Chase(), flags_, and MODULE.
Referenced by Allocate(), Freeze(), Index(), Length(), Lookup(), MakeConst(), and MakeValue().
Definition at line 120 of file interface.h.
References Chase(), IsConst(), and IsValue().
|
inline |
|
inline |
Definition at line 109 of file interface.h.
References Chase(), flags_, and VALUE.
Referenced by DoUnify(), Freeze(), IsUnified(), MakeModule(), and Unify().
|
inline |
Definition at line 170 of file interface.h.
References exports_.
Referenced by v8::internal::ModuleInfo::Create().
|
inline |
Definition at line 126 of file interface.h.
References Chase(), DCHECK, exports_, IsFrozen(), IsModule(), and v8::internal::TemplateHashMapImpl< AllocationPolicy >::occupancy().
Referenced by v8::internal::ModuleInfo::Create().
Definition at line 12 of file interface.cc.
References Chase(), DCHECK, exports_, IsModule(), map, name, and NULL.
|
inline |
Definition at line 79 of file interface.h.
References Chase(), CONST, flags_, IsConst(), IsFrozen(), IsModule(), and VALUE.
Referenced by Unify().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 49 of file interface.h.
References CONST, FROZEN, and VALUE.
Referenced by v8::internal::Parser::ParseEagerFunctionBody(), and v8::internal::Parser::ParseFunctionLiteral().
Definition at line 54 of file interface.h.
References Interface(), and MODULE.
Referenced by v8::internal::Parser::ParseModuleVariable().
Definition at line 40 of file interface.h.
References Interface(), and NONE.
Referenced by v8::internal::ParserTraits::ExpressionFromIdentifier(), v8::internal::Parser::ParseExportDeclaration(), and v8::internal::Parser::ParseImportDeclaration().
|
inlinestatic |
Definition at line 44 of file interface.h.
Referenced by v8::internal::Parser::DesugarLetBindingsInForStatement(), v8::internal::Parser::ParseClassDeclaration(), v8::internal::Parser::ParseForStatement(), v8::internal::Parser::ParseFunctionDeclaration(), v8::internal::Parser::ParseNativeDeclaration(), and v8::internal::Parser::ParseVariableDeclarations().
Definition at line 91 of file interface.cc.
References Chase(), DCHECK, DoUnify(), exports_, forward_, IsConst(), IsValue(), MakeConst(), MakeValue(), NULL, v8::internal::TemplateHashMapImpl< AllocationPolicy >::occupancy(), v8::internal::PrintF(), and Unify().
Referenced by DoAdd(), and Unify().
|
private |
Definition at line 191 of file interface.h.
Referenced by DoAdd(), DoUnify(), iterator(), Length(), Lookup(), and Unify().
|
private |
Definition at line 189 of file interface.h.
Referenced by DoUnify(), Freeze(), IsConst(), IsFrozen(), IsModule(), IsUnknown(), IsValue(), MakeConst(), MakeModule(), and MakeValue().
|
private |
Definition at line 190 of file interface.h.
|
private |
Definition at line 192 of file interface.h.
Referenced by Allocate(), DoUnify(), and Index().