Hi,

thanks for your interest in V8! I'm afraid there is no such thing as
"relatively complete documentation" for V8's internals. If you want to
learn your way around the code, unfortunately there's a steep and rather
long learning curve ahead of you.

The admittedly sparse official architecture documentation is at
https://developers.google.com/v8/design. Some people have written blog
posts about V8, which you may already have found yourself. Andy Wingo has a
collection of very insightful articles at http://wingolog.org/tags/v8.
Florian Loitsch has written a series of articles explaining how to optimize
JavaScript code for V8, and as part of those explained some of V8's inner
workings: http://floitsch.blogspot.com/search/label/V8.

If you have any specific questions (that don't require an academic paper to
be written as an answer ;-] ), feel free to come back to this list at any
time.

If you want to follow the compilation pipeline, that would be roughly
parser.cc -> ast.cc -> full-codegen[-ia32].cc -> ic[-ia32].cc ->
type-info.cc -> hydrogen.cc -> lithium-ia32.cc -> lithium-codegen-ia32.cc.
The inline caching (IC) system collects type feedback, type-info.cc
extracts it, Hydrogen uses it.
That leaves out stubs, object representation, heap organization, garbage
collection, and probably other things I'm not thinking of right now, but
it's a start...


On Sun, Sep 16, 2012 at 3:48 AM, <[email protected]> wrote:

> Hi all,
>
> I'm reading through the source code of V8, and I found out that it's a
> little bit difficult to follow. For example, I try to find the code for
> type specialization but I had no luck.
>
> Although some details of V8 are scattered over the Internet. However, it's
> really hard to find a relatively complete documentation for V8.
>
> I kindly appreciate if anyone could point me to some sorts of
> documentations, any academic papers or technical reports so that I can
> understand more about V8's internals and start hacking on it.
>
> Thanks very much!
>
> Sincerely,
>
> Haohui
>
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev

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

Reply via email to