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

Public Member Functions

 FeedbackMaker (Isolate *const isolate, Tagged< WasmTrustedInstanceData > trusted_instance_data, int func_index, int num_calls)
 
void AddCallRefCandidate (Tagged< WasmFuncRef > funcref, int count)
 
void AddCallIndirectCandidate (Tagged< Object > target_truncated_obj, int count)
 
void AddCall (int target, int count)
 
bool HasTargetCached (int target)
 
void AddResult (CallSiteFeedback feedback)
 
void FinalizeCall ()
 
void set_has_non_inlineable_targets ()
 
void set_megamorphic ()
 
base::OwnedVector< CallSiteFeedbackGetResult () &&
 

Private Attributes

Isolate *const isolate_
 
const Tagged< WasmTrustedInstanceDatainstance_data_
 
base::OwnedVector< CallSiteFeedbackresult_
 
int seen_calls_ = 0
 
const int num_imported_functions_
 
const int func_index_
 
int cache_usage_ {0}
 
std::array< int, kMaxPolymorphismtargets_cache_
 
std::array< int, kMaxPolymorphismcounts_cache_
 
bool has_non_inlineable_targets_ = false
 
bool is_megamorphic_ = false
 

Detailed Description

Definition at line 1351 of file module-compiler.cc.

Constructor & Destructor Documentation

◆ FeedbackMaker()

v8::internal::wasm::FeedbackMaker::FeedbackMaker ( Isolate *const isolate,
Tagged< WasmTrustedInstanceData > trusted_instance_data,
int func_index,
int num_calls )
inline

Definition at line 1353 of file module-compiler.cc.

Member Function Documentation

◆ AddCall()

void v8::internal::wasm::FeedbackMaker::AddCall ( int target,
int count )
inline

Definition at line 1414 of file module-compiler.cc.

Here is the caller graph for this function:

◆ AddCallIndirectCandidate()

void v8::internal::wasm::FeedbackMaker::AddCallIndirectCandidate ( Tagged< Object > target_truncated_obj,
int count )
inline

Definition at line 1380 of file module-compiler.cc.

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

◆ AddCallRefCandidate()

void v8::internal::wasm::FeedbackMaker::AddCallRefCandidate ( Tagged< WasmFuncRef > funcref,
int count )
inline

Definition at line 1364 of file module-compiler.cc.

Here is the caller graph for this function:

◆ AddResult()

void v8::internal::wasm::FeedbackMaker::AddResult ( CallSiteFeedback feedback)
inline

Definition at line 1443 of file module-compiler.cc.

◆ FinalizeCall()

void v8::internal::wasm::FeedbackMaker::FinalizeCall ( )
inline

Definition at line 1449 of file module-compiler.cc.

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

◆ GetResult()

base::OwnedVector< CallSiteFeedback > v8::internal::wasm::FeedbackMaker::GetResult ( ) &&
inline

Definition at line 1492 of file module-compiler.cc.

◆ HasTargetCached()

bool v8::internal::wasm::FeedbackMaker::HasTargetCached ( int target)
inline

Definition at line 1437 of file module-compiler.cc.

Here is the caller graph for this function:

◆ set_has_non_inlineable_targets()

void v8::internal::wasm::FeedbackMaker::set_has_non_inlineable_targets ( )
inline

Definition at line 1487 of file module-compiler.cc.

Here is the caller graph for this function:

◆ set_megamorphic()

void v8::internal::wasm::FeedbackMaker::set_megamorphic ( )
inline

Definition at line 1488 of file module-compiler.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ cache_usage_

int v8::internal::wasm::FeedbackMaker::cache_usage_ {0}
private

Definition at line 1503 of file module-compiler.cc.

◆ counts_cache_

std::array<int, kMaxPolymorphism> v8::internal::wasm::FeedbackMaker::counts_cache_
private

Definition at line 1505 of file module-compiler.cc.

◆ func_index_

const int v8::internal::wasm::FeedbackMaker::func_index_
private

Definition at line 1502 of file module-compiler.cc.

◆ has_non_inlineable_targets_

bool v8::internal::wasm::FeedbackMaker::has_non_inlineable_targets_ = false
private

Definition at line 1506 of file module-compiler.cc.

◆ instance_data_

const Tagged<WasmTrustedInstanceData> v8::internal::wasm::FeedbackMaker::instance_data_
private

Definition at line 1498 of file module-compiler.cc.

◆ is_megamorphic_

bool v8::internal::wasm::FeedbackMaker::is_megamorphic_ = false
private

Definition at line 1509 of file module-compiler.cc.

◆ isolate_

Isolate* const v8::internal::wasm::FeedbackMaker::isolate_
private

Definition at line 1497 of file module-compiler.cc.

◆ num_imported_functions_

const int v8::internal::wasm::FeedbackMaker::num_imported_functions_
private

Definition at line 1501 of file module-compiler.cc.

◆ result_

base::OwnedVector<CallSiteFeedback> v8::internal::wasm::FeedbackMaker::result_
private

Definition at line 1499 of file module-compiler.cc.

◆ seen_calls_

int v8::internal::wasm::FeedbackMaker::seen_calls_ = 0
private

Definition at line 1500 of file module-compiler.cc.

◆ targets_cache_

std::array<int, kMaxPolymorphism> v8::internal::wasm::FeedbackMaker::targets_cache_
private

Definition at line 1504 of file module-compiler.cc.


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