b6dcdbde8dc328ffde4a234dea2d9ca81e8cf9b4
The `instantiate` method in `Environment` has been refactored to return `Result<Rc<Closure>, String>` instead of `Rc<NativeFunction>`. This change separates the creation of a `Closure` from its execution, allowing the caller to manage the `VM` lifecycle and choose the appropriate execution strategy (e.g., single run vs. repeated benchmark iterations). The `NativeFunction` type is now exclusively used for true Rust intrinsics. The benchmark runner has also been updated to reuse a single `VM` across iterations, improving performance by avoiding repeated VM allocations.
Description
No description provided
Languages
Rust
100%