Short answer is:

There are two compilers: non-optimizing (aka full) and optimizing.

Every function starts non-optimized. V8 profiles the application as it
runs and tries to optimize hot functions making assumptions based on
type feedback it gathered during execution of non-optimized code.

--
Vyacheslav Egorov


On Wed, Jul 6, 2011 at 8:04 PM, Stephan Beal <[email protected]> wrote:
> On Wed, Jul 6, 2011 at 7:15 PM, Vyacheslav Egorov <[email protected]>
> wrote:
>>
>> V8 compiles different functions separately as application runs. It
>> might compile the same function several times with different
>> compilers.
>
> Just out of curiosity: can you give us (or point us to) an overview of the
> different modes and why one mode might be chosen over another in a different
> context? i'd be particularly interested in knowing why the same function
> might get compiled in different ways. (Again, just of curiosity, not because
> i want to optimize at that level.)
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

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

Reply via email to