Skip to content

Commit

Permalink
[truffle] Remove trailing space and add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 15, 2019
1 parent be2f9e3 commit c464c60
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
22 changes: 22 additions & 0 deletions src/vm/jvm/runtime/org/perl6/nqp/truffle/sixmodel/reprs/P6int.java
@@ -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();
}
}
@@ -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);
}
}
Expand Up @@ -17,6 +17,6 @@ public Object deserializeStub() {
}

public void deserializeFinish(SerializationReader reader, Object obj) {
((P6numInstance) obj).value = reader.readDouble();
((P6numInstance) obj).value = reader.readDouble();
}
}
Expand Up @@ -17,6 +17,6 @@ public Object deserializeStub() {
}

public void deserializeFinish(SerializationReader reader, Object obj) {
((P6strInstance) obj).value = reader.readString();
((P6strInstance) obj).value = reader.readString();
}
}

0 comments on commit c464c60

Please sign in to comment.