-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Chicory Wasm runtime with (aot experiment)
- Loading branch information
Showing
8 changed files
with
144 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 93 additions & 81 deletions
174
src/main/java/io/github/haykam821/consolebox/game/GameCanvas.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/io/github/haykam821/consolebox/mixin/MemoryAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.github.haykam821.consolebox.mixin; | ||
|
||
import com.dylibso.chicory.runtime.Memory; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
@Mixin(Memory.class) | ||
public interface MemoryAccessor { | ||
@Accessor | ||
ByteBuffer getBuffer(); | ||
} |
14 changes: 0 additions & 14 deletions
14
src/main/java/io/github/haykam821/consolebox/mixin/MemoryTypeAccessor.java
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/main/java/io/github/haykam821/consolebox/mixin/ParserAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.github.haykam821.consolebox.mixin; | ||
|
||
import com.dylibso.chicory.wasm.Parser; | ||
import com.dylibso.chicory.wasm.WasmModule; | ||
import com.dylibso.chicory.wasm.types.Section; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(Parser.class) | ||
public interface ParserAccessor { | ||
@Invoker | ||
static void callOnSection(WasmModule.Builder module, Section s) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters