Remove debug printfs (no bug).
authorAndreas Gal <gal@mozilla.com>
Wed, 19 Aug 2009 15:29:56 -0700
changeset 31899 85832269fb645d617b094fc98a26e1c0fca05c98
parent 31898 0307226048c86a41ad74b8d8be2c75c93763bf7c
child 31900 ccf91ba2d62a84a708c61f539797c7c1057e5d8e
push idunknown
push userunknown
push dateunknown
milestone1.9.3a1pre
Remove debug printfs (no bug).
js/src/jsapi.cpp
js/src/jstracer.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -831,19 +831,16 @@ JS_NewRuntime(uint32 maxbytes)
 bad:
     JS_DestroyRuntime(rt);
     return NULL;
 }
 
 JS_PUBLIC_API(void)
 JS_CommenceRuntimeShutDown(JSRuntime *rt)
 {
-#ifdef DEBUG
-    fprintf(stderr, "JS_CommenceRuntimeShutDown\n");
-#endif
     rt->gcFlushCodeCaches = true;
 }
 
 JS_PUBLIC_API(void)
 JS_DestroyRuntime(JSRuntime *rt)
 {
 #ifdef DEBUG
     /* Don't hurt everyone in leaky ol' Mozilla with a fatal JS_ASSERT! */
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -2103,19 +2103,16 @@ oom:
      */
     tm->reservedDoublePoolPtr = tm->reservedDoublePool;
     return false;
 }
 
 void
 JSTraceMonitor::flush()
 {
-#ifdef DEBUG
-        fprintf(stderr, "JSTraceMonitor::flush()\n");
-#endif
     if (fragmento) {
         fragmento->clearFrags();
         for (size_t i = 0; i < FRAGMENT_TABLE_SIZE; ++i) {
             VMFragment* f = vmfragments[i];
             while (f) {
                 VMFragment* next = f->next;
                 fragmento->clearFragment(f);
                 f = next;
@@ -2142,19 +2139,16 @@ JSTraceMonitor::flush()
     lirbuf->clear();
     needFlush = JS_FALSE;
 }
 
 void
 JSTraceMonitor::mark(JSTracer* trc)
 {
     if (!trc->context->runtime->gcFlushCodeCaches) {
-#ifdef DEBUG
-        fprintf(stderr, "JSTraceMonitor::mark()\n");
-#endif
         for (size_t i = 0; i < FRAGMENT_TABLE_SIZE; ++i) {
             VMFragment* f = vmfragments[i];
             while (f) {
                 TreeInfo* ti = (TreeInfo*)f->vmprivate;
                 if (ti) {
                     jsval* vp = ti->gcthings.data();
                     unsigned len = ti->gcthings.length();
                     while (len--) {