DescriptionGet rid of usages of ScriptWrappable::wrapper().
This is needed for getting rid of Persistent handle copying, as we're going to
remove the copy constructor (see bug for more information).
If we need to pass back a Persistent by reference in the V8 API, we can normally
just pass back a Persistent we hold. ScriptWrappable is problematic, because it
does not hold a Persistent, but instead stores the raw pointer. Added
UnsafePersistent to make the conversion from the raw pointer to a Persistent
explicit.
BUG=236290
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149585
Patch Set 1 #
Total comments: 8
Patch Set 2 : Code review (haraken) #Patch Set 3 : fixed version #Patch Set 4 : . #Patch Set 5 : UnsafePersistent #
Total comments: 8
Patch Set 6 : code review (dcarney) #Patch Set 7 : assert that no gc happened during the UnsafePersistent lifetime #Patch Set 8 : second thoughts, no asserting yet. #Patch Set 9 : rebased #
Total comments: 9
Patch Set 10 : Code review (abarth) #Patch Set 11 : rebased #
Messages
Total messages: 19 (0 generated)
|