-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
9 changed files
with
85 additions
and
38 deletions.
There are no files selected for viewing
Submodule codec-jvm
updated
6 files
+1 −0 | codec-jvm.cabal | |
+18 −3 | example/Main.hs | |
+19 −3 | src/Codec/JVM/Class.hs | |
+1 −0 | src/Codec/JVM/ConstPool.hs | |
+16 −18 | src/Codec/JVM/Parse.hs | |
+4 −3 | src/Codec/JVM/Types.hs |
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
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
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
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,25 @@ | ||
package eta.base; | ||
|
||
import eta.runtime.stg.Closure; | ||
import eta.runtime.stg.StgContext; | ||
import eta.runtime.thunk.CAF; | ||
import eta.base.Utils; | ||
|
||
public class StringCAF extends CAF { | ||
|
||
private String s; | ||
|
||
public StringCAF(final String s) { | ||
this.s = s; | ||
} | ||
|
||
@Override | ||
public Closure thunkEnter(StgContext context) { | ||
return Utils.jstringToString(null, s); | ||
} | ||
|
||
@Override | ||
public void clear() { | ||
this.s = null; | ||
} | ||
} |
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