Title: [159940] trunk/Source/_javascript_Core
Revision
159940
Author
commit-qu...@webkit.org
Date
2013-12-02 10:23:45 -0800 (Mon, 02 Dec 2013)

Log Message

[JSC] Get rid of some unused parameters in LLIntSlowPaths.cpp macros
https://bugs.webkit.org/show_bug.cgi?id=125075

Patch by Nick Diego Yamane <nick.yam...@openbossa.org> on 2013-12-02
Reviewed by Michael Saboff.

* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::handleHostCall): added UNUSED_PARAM(pc).
(JSC::LLInt::setUpCall): Doesn't pass 'pc' to LLINT_CALL macros.
(JSC::LLInt::LLINT_SLOW_PATH_DECL): Ditto.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (159939 => 159940)


--- trunk/Source/_javascript_Core/ChangeLog	2013-12-02 17:49:08 UTC (rev 159939)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-12-02 18:23:45 UTC (rev 159940)
@@ -1,3 +1,15 @@
+2013-12-02  Nick Diego Yamane  <nick.yam...@openbossa.org>
+
+        [JSC] Get rid of some unused parameters in LLIntSlowPaths.cpp macros
+        https://bugs.webkit.org/show_bug.cgi?id=125075
+
+        Reviewed by Michael Saboff.
+
+        * llint/LLIntSlowPaths.cpp:
+        (JSC::LLInt::handleHostCall): added UNUSED_PARAM(pc).
+        (JSC::LLInt::setUpCall): Doesn't pass 'pc' to LLINT_CALL macros.
+        (JSC::LLInt::LLINT_SLOW_PATH_DECL): Ditto.
+
 2013-12-02  László Langó  <la...@inf.u-szeged.hu>
 
         Remove stdio.h from JSC files.

Modified: trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp (159939 => 159940)


--- trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp	2013-12-02 17:49:08 UTC (rev 159939)
+++ trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp	2013-12-02 18:23:45 UTC (rev 159940)
@@ -142,7 +142,7 @@
 
 #define LLINT_CALL_END_IMPL(exec, callTarget) LLINT_RETURN_TWO((callTarget), (exec))
 
-#define LLINT_CALL_THROW(exec, pc, exceptionToThrow) do {               \
+#define LLINT_CALL_THROW(exec, exceptionToThrow) do {                   \
         ExecState* __ct_exec = (exec);                                  \
         vm.throwException(__ct_exec, exceptionToThrow);                 \
         LLINT_CALL_END_IMPL(__ct_exec, callToThrow(__ct_exec));         \
@@ -154,7 +154,7 @@
             LLINT_CALL_END_IMPL(__cce_exec, callToThrow(__cce_exec));   \
     } while (false)
 
-#define LLINT_CALL_RETURN(exec, pc, callTarget) do {                    \
+#define LLINT_CALL_RETURN(exec, callTarget) do {                        \
         ExecState* __cr_exec = (exec);                                  \
         void* __cr_callTarget = (callTarget);                           \
         LLINT_CALL_CHECK_EXCEPTION(__cr_exec->callerFrame());           \
@@ -963,6 +963,8 @@
 
 static SlowPathReturnType handleHostCall(ExecState* execCallee, Instruction* pc, JSValue callee, CodeSpecializationKind kind)
 {
+    UNUSED_PARAM(pc);
+
 #if LLINT_SLOW_PATH_TRACING
     dataLog("Performing host call.\n");
 #endif
@@ -985,7 +987,7 @@
             execCallee->setCallee(asObject(callee));
             vm.hostCallReturnValue = JSValue::decode(callData.native.function(execCallee));
             
-            LLINT_CALL_RETURN(execCallee, pc, LLInt::getCodePtr(getHostCallReturnValue));
+            LLINT_CALL_RETURN(execCallee, LLInt::getCodePtr(getHostCallReturnValue));
         }
         
 #if LLINT_SLOW_PATH_TRACING
@@ -993,7 +995,7 @@
 #endif
 
         ASSERT(callType == CallTypeNone);
-        LLINT_CALL_THROW(exec, pc, createNotAFunctionError(exec, callee));
+        LLINT_CALL_THROW(exec, createNotAFunctionError(exec, callee));
     }
 
     ASSERT(kind == CodeForConstruct);
@@ -1008,7 +1010,7 @@
         execCallee->setCallee(asObject(callee));
         vm.hostCallReturnValue = JSValue::decode(constructData.native.function(execCallee));
 
-        LLINT_CALL_RETURN(execCallee, pc, LLInt::getCodePtr(getHostCallReturnValue));
+        LLINT_CALL_RETURN(execCallee, LLInt::getCodePtr(getHostCallReturnValue));
     }
     
 #if LLINT_SLOW_PATH_TRACING
@@ -1016,7 +1018,7 @@
 #endif
 
     ASSERT(constructType == ConstructTypeNone);
-    LLINT_CALL_THROW(exec, pc, createNotAConstructorError(exec, callee));
+    LLINT_CALL_THROW(exec, createNotAConstructorError(exec, callee));
 }
 
 inline SlowPathReturnType setUpCall(ExecState* execCallee, Instruction* pc, CodeSpecializationKind kind, JSValue calleeAsValue, LLIntCallLinkInfo* callLinkInfo = 0)
@@ -1043,7 +1045,7 @@
         FunctionExecutable* functionExecutable = static_cast<FunctionExecutable*>(executable);
         JSObject* error = functionExecutable->prepareForExecution(execCallee, callee->scope(), kind);
         if (error)
-            LLINT_CALL_THROW(execCallee->callerFrame(), pc, error);
+            LLINT_CALL_THROW(execCallee->callerFrame(), error);
         codeBlock = functionExecutable->codeBlockFor(kind);
         ASSERT(codeBlock);
         if (execCallee->argumentCountIncludingThis() < static_cast<size_t>(codeBlock->numParameters()))
@@ -1068,7 +1070,7 @@
             codeBlock->linkIncomingCall(execCaller, callLinkInfo);
     }
 
-    LLINT_CALL_RETURN(execCallee, pc, codePtr.executableAddress());
+    LLINT_CALL_RETURN(execCallee, codePtr.executableAddress());
 }
 
 inline SlowPathReturnType genericCall(ExecState* exec, Instruction* pc, CodeSpecializationKind kind)
@@ -1144,7 +1146,7 @@
         return setUpCall(execCallee, pc, CodeForCall, calleeAsValue);
     
     vm.hostCallReturnValue = eval(execCallee);
-    LLINT_CALL_RETURN(execCallee, pc, LLInt::getCodePtr(getHostCallReturnValue));
+    LLINT_CALL_RETURN(execCallee, LLInt::getCodePtr(getHostCallReturnValue));
 }
 
 LLINT_SLOW_PATH_DECL(slow_path_tear_off_activation)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to