<?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>52011</bug_id>
          
          <creation_ts>2011-01-06 12:58:37 -0800</creation_ts>
          <short_desc>JSC bindings should use RuntimeEnabledFeatures</short_desc>
          <delta_ts>2013-05-15 09:35:45 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>116147</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joe Mason">joenotcharles</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>darin</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dw.im</cc>
    
    <cc>jorlow</cc>
    
    <cc>ksakamoto</cc>
    
    <cc>rniwa</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>330345</commentid>
    <comment_count>0</comment_count>
    <who name="Joe Mason">joenotcharles</who>
    <bug_when>2011-01-06 12:58:37 -0800</bug_when>
    <thetext>Only the V8 bindings generate code to enable/disable Javascript features that have the EnabledAtRuntime attribute, even though the RuntimeEnabledFeatures class is in bindings/generic so it&apos;s available to JSC.  This would allow attributes to be completely removed if they are disabled (simply returning &quot;undefined&quot; is not good enough because they will still be visible in iteration).

This needs at least:

- code added to CodeGeneratorJS.pm to parallel that in CodeGeneratorV8.pm that checks EnabledAtRuntime (or better yet move these checks 
into common helpers)
- possibly added to the other CodeGenerator scripts as well?
- existing uses of RuntimeEnabledFeatures that are wrapped in &quot;#if USE(V8)&quot; need to be audited to see if they should now be unconditional
- RuntimeEnabledFeatures needs to be added to the build for all platforms using JSC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>745442</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2012-10-18 11:51:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/10155019&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>778682</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-11-28 21:45:40 -0800</bug_when>
    <thetext>*** Bug 91199 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>889329</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-05-15 09:19:55 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 116147 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>889343</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-05-15 09:32:08 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; 
&gt; *** This bug has been marked as a duplicate of bug 116147 ***

Actually, I think we can keep the other one open make add a dependency. My patch only adds support for global constructors. Work will still be needed to extend that to regular attributes and operations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>889346</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-05-15 09:35:45 -0700</bug_when>
    <thetext>Okay.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>