Skip to content

Commit

Permalink
Remove register write-back at the next inst dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Sep 22, 2024
1 parent 1e633f7 commit a9587a2
Show file tree
Hide file tree
Showing 3 changed files with 593 additions and 397 deletions.
5 changes: 2 additions & 3 deletions Sources/WasmKit/Execution/Runtime/ExecutionState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,8 @@ extension ExecutionState {
mutating func runDirectThreaded(
sp: Sp, pc: Pc, md: Md, ms: Ms
) throws {
let handler = pc.withMemoryRebound(to: wasmkit_tc_exec.self, capacity: 1) {
$0.pointee
}
var pc = pc
let handler = pc.read(wasmkit_tc_exec.self)
wasmkit_tc_start(handler, sp, pc, md, ms, &self)
if let error = self.trap {
throw unsafeBitCast(error, to: Error.self)
Expand Down
Loading

0 comments on commit a9587a2

Please sign in to comment.