5 #ifndef V8_BOOTSTRAPPER_H_ 6 #define V8_BOOTSTRAPPER_H_ 8 #include "src/heap/factory.h" 9 #include "src/objects/fixed-array.h" 10 #include "src/objects/shared-function-info.h" 11 #include "src/objects/slots.h" 12 #include "src/snapshot/natives.h" 13 #include "src/visitors.h" 27 void Initialize(
Isolate* isolate,
bool create_heap_objects);
43 enum GlobalContextType { FULL_CONTEXT, DEBUG_CONTEXT };
49 static void InitializeOncePerProcess();
50 static void TearDownExtensions();
53 void Initialize(
bool create_heap_objects);
61 v8::ExtensionConfiguration* extensions,
size_t context_snapshot_index,
62 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer,
63 GlobalContextType context_type = FULL_CONTEXT);
79 bool IsActive()
const {
return nesting_ != 0; }
82 static int ArchiveSpacePerThread();
83 char* ArchiveState(
char* to);
84 char* RestoreState(
char* from);
85 void FreeThreadResources();
89 v8::ExtensionConfiguration* extensions);
96 static bool CompileBuiltin(
Isolate* isolate,
int index);
97 static bool CompileExtraBuiltin(
Isolate* isolate,
int index);
98 static bool CompileExperimentalExtraBuiltin(
Isolate* isolate,
int index);
117 static v8::Extension* free_buffer_extension_;
118 static v8::Extension* gc_extension_;
119 static v8::Extension* externalize_string_extension_;
120 static v8::Extension* statistics_extension_;
121 static v8::Extension* trigger_failure_extension_;
122 static v8::Extension* ignition_statistics_extension_;
130 : bootstrapper_(bootstrapper) {
131 ++bootstrapper_->nesting_;
135 --bootstrapper_->nesting_;
147 #endif // V8_BOOTSTRAPPER_H_