A bunch of similar code. We can just share things.
<rdar://problem/84066374>
Created attachment 440825 [details] patch
Comment on attachment 440825 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=440825&action=review > Source/JavaScriptCore/bytecode/PolymorphicAccess.cpp:256 > +ScratchRegisterAllocator AccessGenerationState::makeDefaultScratchAllocator(GPRReg extraToLock) Cool, LGTM
Comment on attachment 440825 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=440825&action=review > Source/JavaScriptCore/bytecode/AccessCase.cpp:1681 > + ScratchRegisterAllocator allocator = state.makeDefaultScratchAllocator(scratchGPR); In other parts of WebKit, we would use auto here, since the function makes it exceedingly clear what the type is, but I'm not sure where JSC is on that these days.
Comment on attachment 440825 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=440825&action=review >> Source/JavaScriptCore/bytecode/AccessCase.cpp:1681 >> + ScratchRegisterAllocator allocator = state.makeDefaultScratchAllocator(scratchGPR); > > In other parts of WebKit, we would use auto here, since the function makes it exceedingly clear what the type is, but I'm not sure where JSC is on that these days. I'm happy to use "auto" in these cases.
Created attachment 440838 [details] patch for landing
Committed r283954 (242805@main): <https://commits.webkit.org/242805@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440838 [details].