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

Method reset

lib/validator/formchecker.cpp:53–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51} // namespace
52
53void FormChecker::reset(bool CleanGlobal) {
54 ValStack.clear();
55 CtrlStack.clear();
56 Locals.clear();
57 Returns.clear();
58
59 if (CleanGlobal) {
60 Types.clear();
61 Funcs.clear();
62 Tables.clear();
63 Mems.clear();
64 Globals.clear();
65 Datas.clear();
66 Elems.clear();
67 Refs.clear();
68 Tags.clear();
69 NumImportFuncs = 0;
70 NumImportGlobals = 0;
71 }
72}
73
74Expect<void> FormChecker::validate(AST::InstrView Instrs,
75 Span<const ValType> RetVals) {

Callers 4

validateMethod · 0.45
validateMethod · 0.45
validateConstExprMethod · 0.45
unsafeCleanupMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected