dart-sdk/pkg/kernel/testcases
Samir Jindel f0941f7c7d Improve the performance of closure-converted code.
Summary:

Previously, we would create a wrapper function in the flowgraph around converted
closures, which would forward all the closure's arguments and unpack the context
argument before calling the real closure function.

Now, we perform the unpacking at the top of the real function to avoid having
any wrapper function.

Previously, captured parameters would still be appear live to the GC even if
they're updated, because after they are copied into the context, all updates to
them are done there.

Now, as in regular closures, we zero-out the parameter variable after copying
it's value into the context, avoiding potential memory leaks.

Test Plan:

Ran the closure conversion test suite.
Ran benchmarks on Golem -- all statistically significant regressions are gone.

BUG=
R=dmitryas@google.com, regis@google.com

Review-Url: https://codereview.chromium.org/3008923002 .
2017-09-01 14:59:40 +02:00
..
closures Improve the performance of closure-converted code. 2017-09-01 14:59:40 +02:00
closures_initializers Convert closures in all initializers, and share the context between them. 2017-07-14 10:59:17 +02:00
closures_type_vars [kernel] Support for top-level generic functions. 2017-08-16 15:24:26 +02:00
interpreter Add support for catch statements. 2017-08-25 13:53:54 +02:00
reify Fix kernel test case format error. 2017-03-22 08:32:36 -07:00
.gitignore [kernel] Reorganize baseline testing. 2016-09-21 12:23:11 +02:00