v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::DeserializeCodeTask Class Reference
Inheritance diagram for v8::internal::wasm::DeserializeCodeTask:
Collaboration diagram for v8::internal::wasm::DeserializeCodeTask:

Public Member Functions

 DeserializeCodeTask (NativeModuleDeserializer *deserializer, DeserializationQueue *reloc_queue)
 
void Run (JobDelegate *delegate) override
 
size_t GetMaxConcurrency (size_t) const override
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Member Functions

bool TryPublishing (JobDelegate *delegate)
 

Private Attributes

NativeModuleDeserializer *const deserializer_
 
DeserializationQueue *const reloc_queue_
 
DeserializationQueue publish_queue_
 
std::atomic< boolpublishing_ {false}
 

Detailed Description

Definition at line 736 of file wasm-serialization.cc.

Constructor & Destructor Documentation

◆ DeserializeCodeTask()

v8::internal::wasm::DeserializeCodeTask::DeserializeCodeTask ( NativeModuleDeserializer * deserializer,
DeserializationQueue * reloc_queue )
inline

Definition at line 738 of file wasm-serialization.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::internal::wasm::DeserializeCodeTask::GetMaxConcurrency ( size_t worker_count) const
inlineoverridevirtual

Controls the maximum number of threads calling Run() concurrently, given the number of threads currently assigned to this job and executing Run(). Run() is only invoked if the number of threads previously running Run() was less than the value returned. In general, this should return the latest number of incomplete work items (smallest unit of work) left to process, including items that are currently in progress. |worker_count| is the number of threads currently assigned to this job which some callers may need to determine their return value. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.

Implements v8::JobTask.

Definition at line 758 of file wasm-serialization.cc.

Here is the call graph for this function:

◆ Run()

void v8::internal::wasm::DeserializeCodeTask::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 742 of file wasm-serialization.cc.

Here is the call graph for this function:

◆ TryPublishing()

bool v8::internal::wasm::DeserializeCodeTask::TryPublishing ( JobDelegate * delegate)
inlineprivate

Definition at line 767 of file wasm-serialization.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ deserializer_

NativeModuleDeserializer* const v8::internal::wasm::DeserializeCodeTask::deserializer_
private

Definition at line 791 of file wasm-serialization.cc.

◆ publish_queue_

DeserializationQueue v8::internal::wasm::DeserializeCodeTask::publish_queue_
private

Definition at line 793 of file wasm-serialization.cc.

◆ publishing_

std::atomic<bool> v8::internal::wasm::DeserializeCodeTask::publishing_ {false}
private

Definition at line 794 of file wasm-serialization.cc.

◆ reloc_queue_

DeserializationQueue* const v8::internal::wasm::DeserializeCodeTask::reloc_queue_
private

Definition at line 792 of file wasm-serialization.cc.


The documentation for this class was generated from the following file: