diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/runtime/CallData.cpp | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/runtime/CallData.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/CallData.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/Source/JavaScriptCore/runtime/CallData.cpp b/Source/JavaScriptCore/runtime/CallData.cpp index 42c80ddb6..cf0ba7992 100644 --- a/Source/JavaScriptCore/runtime/CallData.cpp +++ b/Source/JavaScriptCore/runtime/CallData.cpp @@ -28,9 +28,8 @@ #include "Executable.h" #include "Interpreter.h" -#include "JSCInlines.h" #include "JSFunction.h" -#include "ScriptProfilingScope.h" +#include "Operations.h" namespace JSC { @@ -40,28 +39,4 @@ JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const C return exec->interpreter()->executeCall(exec, asObject(functionObject), callType, callData, thisValue, args); } -JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args, NakedPtr<Exception>& returnedException) -{ - JSValue result = call(exec, functionObject, callType, callData, thisValue, args); - if (exec->hadException()) { - returnedException = exec->exception(); - exec->clearException(); - return jsUndefined(); - } - RELEASE_ASSERT(result); - return result; -} - -JSValue profiledCall(ExecState* exec, ProfilingReason reason, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args) -{ - ScriptProfilingScope profilingScope(exec->vmEntryGlobalObject(), reason); - return call(exec, functionObject, callType, callData, thisValue, args); -} - -JSValue profiledCall(ExecState* exec, ProfilingReason reason, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args, NakedPtr<Exception>& returnedException) -{ - ScriptProfilingScope profilingScope(exec->vmEntryGlobalObject(), reason); - return call(exec, functionObject, callType, callData, thisValue, args, returnedException); -} - } // namespace JSC |