-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish debugging improvements #1440
Comments
My current thinking on this is that we should include the original MASM into pub struct MastForest {
/// All of the nodes local to the trees comprising the MAST forest.
nodes: Vec<MastNode>,
/// Roots of procedures defined within this MAST forest.
roots: Vec<MastNodeId>,
/// MASM source code of this MAST forest indexed by file name.
source_code: BTreeMap<Arc<str>, SourceFile>
} Then, on deserialization we would control whether we want to deserialize We could also add something like |
Yeah that's more or less what I had in mind - though I was imagining that we'd maybe store it as part of the theoretical One thing to note: the sources are unlikely to be MASM in general - the vast majority of the time I expect it will be Rust sources, or other high-level language sources. It doesn't actually matter what the sources are though, but we should be sure not to assume anything about them, other than the The main reason I bring that up, is because how we encode the actual locations is important in terms of the size of files we generate. The actual text files are small in comparison to the raw location data if you store it fully expanded (i.e. where each instruction has its own Having something like |
Originally posted by @bitwalker in #990 (comment)
The text was updated successfully, but these errors were encountered: