May 19, 2004

*this = aRect is generated as movaps xmm?,???

CL.EXE for AMD64 generated strength code...
(654.2a0): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling. This exception may be expected and handled.
gklayout!nsStackLayout::Layout+0x83:
000007ff`fe51df8f 0f286c2440 movaps xmm5,oword ptr [rsp+0x40] ss:000007ff`fff88158=000027ba000033bd0000000000000000
0:000> u
gklayout!nsStackLayout::Layout+0x83 [c:\works\mozilla\mozilla\layout\xul\base\src\nsstacklayout.cpp @ 272]:
000007ff`fe51df8f 0f286c2440       movaps  xmm5,oword ptr [rsp+0x40]
000007ff`fe51df94 660f7f6c2430     movdqa  oword ptr [rsp+0x30],xmm5
000007ff`fe51df9a ff1500eb3d00 call qword ptr [gklayout!_imp_?DeflatensRectQEAAXAEBUnsMarginZ (000007fffe8fcaa0)]
000007ff`fe51dfa0 8b44243c         mov     eax,[rsp+0x3c]
000007ff`fe51dfa4 448b5c2438       mov     r11d,[rsp+0x38]
000007ff`fe51dfa9 488b4c2420       mov     rcx,[rsp+0x20]
000007ff`fe51dfae 453bdd           cmp     r11d,r13d
000007ff`fe51dfb1 44896c2458       mov  [rsp+0x58],r13d
Source code ... mozilla/layout/xul/base/src/nsStackLayout.cpp
NS_IMETHODIMP
nsStackLayout::Layout(nsIBox* aBox, nsBoxLayoutState& aState)
{
 :
 :
    while (child)
    {
        nsMargin margin;
        child->GetMargin(margin);
        nsRect childRect(clientRect);
mozilla/gfx/public/nsRect.h
struct NS_GFX nsRect {
    nscoord x, y;
    nscoord width, height;

    // Constructors
    nsRect() : x(0), y(0), width(0), height(0) {}
    nsRect(const nsRect& aRect) {*this = aRect;}
    nsRect(const nsPoint& aOrigin, const nsSize &aSize) {x = aOrigin.x; y = aOrigin.y;
This seems to be bug of compiler...

Trackback URL: http://www.mozilla-x86-64.com/mt/mt-tb.cgi/18