3 ms·
> The apply/call thing is from an old email thread with you, so I must have misunderstood. My understanding still led to performance improvements though, so tha
by mraleph 13y ago
> The apply/call thing is from an old email thread with you, so I must have misunderstood. My understanding still led to performance improvements though, so that's quite mysterious :)
Ah, I remembered the thread. If I am not mistaken the problem was that you were adding properties to function objects and those function objects were flowing into f.apply(obj, arguments) site making it polymorphic. At this point Crankshaft would fail to recognize this apply-arguments pattern and disable optimization for this function.
Situation was similar to http://jsperf.com/apply-argument-poly http://jsperf.com/apply-argument-poly
(microbenchmark warning :-))