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
Add SC data structure and SC tables.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package org.perl6.nqp.runtime; | ||
|
|
||
| import java.util.ArrayList; | ||
|
|
||
| import org.perl6.nqp.sixmodel.STable; | ||
| import org.perl6.nqp.sixmodel.SixModelObject; | ||
|
|
||
| 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; | ||
| } |