Comment #1 on issue 2362 by [email protected]: Display hidden stack
values: return values and exceptions
http://code.google.com/p/v8/issues/detail?id=2362
Implementation ideas:
1. All the values are stored on stack indeed.
2. Debug stack analyzer should be able to fetch those value and return them
to user more-or-less annotated.
3. An annotation in form of <function return|method resolve|...> plus
source code position is probably optimal. A raw unannotated set of
temporary values could be returned as well, but it looks really poor.
4. Rinfo record could store these annotations. The simplest approach is to
annotate all values in each debug slot rinfo. This could nonoptimal though,
because some stack slot annotation might be repeated several times.
5. Compiler can track temporary stack slot usage by storing pointers to AST
nodes in stack – hopefully this is cheap.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev