#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "base/feature_list.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/v8_cache_options.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/boxed_v8_module.h"
#include "third_party/blink/renderer/bindings/core/v8/referrer_script_info.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_script_runner.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/core/script/modulator.h"
#include "third_party/blink/renderer/core/script/module_record_resolver.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/loader/fetch/script_fetch_options.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/text/text_position.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"
namespace blink {
ModuleRecordProduceCacheData::ModuleRecordProduceCacheData(
v8::Isolate* isolate,
CachedMetadataHandler* cache_handler,
V8CodeCache::ProduceCacheOptions produce_cache_options,
v8::Local<v8::Module> module)
: … { … }
void ModuleRecordProduceCacheData::Trace(Visitor* visitor) const { … }
v8::Local<v8::Module> ModuleRecord::Compile(
ScriptState* script_state,
const ModuleScriptCreationParams& params,
const ScriptFetchOptions& options,
const TextPosition& text_position,
TryRethrowScope& rethrow_scope,
mojom::blink::V8CacheOptions v8_cache_options,
ModuleRecordProduceCacheData** out_produce_cache_data) { … }
ScriptValue ModuleRecord::Instantiate(ScriptState* script_state,
v8::Local<v8::Module> record,
const KURL& source_url) { … }
void ModuleRecord::ReportException(ScriptState* script_state,
v8::Local<v8::Value> exception) { … }
Vector<ModuleRequest> ModuleRecord::ModuleRequests(
ScriptState* script_state,
v8::Local<v8::Module> record) { … }
v8::Local<v8::Value> ModuleRecord::V8Namespace(v8::Local<v8::Module> record) { … }
v8::MaybeLocal<v8::Module> ModuleRecord::ResolveModuleCallback(
v8::Local<v8::Context> context,
v8::Local<v8::String> specifier,
v8::Local<v8::FixedArray> import_attributes,
v8::Local<v8::Module> referrer) { … }
Vector<ImportAttribute> ModuleRecord::ToBlinkImportAttributes(
v8::Local<v8::Context> context,
v8::Local<v8::Module> record,
v8::Local<v8::FixedArray> v8_import_attributes,
bool v8_import_attributes_has_positions) { … }
}