Changeset 18963 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
Jan 18, 2007, 5:00:40 PM (18 years ago)
Author:
bdash
Message:

2007-01-18 Sanjay Madhav <[email protected]>

Reviewed by Darin.

Add JavaScriptCore define to help with tracing of when objects are marked.

  • kjs/object.cpp: (KJS::JSObject::mark):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/object.cpp

    r17372 r18963  
    4444
    4545#define JAVASCRIPT_CALL_TRACING 0
     46#define JAVASCRIPT_MARK_TRACING 0
    4647
    4748#if JAVASCRIPT_CALL_TRACING
     
    119120  JSCell::mark();
    120121
     122#if JAVASCRIPT_MARK_TRACING
     123  static int markStackDepth = 0;
     124  markStackDepth++;
     125  for (int i = 0; i < markStackDepth; i++)
     126    putchar('-');
     127 
     128  printf("%s (%p)\n", className().UTF8String().c_str(), this);
     129#endif
     130 
    121131  JSValue *proto = _proto;
    122132  if (!proto->marked())
     
    124134
    125135  _prop.mark();
     136 
     137#if JAVASCRIPT_MARK_TRACING
     138  markStackDepth--;
     139#endif
    126140}
    127141
Note: See TracChangeset for help on using the changeset viewer.