Go to the source code of this file.
|
bool | v8::internal::wasm::CompileLazy (Isolate *isolate, Tagged< WasmTrustedInstanceData > trusted_instance_data, int func_index) |
|
void | v8::internal::wasm::ThrowLazyCompilationError (Isolate *isolate, const NativeModule *native_module, int func_index) |
|
bool | v8::internal::wasm::IsCrossInstanceCall (Tagged< Object > obj, Isolate *const isolate) |
|
void | v8::internal::wasm::TriggerTierUp (Isolate *isolate, Tagged< WasmTrustedInstanceData > trusted_instance_data, int func_index) |
|
void | v8::internal::wasm::TierUpNowForTesting (Isolate *isolate, Tagged< WasmTrustedInstanceData > trusted_instance_data, int func_index) |
|
void | v8::internal::wasm::TierUpAllForTesting (Isolate *isolate, Tagged< WasmTrustedInstanceData > trusted_instance_data) |
|
void | v8::internal::wasm::InitializeCompilationForTesting (NativeModule *native_module) |
|
void | v8::internal::wasm::PublishDetectedFeatures (WasmDetectedFeatures detected_features, Isolate *isolate, bool is_initial_compilation) |
|
WasmError | v8::internal::wasm::ValidateAndSetBuiltinImports (const WasmModule *module, base::Vector< const uint8_t > wire_bytes, const CompileTimeImports &imports, WasmDetectedFeatures *detected) |
|
std::shared_ptr< NativeModule > | v8::internal::wasm::CompileToNativeModule (Isolate *isolate, WasmEnabledFeatures enabled_features, WasmDetectedFeatures detected_features, CompileTimeImports compile_imports, ErrorThrower *thrower, std::shared_ptr< const WasmModule > module, base::OwnedVector< const uint8_t > wire_bytes, int compilation_id, v8::metrics::Recorder::ContextId context_id, ProfileInformation *pgo_info) |
|
WasmCode * | v8::internal::wasm::CompileImportWrapperForTest (Isolate *isolate, NativeModule *native_module, ImportCallKind kind, const CanonicalSig *sig, CanonicalTypeIndex type_index, int expected_arity, Suspend suspend) |
|
◆ CHECK_SIG
#define CHECK_SIG |
( |
| import_name, |
|
|
| kSigName, |
|
|
| kEnumName ) |
Value: if (name == base::StaticOneByteVector(#import_name)) { \
if (*sig != kSigName) { \
RETURN_ERROR("js-string", #import_name); \
} \
status = WellKnownImport::kEnumName; \
detected->add_imported_strings(); \
} else
◆ CHECK_USE_COUNTER
#define CHECK_USE_COUNTER |
( |
| feat, |
|
|
| ... ) |
Value: static_assert(check_use_counter(WasmDetectedFeature::feat));
◆ RETURN_ERROR
#define RETURN_ERROR |
( |
| module_name_string, |
|
|
| import_name ) |
Value: uint32_t error_offset = \
ImportStartOffset(wire_bytes, import.module_name.offset()); \
return WasmError(error_offset, \
"Imported builtin function \"wasm:" module_name_string \
"\" \"" import_name "\" has incorrect signature")
◆ TRACE_COMPILE
#define TRACE_COMPILE |
( |
| ... | ) |
|
Value: do { \
if (v8_flags.trace_wasm_compiler) PrintF(__VA_ARGS__); \
} while (false)
Definition at line 43 of file module-compiler.cc.
◆ TRACE_LAZY
#define TRACE_LAZY |
( |
| ... | ) |
|
Value: do { \
if (v8_flags.trace_wasm_lazy_compilation) PrintF(__VA_ARGS__); \
} while (false)
Definition at line 53 of file module-compiler.cc.
◆ TRACE_STREAMING
#define TRACE_STREAMING |
( |
| ... | ) |
|
Value: do { \
if (v8_flags.trace_wasm_streaming) PrintF(__VA_ARGS__); \
} while (false)
Definition at line 48 of file module-compiler.cc.
◆ async_counters_
const std::shared_ptr<Counters> async_counters_ |
|
private |
◆ baseline_compile_job_
std::unique_ptr<JobHandle> baseline_compile_job_ |
|
private |
◆ baseline_tier
ExecutionTier baseline_tier |
◆ baseline_units_
std::vector<WasmCompilationUnit> baseline_units_ |
|
private |
◆ big_units_queue_
BigUnitsQueue big_units_queue_ |
|
private |
◆ bytes_since_last_chunk_
size_t bytes_since_last_chunk_ = 0 |
|
private |
◆ callbacks_
std::vector<std::unique_ptr<CompilationEventCallback> > callbacks_ |
|
private |
◆ callbacks_mutex_
base::Mutex callbacks_mutex_ |
|
mutableprivate |
◆ compilation_id_
◆ compilation_progress_
std::vector<uint8_t> compilation_progress_ |
|
private |
◆ compilation_unit_queues_
CompilationUnitQueues compilation_unit_queues_ |
|
private |
◆ compile_cancelled_
std::atomic<bool> compile_cancelled_ {false} |
|
private |
◆ compile_failed_
std::atomic<bool> compile_failed_ {false} |
|
private |
◆ compile_mode_
const CompileMode compile_mode_ |
|
private |
◆ context_id_
◆ counters_
◆ detected_features_
std::atomic<WasmDetectedFeatures> detected_features_ |
|
private |
◆ engine_barrier_
std::shared_ptr<OperationsBarrier> engine_barrier_ |
|
private |
◆ finished_events_
base::EnumSet<CompilationEvent> finished_events_ |
|
private |
◆ func_size
◆ has_units
std::atomic<bool> has_units[CompilationTier::kNumTiers] |
◆ kBigUnitsLimit
size_t kBigUnitsLimit = 4096 |
|
staticconstexprprivate |
◆ kInvalidCompilationID
int kInvalidCompilationID = -1 |
|
staticconstexprprivate |
◆ last_top_tier_compilation_timestamp_
base::TimeTicks last_top_tier_compilation_timestamp_ |
|
private |
◆ metrics_recorder_
std::shared_ptr<metrics::Recorder> metrics_recorder_ |
|
private |
◆ mutex
◆ mutex_
◆ native_module_
const std::weak_ptr<NativeModule> native_module_ |
|
private |
◆ native_module_weak_
std::weak_ptr<NativeModule> const native_module_weak_ |
|
private |
◆ next_queue_to_add
std::atomic<int> next_queue_to_add {0} |
|
private |
◆ next_steal_task_id
◆ num_declared_functions_
const int num_declared_functions_ |
|
private |
◆ num_imported_functions_
const int num_imported_functions_ |
|
private |
◆ num_priority_units_
std::atomic<size_t> num_priority_units_ {0} |
|
private |
◆ num_units_
std::atomic<size_t> num_units_[CompilationTier::kNumTiers] |
|
private |
◆ outstanding_baseline_units_
int outstanding_baseline_units_ = 0 |
|
private |
◆ priority
◆ publish_limit
std::atomic<int> publish_limit {kMaxInt} |
◆ publish_queue_
std::vector<UnpublishedWasmCode> publish_queue_ |
◆ publish_state_
PublishState publish_state_[CompilationTier::kNumTiers] |
|
private |
◆ publisher_running_
bool publisher_running_ = false |
◆ queues_
std::vector<std::unique_ptr<QueueImpl> > queues_ |
|
private |
◆ queues_mutex_
base::Mutex queues_mutex_ |
|
mutableprivate |
◆ start_time_
base::TimeTicks start_time_ |
|
private |
◆ tier_
const CompilationTier tier_ |
|
private |
◆ tiering_units_
std::vector<WasmCompilationUnit> tiering_units_ |
|
private |
◆ timer_
base::ElapsedTimer timer_ |
|
private |
◆ top_tier
◆ top_tier_compile_job_
std::unique_ptr<JobHandle> top_tier_compile_job_ |
|
private |
◆ top_tier_compiled_
std::unique_ptr<std::atomic<bool>[]> top_tier_compiled_ |
|
private |
◆ top_tier_priority_units
std::priority_queue<TopTierPriorityUnit> top_tier_priority_units |
◆ unit
◆ units
std::vector<WasmCompilationUnit> units[CompilationTier::kNumTiers] |
◆ wire_bytes_storage_
std::shared_ptr<WireBytesStorage> wire_bytes_storage_ |
|
private |