Changeset 33936
- Timestamp:
- 05/20/08 10:12:40 (6 months ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 modified
-
ChangeLog (modified) (2 diffs)
-
page/JavaScriptProfileNode.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r33934 r33936 1 2008-05-20 Timothy Hatcher <timothy@apple.com> 2 3 Expose the ProfileNode functionName sorting functions on 4 JavaScriptProfileNode. 5 6 Reviewed by Kevin McCullough. 7 8 * page/JavaScriptProfileNode.cpp: 9 (WebCore::sortFunctionNameDescending): Call ProfileNode. 10 (WebCore::sortFunctionNameAscending): Ditto. 11 (WebCore::ProfileNodeClass): Add static functions. 12 1 13 2008-05-20 Darin Adler <darin@apple.com> 2 14 … … 86 98 (WebCore::sortCallsDescending): Ditto. 87 99 (WebCore::sortCallsAscending): Ditto. 88 (WebCore::ProfileNodeClass): Add static staticfunctions.100 (WebCore::ProfileNodeClass): Add static functions. 89 101 90 102 2008-05-19 Timothy Hatcher <timothy@apple.com> -
trunk/WebCore/page/JavaScriptProfileNode.cpp
r33931 r33936 230 230 } 231 231 232 static JSValueRef sortFunctionNameDescending(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef thisObject, size_t /*argumentCount*/, const JSValueRef[] /*arguments*/, JSValueRef* /*exception*/) 233 { 234 if (!JSValueIsObjectOfClass(ctx, thisObject, ProfileNodeClass())) 235 return JSValueMakeUndefined(ctx); 236 237 ProfileNode* profileNode = static_cast<ProfileNode*>(JSObjectGetPrivate(thisObject)); 238 profileNode->sortFunctionNameDescending(); 239 240 return JSValueMakeUndefined(ctx); 241 } 242 243 static JSValueRef sortFunctionNameAscending(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef thisObject, size_t /*argumentCount*/, const JSValueRef[] /*arguments*/, JSValueRef* /*exception*/) 244 { 245 if (!JSValueIsObjectOfClass(ctx, thisObject, ProfileNodeClass())) 246 return JSValueMakeUndefined(ctx); 247 248 ProfileNode* profileNode = static_cast<ProfileNode*>(JSObjectGetPrivate(thisObject)); 249 profileNode->sortFunctionNameAscending(); 250 251 return JSValueMakeUndefined(ctx); 252 } 253 232 254 static void finalize(JSObjectRef object) 233 255 { … … 257 279 { "sortCallsDescending", sortCallsDescending, kJSPropertyAttributeNone }, 258 280 { "sortCallsAscending", sortCallsAscending, kJSPropertyAttributeNone }, 281 { "sortFunctionNameDescending", sortFunctionNameDescending, kJSPropertyAttributeNone }, 282 { "sortFunctionNameAscending", sortFunctionNameAscending, kJSPropertyAttributeNone }, 259 283 { 0, 0, 0 } 260 284 };