Title: [102546] trunk/Source/_javascript_Core
Revision
102546
Author
gga...@apple.com
Date
2011-12-11 16:40:09 -0800 (Sun, 11 Dec 2011)

Log Message

Rolled out a debug counter I committed accidentally.

Unreviewed.

* jit/JITStubs.cpp:
(JSC::arityCheckFor):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (102545 => 102546)


--- trunk/Source/_javascript_Core/ChangeLog	2011-12-12 00:35:51 UTC (rev 102545)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-12-12 00:40:09 UTC (rev 102546)
@@ -1,3 +1,12 @@
+2011-12-11  Geoffrey Garen  <gga...@apple.com>
+        
+        Rolled out a debug counter I committed accidentally.
+
+        Unreviewed.
+
+        * jit/JITStubs.cpp:
+        (JSC::arityCheckFor):
+
 2011-12-10  Geoffrey Garen  <gga...@apple.com>
 
         v8 benchmark takes 12-13 million function call slow paths due to extra arguments

Modified: trunk/Source/_javascript_Core/jit/JITStubs.cpp (102545 => 102546)


--- trunk/Source/_javascript_Core/jit/JITStubs.cpp	2011-12-12 00:35:51 UTC (rev 102545)
+++ trunk/Source/_javascript_Core/jit/JITStubs.cpp	2011-12-12 00:40:09 UTC (rev 102546)
@@ -2201,18 +2201,6 @@
     return result;
 }
 
-static size_t debugCount[5];
-struct DebugCounter {
-    ~DebugCounter()
-    {
-        for (size_t i = 0; i < 5; ++i)
-            fprintf(stderr, "DebugCounter[%ld]: %ld\n", i, debugCount[i]);
-    }
-    void count(int delta) { ++debugCount[std::min(4, delta)]; }
-};
-
-DebugCounter debugCounter;
-
 inline CallFrame* arityCheckFor(CallFrame* callFrame, RegisterFile* registerFile, CodeSpecializationKind kind)
 {
     JSFunction* callee = asFunction(callFrame->callee());
@@ -2226,8 +2214,6 @@
 
     ASSERT(argumentCountIncludingThis < newCodeBlock->m_numParameters);
 
-    debugCounter.count(newCodeBlock->m_numParameters - argumentCountIncludingThis);
-
     // Too few arguments -- copy call frame and arguments, then fill in missing arguments with undefined.
     size_t delta = newCodeBlock->m_numParameters - argumentCountIncludingThis;
     Register* src = ""
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to