Changeset 50933 in webkit
- Timestamp:
- Nov 13, 2009 1:51:49 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r50932 r50933 1 2009-11-13 Mikhail Naganov <mnaganov@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Enable 'console.profile()' and 'console.profileEnd()' 6 regardless of JAVASCRIPT_DEBUGGER. 7 8 https://bugs.webkit.org/show_bug.cgi?id=31293 9 10 * WebCore.gypi: 11 * bindings/js/JSConsoleCustom.cpp: 12 (WebCore::JSConsole::profile): 13 (WebCore::JSConsole::profileEnd): 14 * bindings/v8/custom/V8ConsoleCustom.cpp: Added. 15 (WebCore::CALLBACK_FUNC_DECL): 16 * bindings/v8/custom/V8CustomBinding.h: 17 * page/Console.idl: 18 1 19 2009-11-12 David Levin <levin@chromium.org> 2 20 -
trunk/WebCore/WebCore.gypi
r50772 r50933 650 650 'bindings/v8/custom/V8ClipboardCustom.cpp', 651 651 'bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp', 652 'bindings/v8/custom/V8ConsoleCustom.cpp', 652 653 'bindings/v8/custom/V8CustomBinding.cpp', 653 654 'bindings/v8/custom/V8CustomBinding.h', -
trunk/WebCore/bindings/js/JSConsoleCustom.cpp
r43122 r50933 27 27 #include "JSConsole.h" 28 28 #include "JavaScriptProfile.h" 29 #include "ScriptCallStack.h" 29 30 #include <runtime/JSArray.h> 30 31 … … 51 52 } 52 53 54 JSValue JSConsole::profile(ExecState* exec, const ArgList& args) 55 { 56 ScriptCallStack callStack(exec, args, 1); 57 const UString title = valueToStringWithUndefinedOrNullCheck(exec, args.at(0)); 58 impl()->profile(title, &callStack); 59 return jsUndefined(); 60 } 61 62 JSValue JSConsole::profileEnd(ExecState* exec, const ArgList& args) 63 { 64 ScriptCallStack callStack(exec, args, 1); 65 const UString title = valueToStringWithUndefinedOrNullCheck(exec, args.at(0)); 66 impl()->profileEnd(title, &callStack); 67 return jsUndefined(); 68 } 69 53 70 #endif 54 71 -
trunk/WebCore/bindings/v8/custom/V8CustomBinding.h
r50725 r50933 494 494 DECLARE_CALLBACK(InspectorBackendWrapCallback); 495 495 496 DECLARE_CALLBACK(ConsoleProfile); 497 DECLARE_CALLBACK(ConsoleProfileEnd); 498 496 499 DECLARE_CALLBACK(NodeIteratorNextNode); 497 500 DECLARE_CALLBACK(NodeIteratorPreviousNode); -
trunk/WebCore/page/Console.idl
r50501 r50933 51 51 #endif 52 52 53 #if defined(ENABLE_JAVASCRIPT_DEBUGGER) && ENABLE_JAVASCRIPT_DEBUGGER 54 [CustomArgumentHandling] void profile(in [ConvertUndefinedOrNullToNullString] DOMString title); 55 [CustomArgumentHandling] void profileEnd(in [ConvertUndefinedOrNullToNullString] DOMString title); 56 #endif 53 [Custom] void profile(in [ConvertUndefinedOrNullToNullString] DOMString title); 54 [Custom] void profileEnd(in [ConvertUndefinedOrNullToNullString] DOMString title); 57 55 58 56 void time(in [ConvertUndefinedOrNullToNullString] DOMString title);
Note: See TracChangeset
for help on using the changeset viewer.