Changeset 36853 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 24, 2008, 10:54:10 AM (17 years ago)
Author:
[email protected]
Message:

2008-09-24 Geoffrey Garen <[email protected]>

Reviewed by Cameron Zwarich.


Fixed https://bugs.webkit.org/show_bug.cgi?id=21057
Crash in RegisterID::deref() running fast/canvas/canvas-putImageData.html

  • VM/CodeGenerator.h: Changed declaration order to ensure the m_lastConstant, which is a RefPtr that points into m_calleeRegisters, has its destructor called before the destructor for m_calleeRegisters.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r36851 r36853  
     12008-09-24  Geoffrey Garen  <[email protected]>
     2
     3        Reviewed by Cameron Zwarich.
     4       
     5        Fixed https://bugs.webkit.org/show_bug.cgi?id=21057
     6        Crash in RegisterID::deref() running fast/canvas/canvas-putImageData.html
     7
     8        * VM/CodeGenerator.h: Changed declaration order to ensure the
     9        m_lastConstant, which is a RefPtr that points into m_calleeRegisters,
     10        has its destructor called before the destructor for m_calleeRegisters.
     11
    1122008-09-24  Darin Adler  <[email protected]>
    213
  • trunk/JavaScriptCore/VM/CodeGenerator.h

    r36821 r36853  
    417417        HashSet<RefPtr<UString::Rep>, IdentifierRepHash> m_functions;
    418418        RegisterID m_thisRegister;
    419         RefPtr<RegisterID> m_lastConstant;
    420419        SegmentedVector<RegisterID, 512> m_calleeRegisters;
    421420        SegmentedVector<RegisterID, 512> m_parameters;
    422421        SegmentedVector<RegisterID, 512> m_globals;
    423422        SegmentedVector<LabelID, 512> m_labels;
     423        RefPtr<RegisterID> m_lastConstant;
    424424        int m_finallyDepth;
    425425        int m_dynamicScopeDepth;
Note: See TracChangeset for help on using the changeset viewer.