<?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>112836</bug_id>
          
          <creation_ts>2013-03-20 13:41:02 -0700</creation_ts>
          <short_desc>JSC should be a quadruple-tier VM</short_desc>
          <delta_ts>2014-04-29 15:08:36 -0700</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>112838</dependson>
    
    <dependson>112839</dependson>
    
    <dependson>112840</dependson>
    
    <dependson>115464</dependson>
    
    <dependson>115465</dependson>
    
    <dependson>115466</dependson>
    
    <dependson>116556</dependson>
    
    <dependson>116557</dependson>
    
    <dependson>116561</dependson>
    
    <dependson>116630</dependson>
    
    <dependson>116633</dependson>
    
    <dependson>116748</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>abucur</cc>
    
    <cc>barraclough</cc>
    
    <cc>galpeter</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>ossy</cc>
    
    <cc>rgabor</cc>
    
    <cc>sam</cc>
    
    <cc>syoichi</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>859672</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-03-20 13:41:02 -0700</bug_when>
    <thetext>Our existing DFG optimizing compiler is pretty good, but not as good as it could be.  In fact, we&apos;ve even gone so far as de-tuned it to do fewer optimizations.  This is because we care about compile times, and we want the DFG to be able to give profit to even very-short-running functions.  Right now it can produce significant speed-ups even for things that only run for ~2ms or less, and even in cases where the relevant functions are relatively complex.  But this approach also means that for longer-running code, we get less win.

This can be fixed by having an alternate, more powerful, but longer-compiling, tier of the DFG.  This would be the fourth tier of JSC.  Here&apos;s the wishlist for this tier:

1) Bring back the optimization fixpoint to allow CFG simplification to feed back into things like CSE.

2) Run the compiler on a separate thread.

3) Use a proper compiler backend that does global register allocation, GVN, PRE, LICM, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859687</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-03-20 13:48:00 -0700</bug_when>
    <thetext>Branched for this work in http://trac.webkit.org/changeset/146384</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859725</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2013-03-20 14:17:28 -0700</bug_when>
    <thetext>Why not 5 onion.com/bWBRid ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859729</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-03-20 14:19:26 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Why not 5 onion.com/bWBRid ?

Assign that bug to Gavin.  He was saying something about doing AST interpretation for really simple code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864856</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-03-27 14:25:16 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Branched for this work in http://trac.webkit.org/changeset/146384

The branch is called &quot;fourthTier&quot;.  I&apos;m prefixing all bugs that are intended to land on this branch with &quot;fourthTier: &quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1005151</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2014-04-29 15:08:36 -0700</bug_when>
    <thetext>Aaaannnnnd we&apos;re done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>