Loading...
Searching...
No Matches
v8-script.h
Go to the documentation of this file.
1// Copyright 2021 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef INCLUDE_V8_SCRIPT_H_
6#define INCLUDE_V8_SCRIPT_H_
7
8#include <stddef.h>
9#include <stdint.h>
10
11#include <memory>
12#include <tuple>
13#include <vector>
14
15#include "v8-callbacks.h" // NOLINT(build/include_directory)
16#include "v8-data.h" // NOLINT(build/include_directory)
17#include "v8-local-handle.h" // NOLINT(build/include_directory)
18#include "v8-maybe.h" // NOLINT(build/include_directory)
19#include "v8-memory-span.h" // NOLINT(build/include_directory)
20#include "v8-message.h" // NOLINT(build/include_directory)
21#include "v8config.h" // NOLINT(build/include_directory)
22
23namespace v8 {
24
25class Function;
26class Message;
27class Object;
28class PrimitiveArray;
29class Script;
30
31namespace internal {
32class BackgroundDeserializeTask;
33struct ScriptStreamingData;
34} // namespace internal
35
43 public:
49
55};
56
61 public:
66
67 /*
68 * A unique id.
69 */
70 int ScriptId() const;
71 V8_DEPRECATE_SOON("Use ScriptId")
72 int GetId() const;
73
74 Local<Value> GetScriptName();
75
79 Local<Value> GetSourceURL();
83 Local<Value> GetSourceMappingURL();
84
89 int GetLineNumber(int code_pos = 0);
90
95 int GetColumnNumber(int code_pos = 0);
96
97 static const int kNoScriptId = 0;
98};
99
104 public:
113
114 /*
115 * A unique id.
116 */
117 int ScriptId() const;
118
119 static const int kNoScriptId = 0;
120};
121
122static_assert(UnboundModuleScript::kNoScriptId == UnboundScript::kNoScriptId);
123
128 public:
129 int GetLineNumber() { return line_number_; }
130 int GetColumnNumber() { return column_number_; }
131
132 Location(int line_number, int column_number)
133 : line_number_(line_number), column_number_(column_number) {}
134
135 private:
136 int line_number_;
137 int column_number_;
138};
139
141 public:
146
151
156 int GetSourceOffset() const;
157
172
173 V8_DEPRECATED("Use GetImportAttributes instead")
174 Local<FixedArray> GetImportAssertions() const {
175 return GetImportAttributes();
176 }
177
178 V8_INLINE static ModuleRequest* Cast(Data* data);
179
180 private:
181 static void CheckCast(Data* obj);
182};
183
187class V8_EXPORT Module : public Data {
188 public:
196 enum Status {
202 kErrored
203 };
204
211
216
221
226
232
236 int GetIdentityHash() const;
237
239 Local<Context> context, Local<String> specifier,
240 Local<FixedArray> import_attributes, Local<Module> referrer);
242 Local<Context> context, Local<String> specifier,
243 Local<FixedArray> import_attributes, Local<Module> referrer);
244
246 Local<Context> context, size_t module_request_index,
247 Local<Module> referrer);
249 Local<Context> context, size_t module_request_index,
250 Local<Module> referrer);
251
260 Local<Context> context, ResolveModuleCallback module_callback,
261 ResolveSourceCallback source_callback = nullptr);
262
270 Local<Context> context, ResolveModuleByIndexCallback module_callback,
271 ResolveSourceByIndexCallback source_callback = nullptr);
272
284
291
299
305 int ScriptId() const;
306
313 bool IsGraphAsync() const;
314
320 bool HasTopLevelAwait() const;
321
325 bool IsSourceTextModule() const;
326
330 bool IsSyntheticModule() const;
331
332 /*
333 * Callback defined in the embedder. This is responsible for setting
334 * the module's exported values with calls to SetSyntheticModuleExport().
335 * The callback must return a resolved Promise to indicate success (where no
336 * exception was thrown) and return an empy MaybeLocal to indicate falure
337 * (where an exception was thrown).
338 */
341
350 Isolate* isolate, Local<String> module_name,
351 const MemorySpan<const Local<String>>& export_names,
352 SyntheticModuleEvaluationSteps evaluation_steps);
353
362 Isolate* isolate, Local<String> export_name, Local<Value> export_value);
363
371 std::pair<LocalVector<Module>, LocalVector<Message>>
373
374 V8_INLINE static Module* Cast(Data* data);
375
376 private:
377 static void CheckCast(Data* obj);
378};
379
381 public:
385 std::vector<int> GetCompileHints(Isolate* isolate) const;
386};
387
392class V8_EXPORT Script : public Data {
393 public:
398 Local<Context> context, Local<String> source,
399 ScriptOrigin* origin = nullptr);
400
408 Local<Data> host_defined_options);
409
414
418 int ScriptId() const;
419
425
430 V8_DEPRECATE_SOON("Use GetCompileHintsCollector instead")
431 std::vector<int> GetProducedCompileHints() const;
432
438 Local<CompileHintsCollector> GetCompileHintsCollector() const;
439};
440
442
447 public:
449
458 enum BufferPolicy { BufferNotOwned, BufferOwned };
459
461 : data(nullptr),
462 length(0),
463 rejected(false),
464 buffer_policy(BufferNotOwned) {}
465
466 // If buffer_policy is BufferNotOwned, the caller keeps the ownership of
467 // data and guarantees that it stays alive until the CachedData object is
468 // destroyed. If the policy is BufferOwned, the given data will be deleted
469 // (with delete[]) when the CachedData object is destroyed.
470 CachedData(const uint8_t* data, int length,
471 BufferPolicy buffer_policy = BufferNotOwned);
473
475 // Don't change order/existing values of this enum since it keys into the
476 // `code_cache_reject_reason` histogram. Append-only!
478 kMagicNumberMismatch = 1,
479 kVersionMismatch = 2,
480 kSourceMismatch = 3,
481 kFlagsMismatch = 5,
482 kChecksumMismatch = 6,
483 kInvalidHeader = 7,
484 kLengthMismatch = 8,
485 kReadOnlySnapshotChecksumMismatch = 9,
486
487 // This should always point at the last real enum value.
488 kLast = kReadOnlySnapshotChecksumMismatch
489 };
490
491 // Check if the CachedData can be loaded in the given isolate.
493
494 // TODO(marja): Async compilation; add constructors which take a callback
495 // which will be called when V8 no longer needs the data.
496 const uint8_t* data;
500
501 // Prevent copying.
502 CachedData(const CachedData&) = delete;
503 CachedData& operator=(const CachedData&) = delete;
504 };
505
507 // V8 did not attempt to find this script in its in-memory cache.
508 kNotAttempted,
509
510 // V8 found a previously compiled copy of this script in its in-memory
511 // cache. Any data generated by a streaming compilation or background
512 // deserialization was abandoned.
513 kHit,
514
515 // V8 didn't have any previously compiled data for this script.
516 kMiss,
517
518 // V8 had some previously compiled data for an identical script, but the
519 // data was incomplete.
520 kPartial,
521 };
522
523 // Details about what happened during a compilation.
525 InMemoryCacheResult in_memory_cache_result =
526 InMemoryCacheResult::kNotAttempted;
527
528 static constexpr int64_t kTimeNotMeasured = -1;
529 int64_t foreground_time_in_microseconds = kTimeNotMeasured;
530 int64_t background_time_in_microseconds = kTimeNotMeasured;
531 };
532
536 class Source {
537 public:
538 // Source takes ownership of both CachedData and CodeCacheConsumeTask.
539 // The caller *must* ensure that the cached data is from a trusted source.
540 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
541 CachedData* cached_data = nullptr,
542 ConsumeCodeCacheTask* consume_cache_task = nullptr);
543 // Source takes ownership of both CachedData and CodeCacheConsumeTask.
544 V8_INLINE explicit Source(
545 Local<String> source_string, CachedData* cached_data = nullptr,
546 ConsumeCodeCacheTask* consume_cache_task = nullptr);
547 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
548 CompileHintCallback callback, void* callback_data);
549 V8_INLINE ~Source() = default;
550
551 // Ownership of the CachedData or its buffers is *not* transferred to the
552 // caller. The CachedData object is alive as long as the Source object is
553 // alive.
554 V8_INLINE const CachedData* GetCachedData() const;
555
556 V8_INLINE const ScriptOriginOptions& GetResourceOptions() const;
557
558 V8_INLINE const CompilationDetails& GetCompilationDetails() const;
559
560 private:
561 friend class ScriptCompiler;
562
563 Local<String> source_string;
564
565 // Origin information
566 Local<Value> resource_name;
567 int resource_line_offset = -1;
568 int resource_column_offset = -1;
569 ScriptOriginOptions resource_options;
570 Local<Value> source_map_url;
571 Local<Data> host_defined_options;
572
573 // Cached data from previous compilation (if a kConsume*Cache flag is
574 // set), or hold newly generated cache data (kProduce*Cache flags) are
575 // set when calling a compile method.
576 std::unique_ptr<CachedData> cached_data;
577 std::unique_ptr<ConsumeCodeCacheTask> consume_cache_task;
578
579 // For requesting compile hints from the embedder.
580 CompileHintCallback compile_hint_callback = nullptr;
581 void* compile_hint_callback_data = nullptr;
582
583 // V8 writes this data and never reads it. It exists only to be informative
584 // to the embedder.
585 CompilationDetails compilation_details;
586 };
587
593 public:
594 virtual ~ExternalSourceStream() = default;
595
617 virtual size_t GetMoreData(const uint8_t** src) = 0;
618 };
619
627 public:
628 enum Encoding { ONE_BYTE, TWO_BYTE, UTF8, WINDOWS_1252 };
629
630 StreamedSource(std::unique_ptr<ExternalSourceStream> source_stream,
631 Encoding encoding);
633
634 internal::ScriptStreamingData* impl() const { return impl_.get(); }
635
636 // Prevent copying.
639
640 CompilationDetails& compilation_details() { return compilation_details_; }
641
642 private:
643 std::unique_ptr<internal::ScriptStreamingData> impl_;
644
645 // V8 writes this data and never reads it. It exists only to be informative
646 // to the embedder.
647 CompilationDetails compilation_details_;
648 };
649
655 public:
656 void Run();
657
658 private:
659 friend class ScriptCompiler;
660
661 explicit ScriptStreamingTask(internal::ScriptStreamingData* data)
662 : data_(data) {}
663
664 internal::ScriptStreamingData* data_;
665 };
666
673 public:
675
676 void Run();
677
691 void SourceTextAvailable(Isolate* isolate, Local<String> source_text,
692 const ScriptOrigin& origin);
693
700
707
708 private:
709 friend class ScriptCompiler;
710
711 explicit ConsumeCodeCacheTask(
712 std::unique_ptr<internal::BackgroundDeserializeTask> impl);
713
714 std::unique_ptr<internal::BackgroundDeserializeTask> impl_;
715 };
716
718 kNoCompileOptions = 0,
719 kConsumeCodeCache = 1 << 0,
720 kEagerCompile = 1 << 1,
721 kProduceCompileHints = 1 << 2,
722 kConsumeCompileHints = 1 << 3,
723 kFollowCompileHintsMagicComment = 1 << 4,
724 kFollowCompileHintsPerFunctionMagicComment = 1 << 5,
725 };
726
727 static inline bool CompileOptionsIsValid(CompileOptions compile_options) {
728 // kConsumeCodeCache is mutually exclusive with all other flag bits.
729 if ((compile_options & kConsumeCodeCache) &&
730 compile_options != kConsumeCodeCache) {
731 return false;
732 }
733 // kEagerCompile is mutually exclusive with all other flag bits.
734 if ((compile_options & kEagerCompile) && compile_options != kEagerCompile) {
735 return false;
736 }
737 // We don't currently support producing and consuming compile hints at the
738 // same time.
739 constexpr int produce_and_consume = CompileOptions::kProduceCompileHints |
740 CompileOptions::kConsumeCompileHints;
741 if ((compile_options & produce_and_consume) == produce_and_consume) {
742 return false;
743 }
744 return true;
745 }
746
751 kNoCacheNoReason = 0,
767 };
768
784 Isolate* isolate, Source* source,
785 CompileOptions options = kNoCompileOptions,
786 NoCacheReason no_cache_reason = kNoCacheNoReason);
787
800 Local<Context> context, Source* source,
801 CompileOptions options = kNoCompileOptions,
802 NoCacheReason no_cache_reason = kNoCacheNoReason);
803
816 Isolate* isolate, StreamedSource* source,
817 ScriptType type = ScriptType::kClassic,
818 CompileOptions options = kNoCompileOptions,
819 CompileHintCallback compile_hint_callback = nullptr,
820 void* compile_hint_callback_data = nullptr);
821
823 Isolate* isolate, std::unique_ptr<CachedData> source);
825 Isolate* isolate, std::unique_ptr<CachedData> source);
826
835 Local<Context> context, StreamedSource* source,
836 Local<String> full_source_string, const ScriptOrigin& origin);
837
856 static uint32_t CachedDataVersionTag();
857
866 Isolate* isolate, Source* source,
867 CompileOptions options = kNoCompileOptions,
868 NoCacheReason no_cache_reason = kNoCacheNoReason);
869
878 Local<Context> context, StreamedSource* v8_source,
879 Local<String> full_source_string, const ScriptOrigin& origin);
880
892 Local<Context> context, Source* source, size_t arguments_count = 0,
893 Local<String> arguments[] = nullptr, size_t context_extension_count = 0,
894 Local<Object> context_extensions[] = nullptr,
895 CompileOptions options = kNoCompileOptions,
896 NoCacheReason no_cache_reason = kNoCacheNoReason);
897
904
911 Local<UnboundModuleScript> unbound_module_script);
912
920
921 private:
922 static V8_WARN_UNUSED_RESULT MaybeLocal<UnboundScript> CompileUnboundInternal(
923 Isolate* isolate, Source* source, CompileOptions options,
924 NoCacheReason no_cache_reason);
925
926 static V8_WARN_UNUSED_RESULT MaybeLocal<Function> CompileFunctionInternal(
927 Local<Context> context, Source* source, size_t arguments_count,
928 Local<String> arguments[], size_t context_extension_count,
929 Local<Object> context_extensions[], CompileOptions options,
930 NoCacheReason no_cache_reason,
931 Local<ScriptOrModule>* script_or_module_out);
932};
933
934ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
935 CachedData* data,
936 ConsumeCodeCacheTask* consume_cache_task)
937 : source_string(string),
938 resource_name(origin.ResourceName()),
939 resource_line_offset(origin.LineOffset()),
940 resource_column_offset(origin.ColumnOffset()),
941 resource_options(origin.Options()),
942 source_map_url(origin.SourceMapUrl()),
943 host_defined_options(origin.GetHostDefinedOptions()),
944 cached_data(data),
945 consume_cache_task(consume_cache_task) {}
946
948 ConsumeCodeCacheTask* consume_cache_task)
949 : source_string(string),
950 cached_data(data),
951 consume_cache_task(consume_cache_task) {}
952
954 CompileHintCallback callback,
955 void* callback_data)
956 : source_string(string),
957 resource_name(origin.ResourceName()),
958 resource_line_offset(origin.LineOffset()),
959 resource_column_offset(origin.ColumnOffset()),
960 resource_options(origin.Options()),
961 source_map_url(origin.SourceMapUrl()),
962 host_defined_options(origin.GetHostDefinedOptions()),
963 compile_hint_callback(callback),
964 compile_hint_callback_data(callback_data) {}
965
967 const {
968 return cached_data.get();
969}
970
972 return resource_options;
973}
974
977 return compilation_details;
978}
979
981#ifdef V8_ENABLE_CHECKS
982 CheckCast(data);
983#endif
984 return reinterpret_cast<ModuleRequest*>(data);
985}
986
988#ifdef V8_ENABLE_CHECKS
989 CheckCast(data);
990#endif
991 return reinterpret_cast<Module*>(data);
992}
993
994} // namespace v8
995
996#endif // INCLUDE_V8_SCRIPT_H_
Definition: v8-script.h:380
std::vector< int > GetCompileHints(Isolate *isolate) const
Definition: v8-data.h:18
Definition: v8-data.h:77
Definition: v8-isolate.h:291
Definition: v8-local-handle.h:594
Definition: v8-local-handle.h:366
Definition: v8-script.h:127
int GetLineNumber()
Definition: v8-script.h:129
Location(int line_number, int column_number)
Definition: v8-script.h:132
int GetColumnNumber()
Definition: v8-script.h:130
Definition: v8-local-handle.h:734
Definition: v8-maybe.h:39
Definition: v8-memory-span.h:48
Definition: v8-script.h:140
static ModuleRequest * Cast(Data *data)
Definition: v8-script.h:980
Local< FixedArray > GetImportAttributes() const
Local< String > GetSpecifier() const
ModuleImportPhase GetPhase() const
int GetSourceOffset() const
Definition: v8-script.h:187
Local< Value > GetResourceName() const
Location SourceOffsetToLocation(int offset) const
MaybeLocal< Value > Evaluate(Local< Context > context)
Local< Value > GetModuleNamespace()
Maybe< bool > InstantiateModule(Local< Context > context, ResolveModuleByIndexCallback module_callback, ResolveSourceByIndexCallback source_callback=nullptr)
Maybe< bool > SetSyntheticModuleExport(Isolate *isolate, Local< String > export_name, Local< Value > export_value)
Local< FixedArray > GetModuleRequests() const
bool IsGraphAsync() const
bool HasTopLevelAwait() const
int ScriptId() const
Status GetStatus() const
bool IsSyntheticModule() const
Local< Value > GetException() const
std::pair< LocalVector< Module >, LocalVector< Message > > GetStalledTopLevelAwaitMessages(Isolate *isolate)
Status
Definition: v8-script.h:196
@ kInstantiating
Definition: v8-script.h:198
@ kInstantiated
Definition: v8-script.h:199
@ kUninstantiated
Definition: v8-script.h:197
@ kEvaluating
Definition: v8-script.h:200
@ kEvaluated
Definition: v8-script.h:201
int GetIdentityHash() const
static Local< Module > CreateSyntheticModule(Isolate *isolate, Local< String > module_name, const MemorySpan< const Local< String > > &export_names, SyntheticModuleEvaluationSteps evaluation_steps)
Local< UnboundModuleScript > GetUnboundModuleScript()
static Module * Cast(Data *data)
Definition: v8-script.h:987
Maybe< bool > InstantiateModule(Local< Context > context, ResolveModuleCallback module_callback, ResolveSourceCallback source_callback=nullptr)
bool IsSourceTextModule() const
Definition: v8-script.h:672
void SourceTextAvailable(Isolate *isolate, Local< String > source_text, const ScriptOrigin &origin)
Definition: v8-script.h:592
virtual size_t GetMoreData(const uint8_t **src)=0
Definition: v8-script.h:654
Definition: v8-script.h:536
Source(Local< String > source_string, const ScriptOrigin &origin, CachedData *cached_data=nullptr, ConsumeCodeCacheTask *consume_cache_task=nullptr)
Definition: v8-script.h:934
const CompilationDetails & GetCompilationDetails() const
Definition: v8-script.h:976
const CachedData * GetCachedData() const
Definition: v8-script.h:966
const ScriptOriginOptions & GetResourceOptions() const
Definition: v8-script.h:971
Definition: v8-script.h:626
internal::ScriptStreamingData * impl() const
Definition: v8-script.h:634
Encoding
Definition: v8-script.h:628
CompilationDetails & compilation_details()
Definition: v8-script.h:640
StreamedSource & operator=(const StreamedSource &)=delete
StreamedSource(const StreamedSource &)=delete
StreamedSource(std::unique_ptr< ExternalSourceStream > source_stream, Encoding encoding)
Definition: v8-script.h:446
static CachedData * CreateCodeCacheForFunction(Local< Function > function)
static 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)
InMemoryCacheResult
Definition: v8-script.h:506
static bool CompileOptionsIsValid(CompileOptions compile_options)
Definition: v8-script.h:727
static CachedData * CreateCodeCache(Local< UnboundModuleScript > unbound_module_script)
NoCacheReason
Definition: v8-script.h:750
@ kNoCacheBecausePacScript
Definition: v8-script.h:762
@ kNoCacheBecauseV8Extension
Definition: v8-script.h:760
@ kNoCacheBecauseStreamingSource
Definition: v8-script.h:756
@ kNoCacheBecauseNoResource
Definition: v8-script.h:753
@ kNoCacheBecauseStaticCodeCache
Definition: v8-script.h:766
@ kNoCacheBecauseInspector
Definition: v8-script.h:757
@ kNoCacheBecauseCacheTooCold
Definition: v8-script.h:759
@ kNoCacheBecauseScriptTooSmall
Definition: v8-script.h:758
@ kNoCacheBecauseCachingDisabled
Definition: v8-script.h:752
@ kNoCacheBecauseDeferredProduceCodeCache
Definition: v8-script.h:765
@ kNoCacheBecauseExtensionModule
Definition: v8-script.h:761
@ kNoCacheBecauseInlineScript
Definition: v8-script.h:754
@ kNoCacheBecauseInDocumentWrite
Definition: v8-script.h:763
@ kNoCacheBecauseModule
Definition: v8-script.h:755
@ kNoCacheBecauseResourceWithNoCacheHandler
Definition: v8-script.h:764
static ConsumeCodeCacheTask * StartConsumingCodeCacheOnBackground(Isolate *isolate, std::unique_ptr< CachedData > source)
static CachedData * CreateCodeCache(Local< UnboundScript > unbound_script)
static MaybeLocal< Module > CompileModule(Local< Context > context, StreamedSource *v8_source, Local< String > full_source_string, const ScriptOrigin &origin)
CompileOptions
Definition: v8-script.h:717
static MaybeLocal< Script > Compile(Local< Context > context, StreamedSource *source, Local< String > full_source_string, const ScriptOrigin &origin)
static 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 uint32_t CachedDataVersionTag()
static MaybeLocal< UnboundScript > CompileUnboundScript(Isolate *isolate, Source *source, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason)
static ConsumeCodeCacheTask * StartConsumingCodeCache(Isolate *isolate, std::unique_ptr< CachedData > source)
static MaybeLocal< Module > CompileModule(Isolate *isolate, Source *source, CompileOptions options=kNoCompileOptions, NoCacheReason no_cache_reason=kNoCacheNoReason)
Definition: v8-script.h:42
Local< Value > GetResourceName()
Local< Data > HostDefinedOptions()
Definition: v8-message.h:29
Definition: v8-message.h:63
Definition: v8-script.h:392
static MaybeLocal< Script > Compile(Local< Context > context, Local< String > source, ScriptOrigin *origin=nullptr)
MaybeLocal< Value > Run(Local< Context > context)
Local< UnboundScript > GetUnboundScript()
int ScriptId() const
MaybeLocal< Value > Run(Local< Context > context, Local< Data > host_defined_options)
Local< Value > GetResourceName()
Definition: v8-script.h:103
Local< Value > GetSourceURL()
Local< Value > GetSourceMappingURL()
Definition: v8-script.h:60
int ScriptId() const
Local< Script > BindToCurrentContext()
Definition: v8-value.h:32
Definition: libplatform.h:15
bool(*)(int, void *) CompileHintCallback
Definition: v8-callbacks.h:431
ModuleImportPhase
Definition: v8-callbacks.h:348
ScriptType
Definition: v8-script.h:441
Definition: v8-script.h:457
BufferPolicy buffer_policy
Definition: v8-script.h:499
const uint8_t * data
Definition: v8-script.h:496
CachedData(const CachedData &)=delete
CompatibilityCheckResult
Definition: v8-script.h:474
bool rejected
Definition: v8-script.h:498
CachedData(const uint8_t *data, int length, BufferPolicy buffer_policy=BufferNotOwned)
BufferPolicy
Definition: v8-script.h:458
@ BufferNotOwned
Definition: v8-script.h:458
CachedData()
Definition: v8-script.h:460
int length
Definition: v8-script.h:497
CompatibilityCheckResult CompatibilityCheck(Isolate *isolate)
CachedData & operator=(const CachedData &)=delete
Definition: v8-script.h:524
#define V8_EXPORT
Definition: v8config.h:854
#define V8_INLINE
Definition: v8config.h:508
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:621
#define V8_DEPRECATED(message)
Definition: v8config.h:613
#define V8_WARN_UNUSED_RESULT
Definition: v8config.h:678