[Webkit-unassigned] [Bug 28317] Assertion being hit on layout tests in debug build
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 26 16:24:52 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28317
Gavin Barraclough <barraclough at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|webkit-unassigned at lists.web |barraclough at apple.com
|kit.org |
Status|NEW |ASSIGNED
Attachment #38646| |review?
Flag| |
--- Comment #12 from Gavin Barraclough <barraclough at apple.com> 2009-08-26 16:24:52 PDT ---
Created an attachment (id=38646)
--> (https://bugs.webkit.org/attachment.cgi?id=38646)
Speculative fix
// stubCall.addArgument(ImmPtr(ident));
0x7fffe66e34d1: movq $0xd0c308,0x10(%rsp)
Hmmm, okay, this is the problem, we're relying on a slightly OS X specific
behaviour here (this accounts for the 6 byte difference - this instuction is 9
bytes & we expect 15).
64-bit Mac OS applications have a 4Gb zero page, so pointers are never
representable as a 32-bit integer, and always have to be represented by a
separate immediate load instruction, rather than within the immediate field of
an arithmetic or memory operation. The problem is that you're hitting a
pointer low in memory, and the MacroAssembler is finding a tighter encoding.
We explicitly check for a couple of cases where a value might be representable
in 32-bit, but these probably never kick in on Mac OS, and only kick in on GTK
to screw you over and break you here (sorry!). :-) For now, I think we can
just cheerfully remove these, and hopefully this will fix the problem for you
(rather than coming up with any more complex solution - since we don't expect
these to really be hit right now, we don't really expect these to be
benefitting us right now, either performance or memory wise). On x86-64 we
probably just want to stick to a general policy of never trying to compress
pointers (on Arm plarforms we have to do something move complex, since ImmPtrs
are always converted to Imm32s, so we have to track within the Imm32 whether
the value is allowed to be compressed in a tighter encoding).
I don't have a linux box to test on, but I think the attacked patch should fix
things for you.
--
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