Ignore:
Timestamp:
May 19, 2010, 6:01:03 PM (15 years ago)
Author:
[email protected]
Message:

Bug 39393 - JSFunction need not be a subclass of InternalFunction.

Reviewed by Oliver Hunt.

This may prevent us from introducing a more useful parent class to
JSFunction, e.g. a JSObject that holds an executable, which could
also reference an eval or program executable.

(JSC::Interpreter::retrieveCaller):
(JSC::Interpreter::findFunctionCallFrame):

  • interpreter/Interpreter.h:
  • profiler/Profiler.cpp:

(JSC::Profiler::createCallIdentifier):

  • runtime/FunctionPrototype.cpp:

(JSC::functionProtoFuncToString):

  • runtime/JSFunction.cpp:

(JSC::):
(JSC::JSFunction::JSFunction):
(JSC::JSFunction::name):
(JSC::JSFunction::displayName):
(JSC::JSFunction::calculatedDisplayName):

  • runtime/JSFunction.h:
  • runtime/JSObject.cpp:

(JSC::JSObject::putDirectFunction):
(JSC::JSObject::putDirectFunctionWithoutTransition):

  • runtime/JSObject.h:
  • runtime/Lookup.cpp:

(JSC::setUpStaticFunctionSlot):

File:
1 edited

Legend:

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

    r59781 r59800  
    4545    class EvalExecutable;
    4646    class FunctionExecutable;
    47     class InternalFunction;
    4847    class JSFunction;
    4948    class JSGlobalObject;
     
    102101
    103102        JSValue retrieveArguments(CallFrame*, JSFunction*) const;
    104         JSValue retrieveCaller(CallFrame*, InternalFunction*) const;
     103        JSValue retrieveCaller(CallFrame*, JSFunction*) const;
    105104        void retrieveLastCaller(CallFrame*, int& lineNumber, intptr_t& sourceID, UString& sourceURL, JSValue& function) const;
    106105       
     
    144143        static ALWAYS_INLINE CallFrame* slideRegisterWindowForCall(CodeBlock*, RegisterFile*, CallFrame*, size_t registerOffset, int argc);
    145144
    146         static CallFrame* findFunctionCallFrame(CallFrame*, InternalFunction*);
     145        static CallFrame* findFunctionCallFrame(CallFrame*, JSFunction*);
    147146
    148147        JSValue privateExecute(ExecutionFlag, RegisterFile*, CallFrame*, JSValue* exception);
Note: See TracChangeset for help on using the changeset viewer.