Changeset 119962 in webkit


Ignore:
Timestamp:
Jun 11, 2012 1:24:02 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Web Inspector: implement breaking from native callback
https://bugs.webkit.org/show_bug.cgi?id=43332

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-06-11
Reviewed by Pavel Feldman.

These test cases were enabled:
LayoutTests/inspector/debugger/dom-breakpoints.html
LayoutTests/inspector/debugger/event-listener-breakpoints.html
LayoutTests/inspector/debugger/step-through-event-listeners.html
LayoutTests/inspector/debugger/xhr-breakpoints.html

  • bindings/js/ScriptDebugServer.cpp:

(WebCore::ScriptDebugServer::breakProgram):

  • bindings/js/ScriptDebugServer.h:

(WebCore::supportsNativeBreakpoints):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/platform/qt/Skipped

    r119827 r119962  
    271271fast/text/hyphens.html
    272272fast/text/soft-hyphen-4.html
    273 
    274 # https://bugs.webkit.org/show_bug.cgi?id=43332
    275 inspector/debugger/dom-breakpoints.html
    276 inspector/debugger/event-listener-breakpoints.html
    277 inspector/debugger/step-through-event-listeners.html
    278 inspector/debugger/xhr-breakpoints.html
    279273
    280274# JSC doesn't support heap profiling
  • trunk/Source/WebCore/ChangeLog

    r119960 r119962  
     12012-06-11  Peter Wang  <peter.wang@torchmobile.com.cn>
     2
     3        [JSC] Web Inspector: implement breaking from native callback
     4        https://bugs.webkit.org/show_bug.cgi?id=43332
     5
     6        Reviewed by Pavel Feldman.
     7
     8        These test cases were enabled:
     9        LayoutTests/inspector/debugger/dom-breakpoints.html
     10        LayoutTests/inspector/debugger/event-listener-breakpoints.html
     11        LayoutTests/inspector/debugger/step-through-event-listeners.html
     12        LayoutTests/inspector/debugger/xhr-breakpoints.html
     13
     14        * bindings/js/ScriptDebugServer.cpp:
     15        (WebCore::ScriptDebugServer::breakProgram):
     16        * bindings/js/ScriptDebugServer.h:
     17        (WebCore::supportsNativeBreakpoints):
     18
    1192012-06-11  MORITA Hajime  <morrita@google.com>
    220
  • trunk/Source/WebCore/bindings/js/ScriptDebugServer.cpp

    r117646 r119962  
    153153void ScriptDebugServer::breakProgram()
    154154{
    155     // FIXME(WK43332): implement this.
     155    if (m_paused || !m_currentCallFrame)
     156        return;
     157
     158    m_pauseOnNextStatement = true;
     159    pauseIfNeeded(m_currentCallFrame->dynamicGlobalObject());
    156160}
    157161
  • trunk/Source/WebCore/bindings/js/ScriptDebugServer.h

    r116917 r119962  
    8686
    8787    bool causesRecompilation() { return true; }
    88     bool supportsNativeBreakpoints() { return false; }
     88    // FIXME: Need to remove this. Refer to bug: 88759.
     89    bool supportsNativeBreakpoints() { return true; }
    8990
    9091    void recompileAllJSFunctionsSoon();
Note: See TracChangeset for help on using the changeset viewer.