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

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

Reviewed by Oliver Hunt.

re-landing r59800.

(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):

WebCore: Rubber Stamped by Sam Weinig.

JSFunctions are no longer a subclass of InternalFunction.

  • bindings/js/ScriptCallStack.cpp:

(WebCore::ScriptCallStack::ScriptCallStack):
(WebCore::ScriptCallStack::initialize):

  • bindings/js/ScriptCallStack.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSObject.cpp

    r59801 r59811  
    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.