Skip to content
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

Derived virtual table columns #17

Open
mfragkoulis opened this issue Dec 12, 2013 · 1 comment
Open

Derived virtual table columns #17

mfragkoulis opened this issue Dec 12, 2013 · 1 comment
Assignees

Comments

@mfragkoulis
Copy link
Owner

Sometimes values that are computed in each iteration of a virtual table traversal are important. For instance, in Valgrind module each VAbits record contains validity and accessibility bits for 4 bytes. We want to extract the bits for each byte without recomputing vabits. A nice solution would be to have a derived struct for each virtual table and a DSL keyword to denote columns as derived. These columns, of scalar types for start, would make up the derived structure.

@ghost ghost assigned mfragkoulis Dec 12, 2013
@mfragkoulis
Copy link
Owner Author

The dependencies for the derived columns can be computed in *VT_advance, now a method not a macro. Derived columns for virtual tables representing objects can be accommodated through VT variables defined in *VT_decl (make sure that this is available for objects) or through global variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant