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
Oops, already had a SerializationContext stub.
- Loading branch information
Showing
3 changed files
with
24 additions
and
30 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 was deleted.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,31 @@ | ||
| package org.perl6.nqp.sixmodel; | ||
|
|
||
| import java.util.ArrayList; | ||
| import org.perl6.nqp.runtime.CodeRef; | ||
|
|
||
| /** | ||
| * A serialization context holds a list of objects and code references that live | ||
| * within a serialization boundary. | ||
| */ | ||
| public class SerializationContext { | ||
|
|
||
| /* The handle of this SC. */ | ||
| public String handle; | ||
|
|
||
| /* Description (probably the file name) if any. */ | ||
| public String description; | ||
|
|
||
| /* The root set of objects that live in this SC. */ | ||
| public ArrayList<SixModelObject> root_objects; | ||
|
|
||
| /* The root set of STables that live in this SC. */ | ||
| public ArrayList<STable> root_stables; | ||
|
|
||
| /* The root set of code refs that live in this SC. */ | ||
| public ArrayList<CodeRef> root_codes; | ||
|
|
||
| /* Repossession info. The following lists have matching indexes, each | ||
| * representing the integer of an object in our root set along with the SC | ||
| * that the object was originally from. */ | ||
| public ArrayList<Integer> rep_indexes; | ||
| public ArrayList<SerializationContext> rep_scs; | ||
| } |