Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[truffle] Remove trailing space and add missing files
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/vm/jvm/runtime/org/perl6/nqp/truffle/sixmodel/reprs/P6int.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,22 @@ | ||
package org.perl6.nqp.truffle.sixmodel.reprs; | ||
import org.perl6.nqp.truffle.sixmodel.SerializationReader; | ||
import org.perl6.nqp.truffle.sixmodel.STable; | ||
|
||
|
||
public class P6int extends FixedSizeObjectREPR { | ||
public P6int(STable stable) { | ||
super(stable); | ||
} | ||
|
||
public Object allocate() { | ||
return new P6intInstance(stable); | ||
} | ||
|
||
public Object deserializeStub() { | ||
return new P6intInstance(stable); | ||
} | ||
|
||
public void deserializeFinish(SerializationReader reader, Object obj) { | ||
((P6intInstance) obj).value = reader.readLong(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/vm/jvm/runtime/org/perl6/nqp/truffle/sixmodel/reprs/P6intInstance.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,10 @@ | ||
package org.perl6.nqp.truffle.sixmodel.reprs; | ||
|
||
import org.perl6.nqp.truffle.sixmodel.STable; | ||
|
||
public class P6intInstance extends FixedSizeObject { | ||
public long value; | ||
public P6intInstance(STable stable) { | ||
super(stable); | ||
} | ||
} |
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