Chromium Code Reviews
DescriptionWTF::bind: Handle movable objects in unbound arguments.
This patch is the complement to an earlier patch
(https://codereview.chromium.org/1708183002/), which did the same thing
for bound arguments.
Fix for unbound arguments is simpler than that for bound arguments. We
just need to make sure the arguments are passed correctly throughout the
process.
Due to the current implementation where we use a virtual function to
implement PartBoundFunctionImpl::operator() we need to copy- or
move-construct a value there, if the argument's type is not a
reference. This is extra cost, but it's probably not feasible to get rid
of this overhead with the current design.
More comments and tests are added accordingly.
BUG=565765
R=haraken@chromium.org, hiroshige@chromium.org, tzik@chromium.org
Committed: https://crrev.com/cbf29aa70a0a46e631f77e6b6256a3771a09b994
Cr-Commit-Position: refs/heads/master@{#378372}
Patch Set 1 #
Messages
Total messages: 16 (5 generated)
|
||||||||||||||||||||||||||||