[INFER] Fix red.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 06 Sep 2011 03:08:29 -0700
changeset 76589 a18eade1678f15b6dc44dd4dcad510994b46fb3c
parent 76588 1412233cafa1f9c0df4832751092181c7da16c76
child 76590 445b1e86590c42f2a5a66eacd15164fb6125cd46
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
milestone9.0a1
[INFER] Fix red.
js/src/xpconnect/src/xpcjsruntime.cpp
--- a/js/src/xpconnect/src/xpcjsruntime.cpp
+++ b/js/src/xpconnect/src/xpcjsruntime.cpp
@@ -1361,17 +1361,20 @@ CellCallback(JSContext *cx, void *vdata,
             if(shape->hasTable())
                 curr->propertyTables +=
                     shape->getTable()->sizeOf(moz_malloc_usable_size);
             break;
         }
         case JSTRACE_SCRIPT:
         {
             JSScript *script = static_cast<JSScript *>(thing);
-            if (script->data != script->inlineData) {
+#if JS_SCRIPT_INLINE_DATA_LIMIT
+            if (script->data != script->inlineData)
+#endif
+            {
                 size_t usable = moz_malloc_usable_size(script->data);
                 curr->scriptData += usable ? usable : script->dataSize();
             }
 #ifdef JS_METHODJIT
             curr->mjitData += script->jitDataSize(moz_malloc_usable_size);
 #endif
             break;
         }