MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / addCoreGlobal

Method addCoreGlobal

include/validator/component_context.h:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 return Idx;
219 }
220 uint32_t addCoreGlobal(const AST::GlobalType *GT = nullptr) noexcept {
221 auto &V = getCurrentContext().CoreGlobals;
222 uint32_t Idx = static_cast<uint32_t>(V.size());
223 V.push_back(GT);
224 return Idx;
225 }
226 uint32_t addCoreTag() noexcept { return getCurrentContext().CoreTagCount++; }
227
228 // ==========================================================================

Callers 3

validateMethod · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected