Ignore:
Timestamp:
Sep 29, 2009, 2:48:52 PM (16 years ago)
Author:
[email protected]
Message:

Tidy up codeblock sampler
https://bugs.webkit.org/show_bug.cgi?id=29836

Reviewed by Gavin Barraclough.

Some rather simple refactoring of codeblock sampler so that
it's easier for us to use it to find problems in non-jsc
environments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Executable.h

    r48662 r48905  
    159159    class EvalExecutable : public ScriptExecutable {
    160160    public:
    161         EvalExecutable(ExecState* exec, const SourceCode& source)
    162             : ScriptExecutable(exec, source)
    163             , m_evalCodeBlock(0)
    164         {
    165         }
    166161
    167162        ~EvalExecutable();
     
    182177
    183178    private:
     179        EvalExecutable(ExecState* exec, const SourceCode& source)
     180            : ScriptExecutable(exec, source)
     181            , m_evalCodeBlock(0)
     182        {
     183        }
    184184        EvalCodeBlock* m_evalCodeBlock;
    185185
     
    200200    class ProgramExecutable : public ScriptExecutable {
    201201    public:
    202         ProgramExecutable(ExecState* exec, const SourceCode& source)
    203             : ScriptExecutable(exec, source)
    204             , m_programCodeBlock(0)
    205         {
    206         }
    207        
     202        static PassRefPtr<ProgramExecutable> create(ExecState* exec, const SourceCode& source)
     203        {
     204            return adoptRef(new ProgramExecutable(exec, source));
     205        }
     206
    208207        ~ProgramExecutable();
    209208
     
    224223
    225224    private:
     225        ProgramExecutable(ExecState* exec, const SourceCode& source)
     226            : ScriptExecutable(exec, source)
     227            , m_programCodeBlock(0)
     228        {
     229        }
    226230        ProgramCodeBlock* m_programCodeBlock;
    227231
Note: See TracChangeset for help on using the changeset viewer.