Chromium Code Reviews
DescriptionAvoid temporary Vectors for arrow function parameter lists
Instead of using a Collector to gather the parameters from parameter
lists of arrow functions and then calling Collector::ToVector() on it,
declare the parameters on the function Scope as the AST subtree with
the paramters is traversed. This avoids the memory allocations done
by Collector, and removed the chance of leaking the result obtained
from Collector::ToVector().
BUG=
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||||||||||||||||||||