2010/2/16 <[email protected]>

> Kevin,
>
> Could you please look at this addition to the compiler infrastructure? Will
> it
> be possible to combine this with the compiler enhancements currently being
> worked on?
>
> Peter,
>
>
Hi Kevin

What I am doing here is trying to get some additional information from
compiler about its product. For a script I need all functions (in tree, as
they are nested) with details about each function's code. The details I need
is basically a layout of scope that the function expects.
As I understand, currently such details are locked up in produced code.
I chose to use a global variable wrapped as LiveEditFunctionSpy (soon
renamed Spy -> Tracker) class to implement this. Global variables are
considered bad, but I wanted my changes to be minimal.

Currently I don't expect to need any additional hacks in compilers. Only in
a far happy future this spy might want to start giving some hints to
compiler about scope layout; however, I'd better not speak about this now.

Peter

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to