Lines Matching defs:data

15 #include "v8-data.h"          // NOLINT(build/include_directory)
152 V8_INLINE static ModuleRequest* Cast(Data* data);
313 V8_INLINE static Module* Cast(Data* data);
369 * Compilation data that the embedder can cache and pass back to speed up
370 * future compilations. The data is produced if the CompilerOptions passed to
372 * = true. The data to cache can then can be retrieved from
379 : data(nullptr),
385 // data and guarantees that it stays alive until the CachedData object is
386 // destroyed. If the policy is BufferOwned, the given data will be deleted
388 CachedData(const uint8_t* data, int length,
392 // which will be called when V8 no longer needs the data.
393 const uint8_t* data;
409 // The caller *must* ensure that the cached data is from a trusted source.
441 // Cached data from previous compilation (if a kConsume*Cache flag is
442 // set), or hold newly generated cache data (kProduce*Cache flags) are
453 * For streaming incomplete script data to V8. The embedder should implement a
461 * V8 calls this to request the next chunk of data from the embedder. This
463 * wait for the data, if the embedder doesn't have data yet. Returns the
464 * length of the data returned. When the data ends, GetMoreData should
465 * return 0. Caller takes ownership of the data.
467 * When streaming UTF-8 data, V8 handles multi-byte characters split between
468 * two data chunks, but doesn't handle multi-byte characters split between
469 * more than two data chunks. The embedder can avoid this problem by always
470 * returning at least 2 bytes of data.
472 * When streaming UTF-16 data, V8 does not handle characters split between
473 * two data chunks. The embedder has to make sure that chunks have an even
477 * GetMoreData call return 0. V8 will interpret it as end of data (and most
479 * V8 has parsed the data it received so far.
519 explicit ScriptStreamingTask(internal::ScriptStreamingData* data)
520 : data_(data) {}
560 * Merges newly deserialized data into an existing script which was found
606 * Cached data as part of the source object can be optionally produced to be
609 * Note that when producing cached data, the source must point to NULL for
610 * cached data. When consuming cached data, the cached data must have been
612 * cached data is the correct one for the given script.
627 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile()
640 * Returns a task which streams script data into V8, or NULL if the script
643 * script, and it will request data from the StreamedSource as needed. When
644 * ScriptStreamingTask::Run exits, all data has been streamed and the script
647 * This API allows to start the streaming with as little data as possible, and
648 * the remaining data (for example, the ScriptOrigin) is passed to Compile.
675 * Background: The data carried by CachedData may depend on the exact
678 * data from another V8 version, or the same version with different
684 * Alternatively, this tag can be stored alongside the cached data and
775 CachedData* data,
784 cached_data(data),
787 ScriptCompiler::Source::Source(Local<String> string, CachedData* data,
790 cached_data(data),
815 ModuleRequest* ModuleRequest::Cast(Data* data) {
817 CheckCast(data);
819 return reinterpret_cast<ModuleRequest*>(data);
822 Module* Module::Cast(Data* data) {
824 CheckCast(data);
826 return reinterpret_cast<Module*>(data);