• barraclough@apple.com's avatar
    Add JSValue::isFunction · 484a9d31
    barraclough@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=81935
    
    Reviewed by Geoff Garen.
    
    This would be useful in the WebCore bindings code.
    Also, remove asFunction, replace with jsCast<JSFunction*>.
    
    Source/JavaScriptCore: 
    
    * API/JSContextRef.cpp:
    * debugger/Debugger.cpp:
    * debugger/DebuggerCallFrame.cpp:
    (JSC::DebuggerCallFrame::functionName):
    * dfg/DFGGraph.h:
    (JSC::DFG::Graph::valueOfFunctionConstant):
    * dfg/DFGOperations.cpp:
    * interpreter/CallFrame.cpp:
    (JSC::CallFrame::isInlineCallFrameSlow):
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::privateExecute):
    * jit/JITStubs.cpp:
    (JSC::DEFINE_STUB_FUNCTION):
    (JSC::jitCompileFor):
    (JSC::lazyLinkFor):
    * llint/LLIntSlowPaths.cpp:
    (JSC::LLInt::traceFunctionPrologue):
    (JSC::LLInt::LLINT_SLOW_PATH_DECL):
    (JSC::LLInt::setUpCall):
    * runtime/Arguments.h:
    (JSC::Arguments::finishCreation):
    * runtime/ArrayPrototype.cpp:
    (JSC::arrayProtoFuncFilter):
    (JSC::arrayProtoFuncMap):
    (JSC::arrayProtoFuncEvery):
    (JSC::arrayProtoFuncForEach):
    (JSC::arrayProtoFuncSome):
    (JSC::arrayProtoFuncReduce):
    (JSC::arrayProtoFuncReduceRight):
    * runtime/CommonSlowPaths.h:
    (JSC::CommonSlowPaths::arityCheckFor):
    * runtime/Executable.h:
    (JSC::FunctionExecutable::compileFor):
    (JSC::FunctionExecutable::compileOptimizedFor):
    * runtime/FunctionPrototype.cpp:
    (JSC::functionProtoFuncToString):
    * runtime/JSArray.cpp:
    (JSC::JSArray::sort):
    * runtime/JSFunction.cpp:
    (JSC::JSFunction::argumentsGetter):
    (JSC::JSFunction::callerGetter):
    (JSC::JSFunction::lengthGetter):
    * runtime/JSFunction.h:
    (JSC):
    (JSC::asJSFunction):
    (JSC::JSValue::isFunction):
    * runtime/JSGlobalData.cpp:
    (WTF::Recompiler::operator()):
    (JSC::JSGlobalData::releaseExecutableMemory):
    * runtime/JSValue.h:
    * runtime/StringPrototype.cpp:
    (JSC::replaceUsingRegExpSearch):
    
    Source/WebCore: 
    
    * bindings/js/JSInjectedScriptHostCustom.cpp:
    (WebCore::JSInjectedScriptHost::functionDetails):
    * bindings/js/ScriptCallStackFactory.cpp:
    (WebCore::createScriptCallStack):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    484a9d31
JSArray.cpp 73.1 KB