Ignore:
Timestamp:
Dec 3, 2009, 6:17:46 PM (15 years ago)
Author:
[email protected]
Message:

REGRESSION(4.0.3-48777): Crash in JSC::ExecState::propertyNames() (Debug-only?)
https://bugs.webkit.org/show_bug.cgi?id=32133

Reviewed by Gavin Barraclough.

Work around odd GCC-ism and correct the scopechain for use by
calls made while a cachedcall is active on the callstack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/CallFrame.h

    r48774 r51672  
    4040        JSFunction* callee() const { return this[RegisterFile::Callee].function(); }
    4141        CodeBlock* codeBlock() const { return this[RegisterFile::CodeBlock].Register::codeBlock(); }
    42         ScopeChainNode* scopeChain() const { return this[RegisterFile::ScopeChain].Register::scopeChain(); }
     42        ScopeChainNode* scopeChain() const
     43        {
     44            ASSERT(this[RegisterFile::ScopeChain].Register::scopeChain());
     45            return this[RegisterFile::ScopeChain].Register::scopeChain();
     46        }
    4347        int argumentCount() const { return this[RegisterFile::ArgumentCount].i(); }
    4448
     
    6771        JSGlobalData& globalData() const
    6872        {
     73            ASSERT(scopeChain()->globalData);
    6974            return *scopeChain()->globalData;
    7075        }
Note: See TracChangeset for help on using the changeset viewer.