On Sun, Mar 20, 2016 at 9:55 AM,  <[email protected]> wrote:
> Thanks for the answer.
> I know about inline cache, but I'm more curious about "polymorphism type"
> variables within one function.
> For example, there is a variable changes its type in a function.
> Is there any type inference applied on the above scenario?
>
> McClane

That's what polymorphic and megamorphic inline caches are for, if I
understand you right.  In optimized code, type changes will usually
result in the function getting deoptimized; afterwards, the ICs starts
collecting type info again and eventually the function becomes
eligible for optimization again (within bounds.)

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to