44e8da3ecd
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 Review-Url: https://codereview.chromium.org/2989493002 .