V8 Project
|
NativesStore stores the 'native' (builtin) JS libraries. More...
Public Member Functions | |
~NativesStore () | |
int | GetBuiltinsCount () |
int | GetDebuggerCount () |
Vector< const char > | GetScriptName (int index) |
Vector< const char > | GetRawScriptSource (int index) |
int | GetIndex (const char *name) |
int | GetRawScriptsSize () |
Vector< const byte > | GetScriptsSource () |
Static Public Member Functions | |
static NativesStore * | MakeFromScriptsSource (SnapshotByteSource *source) |
Private Member Functions | |
NativesStore () | |
bool | ReadNameAndContentPair (SnapshotByteSource *bytes) |
DISALLOW_COPY_AND_ASSIGN (NativesStore) | |
Private Attributes | |
List< Vector< const char > > | native_names_ |
List< Vector< const char > > | native_source_ |
int | debugger_count_ |
NativesStore stores the 'native' (builtin) JS libraries.
NativesStore needs to be initialized before using V8, usually by the embedder calling v8::SetNativesDataBlob, which calls SetNativesFromFile below.
Definition at line 24 of file natives-external.cc.
|
inline |
Definition at line 26 of file natives-external.cc.
|
inlineprivate |
Definition at line 76 of file natives-external.cc.
Referenced by MakeFromScriptsSource().
|
private |
|
inline |
Definition at line 28 of file natives-external.cc.
References native_names_.
Referenced by v8::internal::NativesCollection< type >::GetBuiltinsCount().
|
inline |
Definition at line 29 of file natives-external.cc.
References debugger_count_.
Referenced by v8::internal::NativesCollection< type >::GetDebuggerCount().
|
inline |
Definition at line 35 of file natives-external.cc.
References DCHECK, name, and native_names_.
Referenced by v8::internal::NativesCollection< type >::GetIndex().
Definition at line 31 of file natives-external.cc.
References native_source_.
Referenced by v8::internal::NativesCollection< type >::GetRawScriptSource().
|
inline |
Definition at line 47 of file natives-external.cc.
References DCHECK.
Referenced by v8::internal::NativesCollection< type >::GetRawScriptsSize().
Definition at line 30 of file natives-external.cc.
References native_names_.
Referenced by v8::internal::NativesCollection< type >::GetScriptName().
Definition at line 52 of file natives-external.cc.
References DCHECK.
Referenced by v8::internal::NativesCollection< type >::GetScriptsSource().
|
inlinestatic |
Definition at line 57 of file natives-external.cc.
References debugger_count_, NativesStore(), and ReadNameAndContentPair().
Referenced by v8::internal::SetNativesFromFile().
|
inlineprivate |
Definition at line 78 of file natives-external.cc.
References name, native_names_, and native_source_.
Referenced by MakeFromScriptsSource().
|
private |
Definition at line 98 of file natives-external.cc.
Referenced by GetDebuggerCount(), and MakeFromScriptsSource().
Definition at line 96 of file natives-external.cc.
Referenced by GetBuiltinsCount(), GetIndex(), GetScriptName(), and ReadNameAndContentPair().
Definition at line 97 of file natives-external.cc.
Referenced by GetRawScriptSource(), and ReadNameAndContentPair().