Hi v8-dev,

I read somewhere the other day that 

y=Math.pow() 

is much faster than

x=Math.pow
y=x()

because v8 can make a direct lookup of the symbol. I now wonder what 
happens with polyfills of newly arrived functions like Math.cosh:

Math.cosh = Math.cosh || function(x) {
    return (Math.exp(x) + Math.exp(-x)) / 2;
};

Is a polyfill breaking the optimization because the function was maybe 
labeled as changed or did you consider this somehow?

Thanks Robert

-- 
-- 
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