Changeset 39951 in webkit for trunk/JavaScriptCore/parser/Nodes.h


Ignore:
Timestamp:
Jan 15, 2009, 3:49:55 PM (16 years ago)
Author:
[email protected]
Message:

2009-01-15 Sam Weinig <[email protected]>

Reviewed by Gavin Barraclough.

Fix crash seen running fast/canvas.

Make sure to mark the ScopeNode and CodeBlock being created
in the re-parse for exception information.

  • bytecode/CodeBlock.cpp: (JSC::CodeBlock::reparseForExceptionInfoIfNecessary):
  • parser/Nodes.h: (JSC::ScopeNode::mark):
  • runtime/Collector.cpp: (JSC::Heap::collect):
  • runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData):
  • runtime/JSGlobalData.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Nodes.h

    r39910 r39951  
    21192119        }
    21202120
     2121        virtual void mark() { }
     2122
    21212123    protected:
    21222124        void setSource(const SourceCode& source) { m_source = source; }
     
    21612163        EvalCodeBlock& bytecodeForExceptionInfoReparse(ScopeChainNode*, CodeBlock*) JSC_FAST_CALL;
    21622164
    2163         void mark();
     2165        virtual void mark();
     2166
    21642167    private:
    21652168        EvalNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, const SourceCode&, CodeFeatures, int numConstants) JSC_FAST_CALL;
     
    22042207        }
    22052208
    2206         void mark();
     2209        virtual void mark();
    22072210
    22082211        void finishParsing(const SourceCode&, ParameterNode*);
Note: See TracChangeset for help on using the changeset viewer.