2 ms·
> What do you mean by “virtual object”, an object which has been broken up on the stack instead of a “real” object living as a single entity on the heap? Yes..
by chrisseaton 6y ago
> What do you mean by “virtual object”, an object which has been broken up on the stack instead of a “real” object living as a single entity on the heap?
Yes... but let's not say 'broken up on the stack' - the object's fields become dataflow edges. The object doesn't exist reifed on the stack - fields may exist on the stack, or in registers, or not at all.
- aweinstock 6y agoLLVM calls the process of breaking a struct/object into dataflow variables "Scalar Replacement of Aggregates". https://llvm.org/doxygen/classllvm_1_1SROA.html#details https://llvm.org/doxygen/classllvm_1_1SROA.html#details
- chrisseaton 6y agoYes that's what the JVM calls it - and then the node the ties together the state is the virtual object.