<?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>142826</bug_id>
          
          <creation_ts>2015-03-18 08:34:17 -0700</creation_ts>
          <short_desc>Introduce internal.querySelector[All]NoJIT</short_desc>
          <delta_ts>2015-03-18 11:04:51 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>142703</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1078195</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-03-18 08:34:17 -0700</bug_when>
    <thetext>Now, almost all selectors (even if it&apos;s very complicated) are compiled by CSS JIT.
To maintain non-JIT SelectorChecker and compare CSS JIT results with expected non-JIT results,
I propose new internal.API, internal.querySelectorNoJIT(root, selector) and internal.querySelectorAllNoJIT(root, selector).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078196</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-03-18 08:34:36 -0700</bug_when>
    <thetext>Benjamin, what do you think of?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078203</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-03-18 08:45:53 -0700</bug_when>
    <thetext>When landing this change, I&apos;ll add non-JIT selector matching tests introduced issue 142703.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078248</commentid>
    <comment_count>3</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-03-18 11:04:51 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; When landing this change, I&apos;ll add non-JIT selector matching tests
&gt; introduced issue 142703.

I agree the non-JIT cases are under-tested, that has been worrying me for a while.

I have been thinking about some solutions:
-Add a new pseudo class :-webkit-no-jit that fails to compile. The problem with this is someone could ship it by accident.
-Change the test running such that the layout tests in fast/selectors are run twice: once with the normal setup, then a second time with all JIT disabled (which we can do at runtime since we rely on the same flags as JavaScriptCore). I think this would have the most value.

I am okay with internal.querySelectorNoJIT(root, selector) and internal.querySelectorAllNoJIT(root, selector). That seems useful.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>