| 347 | } |
| 348 | |
| 349 | Result SharedValidator::OnDataSegment(const Location& loc, |
| 350 | Var memory_var, |
| 351 | SegmentKind kind) { |
| 352 | Result result = Result::Ok; |
| 353 | if (kind == SegmentKind::Active) { |
| 354 | result |= CheckMemoryIndex(memory_var); |
| 355 | } |
| 356 | return result; |
| 357 | } |
| 358 | |
| 359 | Result SharedValidator::CheckDeclaredFunc(Var func_var) { |
| 360 | if (declared_funcs_.count(func_var.index()) == 0) { |
no outgoing calls
no test coverage detected