![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <wasm-module.h>
Public Member Functions | |
| AdaptiveMap () | |
| AdaptiveMap (const AdaptiveMap &)=delete | |
| AdaptiveMap & | operator= (const AdaptiveMap &)=delete |
| AdaptiveMap (AdaptiveMap &&other) V8_NOEXCEPT | |
| AdaptiveMap & | operator= (AdaptiveMap &&other) V8_NOEXCEPT |
| void | FinishInitialization () |
| bool | is_set () const |
| void | Put (uint32_t key, const Value &value) |
| void | Put (uint32_t key, Value &&value) |
| const Value * | Get (uint32_t key) const |
| bool | Has (uint32_t key) const |
| size_t | EstimateCurrentMemoryConsumption () const |
Static Public Attributes | |
| static constexpr uint32_t | kMaxKey = 10'000'000 |
Private Types | |
| enum | Mode { kDense , kSparse , kInitializing } |
| using | MapType = std::map<uint32_t, Value> |
Private Attributes | |
| Mode | mode_ {kInitializing} |
| std::vector< Value > | vector_ |
| std::unique_ptr< MapType > | map_ |
Static Private Attributes | |
| static constexpr uint32_t | kLoadFactor = 4 |
Definition at line 325 of file wasm-module.h.
|
private |
Definition at line 389 of file wasm-module.h.
|
private |
| Enumerator | |
|---|---|
| kDense | |
| kSparse | |
| kInitializing | |
Definition at line 390 of file wasm-module.h.
|
inline |
Definition at line 333 of file wasm-module.h.
|
explicitdelete |
|
inline |
Definition at line 338 of file wasm-module.h.
| size_t v8::internal::wasm::AdaptiveMap< Value >::EstimateCurrentMemoryConsumption | ( | ) | const |
Definition at line 715 of file wasm-module.cc.
| void v8::internal::wasm::AdaptiveMap< Value >::FinishInitialization | ( | ) |
Definition at line 34 of file wasm-module.cc.
|
inline |
|
inline |
Definition at line 376 of file wasm-module.h.
|
inline |
Definition at line 349 of file wasm-module.h.
|
inline |
Definition at line 340 of file wasm-module.h.
|
delete |
|
inline |
|
inline |
Definition at line 357 of file wasm-module.h.
|
staticconstexprprivate |
Definition at line 388 of file wasm-module.h.
|
staticconstexpr |
Definition at line 330 of file wasm-module.h.
|
private |
Definition at line 394 of file wasm-module.h.
|
private |
Definition at line 392 of file wasm-module.h.
|
private |
Definition at line 393 of file wasm-module.h.