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/runtime/JSObject.cpp

    r55002 r59800  
    2828#include "ErrorConstructor.h"
    2929#include "GetterSetter.h"
     30#include "JSFunction.h"
    3031#include "JSGlobalObject.h"
    3132#include "NativeErrorConstructor.h"
     
    510511}
    511512
     513void JSObject::putDirectFunction(ExecState* exec, JSFunction* function, unsigned attr)
     514{
     515    putDirectFunction(Identifier(exec, function->name(exec)), function, attr);
     516}
     517
    512518void JSObject::putDirectFunctionWithoutTransition(ExecState* exec, InternalFunction* function, unsigned attr)
     519{
     520    putDirectFunctionWithoutTransition(Identifier(exec, function->name(exec)), function, attr);
     521}
     522
     523void JSObject::putDirectFunctionWithoutTransition(ExecState* exec, JSFunction* function, unsigned attr)
    513524{
    514525    putDirectFunctionWithoutTransition(Identifier(exec, function->name(exec)), function, attr);
Note: See TracChangeset for help on using the changeset viewer.