Ignore:
Timestamp:
Nov 27, 2008, 6:24:20 PM (16 years ago)
Author:
[email protected]
Message:

2008-11-27 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Fix FIXME by adding accessor for JSFunction's m_body property.

  • interpreter/Interpreter.cpp: (JSC::Interpreter::cti_op_call_JSFunction): (JSC::Interpreter::cti_vm_dontLazyLinkCall): (JSC::Interpreter::cti_vm_lazyLinkCall):
  • profiler/Profiler.cpp: (JSC::createCallIdentifierFromFunctionImp):
  • runtime/Arguments.h: (JSC::Arguments::getArgumentsData): (JSC::Arguments::Arguments):
  • runtime/FunctionPrototype.cpp: (JSC::functionProtoFuncToString):
  • runtime/JSFunction.h: (JSC::JSFunction::JSFunction): (JSC::JSFunction::body):
File:
1 edited

Legend:

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

    r38767 r38825  
    4343
    4444        typedef InternalFunction Base;
    45         JSFunction(PassRefPtr<JSC::Structure> st) : InternalFunction(st), m_scopeChain(NoScopeChain()) {}
     45
     46        JSFunction(PassRefPtr<Structure> structure)
     47            : InternalFunction(structure)
     48            , m_scopeChain(NoScopeChain())
     49        {
     50        }
     51
    4652    public:
    4753        JSFunction(ExecState*, const Identifier&, FunctionBodyNode*, ScopeChainNode*);
     
    5864        ScopeChain& scope() { return m_scopeChain; }
    5965
     66        FunctionBodyNode* body() const { return m_body.get(); }
     67
    6068        virtual void mark();
    6169
    6270        static const ClassInfo info;
    63 
    64         // FIXME: This should be private
    65         RefPtr<FunctionBodyNode> m_body;
    6671
    6772        static PassRefPtr<Structure> createStructure(JSValue* prototype)
     
    8085        static JSValue* lengthGetter(ExecState*, const Identifier&, const PropertySlot&);
    8186
     87        RefPtr<FunctionBodyNode> m_body;
    8288        ScopeChain m_scopeChain;
    8389    };
Note: See TracChangeset for help on using the changeset viewer.