Changeset 64684 in webkit for trunk/JavaScriptGlue/JSValueWrapper.cpp
- Timestamp:
- Aug 4, 2010, 3:21:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptGlue/JSValueWrapper.cpp
r64655 r64684 193 193 } 194 194 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 } 195 void 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.