Ignore:
Timestamp:
Aug 4, 2010, 3:21:13 PM (15 years ago)
Author:
[email protected]
Message:

2010-08-04 Sheriff Bot <[email protected]>

Unreviewed, rolling out r64655.
http://trac.webkit.org/changeset/64655
https://bugs.webkit.org/show_bug.cgi?id=43496

JavaScriptCore references patch seems to have caused
regressions in QT and GTK builds (Requested by nlawrence on
#webkit).

  • bytecode/CodeBlock.cpp: (JSC::CodeBlock::markAggregate):
  • runtime/Collector.cpp: (JSC::Heap::markConservatively):
  • runtime/JSCell.h: (JSC::JSValue::asCell): (JSC::MarkStack::append):
  • runtime/JSGlobalObject.cpp: (JSC::markIfNeeded):
  • runtime/JSONObject.cpp: (JSC::Stringifier::Holder::object):
  • runtime/JSObject.h: (JSC::JSObject::prototype):
  • runtime/JSStaticScopeObject.cpp: (JSC::JSStaticScopeObject::markChildren):
  • runtime/JSValue.h: (JSC::JSValue::): (JSC::JSValue::JSValue): (JSC::JSValue::asCell):
  • runtime/MarkStack.h:
  • runtime/NativeErrorConstructor.cpp:
  • runtime/NativeErrorConstructor.h:
  • runtime/Structure.h: (JSC::Structure::storedPrototype):

2010-08-04 Sheriff Bot <[email protected]>

Unreviewed, rolling out r64655.
http://trac.webkit.org/changeset/64655
https://bugs.webkit.org/show_bug.cgi?id=43496

JavaScriptCore references patch seems to have caused
regressions in QT and GTK builds (Requested by nlawrence on
#webkit).

  • JSValueWrapper.cpp: (JSValueWrapper::JSObjectMark):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptGlue/JSValueWrapper.cpp

    r64655 r64684  
    193193}
    194194
    195 void JSValueWrapper::JSObjectMark(void*)
    196 {
    197     // The object doesn't need to be marked here because it is a protected
    198     // object and should therefore be marked by
    199     // JSC::Heap::markProtectedObjects.
    200 
    201     // We are keeping the function around because the function is passed as a
    202     // callback.
    203 }
     195void JSValueWrapper::JSObjectMark(void *data)
     196{
     197    JSValueWrapper* ptr = (JSValueWrapper*)data;
     198    if (ptr)
     199    {
     200        // This results in recursive marking but will be otherwise safe and correct.
     201        // We claim the array vptr is 0 because we don't have access to it here, and
     202        // claiming 0 is functionally harmless -- it merely means that we can't
     203        // devirtualise marking of arrays when recursing from this point.
     204        MarkStack markStack(0);
     205        markStack.append(ptr->fValue.get());
     206        markStack.drain();
     207    }
     208}
Note: See TracChangeset for help on using the changeset viewer.