DescriptionSimplify and fix implicit closure check, speed up Closure_equals
This CL introduces a new Function kind, kImplicitClosureFunction, in
order to simplify check for implicit closures and make it more
efficient.
This CL also fixes Function::IsImplicitStaticClosureFunction(RawFunction*)
to correctly handle implicit closures created from static native
functions.
Closes #30203.
As the result of a faster check for implicit closures and slight
refactoring of Closure_equals, micro-benchmark exercising Closure_equals
speeds up from 9618ms to 6700ms for implicit closures case and
insignificantly for other cases.
R=zra@google.com
Committed: https://github.com/dart-lang/sdk/commit/44e8da3ecd23de5fdd022d6de0d2ec895cc37beb
Patch Set 1 #
Total comments: 8
Patch Set 2 : Review fixes #
Total comments: 2
Patch Set 3 : Avoid overloaded NewClosureFunction #
Total comments: 4
Messages
Total messages: 12 (2 generated)
|