|
static V8_WARN_UNUSED_RESULT MaybeLocal< UnboundScript > | CompileUnboundScript (Isolate *isolate, Source *source, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason) |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Script > | Compile (Local< Context > context, Source *source, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason) |
|
static ScriptStreamingTask * | StartStreaming (Isolate *isolate, StreamedSource *source, ScriptType type=ScriptType::kClassic, CompileOptions options=kNoCompileOptions, CompileHintCallback compile_hint_callback=nullptr, void *compile_hint_callback_data=nullptr) |
|
static ConsumeCodeCacheTask * | StartConsumingCodeCache (Isolate *isolate, std::unique_ptr< CachedData > source) |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Script > | Compile (Local< Context > context, StreamedSource *source, Local< String > full_source_string, const ScriptOrigin &origin) |
|
static uint32_t | CachedDataVersionTag () |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Module > | CompileModule (Isolate *isolate, Source *source, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason) |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Module > | CompileModule (Local< Context > context, StreamedSource *v8_source, Local< String > full_source_string, const ScriptOrigin &origin) |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Function > | CompileFunctionInContext (Local< Context > context, Source *source, size_t arguments_count, Local< String > arguments[], size_t context_extension_count, Local< Object > context_extensions[], CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason, Local< ScriptOrModule > *script_or_module_out=nullptr) |
|
static V8_WARN_UNUSED_RESULT MaybeLocal< Function > | CompileFunction (Local< Context > context, Source *source, size_t arguments_count=0, Local< String > arguments[]=nullptr, size_t context_extension_count=0, Local< Object > context_extensions[]=nullptr, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason) |
|
static CachedData * | CreateCodeCache (Local< UnboundScript > unbound_script) |
|
static CachedData * | CreateCodeCache (Local< UnboundModuleScript > unbound_module_script) |
|
static CachedData * | CreateCodeCacheForFunction (Local< Function > function) |
|
For compiling scripts.
Definition at line 370 of file v8-script.h.
static uint32_t CachedDataVersionTag |
( |
| ) |
|
|
static |
Return a version tag for CachedData for the current V8 version & flags.
This value is meant only for determining whether a previously generated CachedData instance is still valid; the tag has no other meaing.
Background: The data carried by CachedData may depend on the exact V8 version number or current compiler flags. This means that when persisting CachedData, the embedder must take care to not pass in data from another V8 version, or the same version with different features enabled.
The easiest way to do so is to clear the embedder's cache on any such change.
Alternatively, this tag can be stored alongside the cached data and compared when it is being used.