| 315 | } |
| 316 | |
| 317 | Expect<uint32_t> Executor::proxyArrayLen(Runtime::StackManager &, |
| 318 | const RefVariant Ref) noexcept { |
| 319 | auto *Inst = Ref.getPtr<Runtime::Instance::ArrayInstance>(); |
| 320 | if (Inst == nullptr) { |
| 321 | return Unexpect(ErrCode::Value::AccessNullArray); |
| 322 | } |
| 323 | return Inst->getLength(); |
| 324 | } |
| 325 | |
| 326 | Expect<void> Executor::proxyArrayFill(Runtime::StackManager &StackMgr, |
| 327 | const RefVariant Ref, |