<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>122844</bug_id>
          
          <creation_ts>2013-10-15 10:49:10 -0700</creation_ts>
          <short_desc>Implement a cheaper and faster Debugger Running mode</short_desc>
          <delta_ts>2014-01-22 10:10:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>122836</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>122847</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Lam">mark.lam</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>joepeck</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>940025</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2013-10-15 10:49:10 -0700</bug_when>
    <thetext>With https://bugs.webkit.org/show_bug.cgi?id=122836, when in the Debugger Running mode, the LLINT and baseline JIT generated code needs to call a slow path to check if the Debugger needs to switch to Stepping mode.  We can do better.  This is how:

1. In Running mode, only call the slow path for op_debug if the op_debug &quot;needBreaks&quot; flag is set i.e. we need to handle a breakpoint.
2. In Stepping mode, before taking a step, the Debugger should:
    2.1 decorate the next op_debug instruction&apos;s needBreaks with a &quot;isStepping&quot; bit.
          e.g bit 0 == have breakpoint set here, bit 1 == stepping to this bytecode.
    2.2. for call opcodes, fix up the CallLinkInfo to force a call to the slow path.
           2.2.1 in the call slow paths, decorate the first op_debug instruction&apos;s needBreaks flag with an &quot;isStepping&quot; bit.
    2.3 when handling exceptions, decorate the exception handler&apos;s first op_debug instruction&apos;s needBreaks flag with an &quot;isStepping&quot; bit.

With this change, the debugger should be able to achieve approximately a 3x speed up over shipping Safari on the Octane benchmark.

Note: the DFG is still not enabled for the debugger i.e. the DFG will see the op_debug opcode and fail compilation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940026</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-10-15 10:49:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/15232333&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>970736</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-01-22 10:10:34 -0800</bug_when>
    <thetext>This work has been folded into &lt;https://webkit.org/b/122836&gt;.

*** This bug has been marked as a duplicate of bug 122836 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>