[Webkit-unassigned] [Bug 99213] [ARMv7] LinkBuffer flushes code unnecessarily for every link

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 15 16:06:00 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99213





--- Comment #8 from Geoffrey Garen <ggaren at apple.com>  2012-10-15 16:06:49 PST ---
> > Why make this optimization CPU-specific?
> 
> This is only an issue in ARMv7Assembler. Other assemblers don't have this problem. x86/x64 don't need to flush code. ARM-traditional/mips/sh4 don't flush code in linkCall()

It seems brittle, and a layering violation, for the ARMv7 assembler to guess that calls like linkCall() and linkPointer() will always be followed by a call to cacheFlush().

Even though you believe, based on reading the implementation details of all our assemblers, that only ARMv7 needs this particular optimization at this time, and that the optimization is correct for the current implementation of LinkBuffer, the goal of our MacroAssembler and LinkBuffer interfaces is to abstract away those details so we can make future changes without thinking about all platforms at once.

Is there a major blocker that forces this code to be ARMv7-specific?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list