<?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>149759</bug_id>
          
          <creation_ts>2015-10-02 12:30:43 -0700</creation_ts>
          <short_desc>JSBuiltinConstructor must always add builtin header</short_desc>
          <delta_ts>2015-10-06 03:17:20 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xabier Rodríguez Calvar">calvaris</reporter>
          <assigned_to name="Xabier Rodríguez Calvar">calvaris</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>sam</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1130276</commentid>
    <comment_count>0</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2015-10-02 12:30:43 -0700</bug_when>
    <thetext>JSBuiltinConstructor must always add builtin header</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130277</commentid>
    <comment_count>1</comment_count>
      <attachid>262345</attachid>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2015-10-02 12:32:53 -0700</bug_when>
    <thetext>Created attachment 262345
Patch

If you compile the previously generated file with the initialization function ready in the .js file, compilation was failing because the header file couldn&apos;t be found. It is actually needed because the builtins include already the initialization function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130562</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2015-10-04 23:40:07 -0700</bug_when>
    <thetext>LGTM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130571</commentid>
    <comment_count>3</comment_count>
      <attachid>262345</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2015-10-05 01:02:27 -0700</bug_when>
    <thetext>Comment on attachment 262345
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=262345&amp;action=review

&gt; Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5120
&gt; +        return 1;

Just for style, returning 1 is not needed anymore.
It might be better to refactor the whole routine accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130573</commentid>
    <comment_count>4</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2015-10-05 01:24:36 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 262345 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=262345&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5120
&gt; &gt; +        return 1;
&gt; 
&gt; Just for style, returning 1 is not needed anymore.
&gt; It might be better to refactor the whole routine accordingly.

I could rewrite to have a if-then and avoid that. I did it like this to pullute the patch less though it is not big deal, of course. What I can&apos;t avoid is the return inside the loop because it is supposed to bail out the first time it adds the header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130650</commentid>
    <comment_count>5</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2015-10-05 10:19:44 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; &gt; Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:5120
&gt; &gt; &gt; +        return 1;
&gt; &gt; 
&gt; &gt; Just for style, returning 1 is not needed anymore.
&gt; &gt; It might be better to refactor the whole routine accordingly.
&gt; 
&gt; I could rewrite to have a if-then and avoid that. I did it like this to
&gt; pollute the patch less though it is not big deal, of course. What I can&apos;t
&gt; avoid is the return inside the loop because it is supposed to bail out the
&gt; first time it adds the header.

Darin, wdyt about this? Should I change this when landing or do you like it as it is now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130736</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2015-10-05 14:24:46 -0700</bug_when>
    <thetext>One possibility for the refactoring would be to transform AddIncludesForJSBuiltinMethods into something like NeedsJSBuiltinsInclude.

If you prefer to land this one directly, I can handle it in a follow-up patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130909</commentid>
    <comment_count>7</comment_count>
      <attachid>262345</attachid>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2015-10-06 00:16:27 -0700</bug_when>
    <thetext>Comment on attachment 262345
Patch

(In reply to comment #6)
&gt; One possibility for the refactoring would be to transform
&gt; AddIncludesForJSBuiltinMethods into something like NeedsJSBuiltinsInclude.
&gt; 
&gt; If you prefer to land this one directly, I can handle it in a follow-up
&gt; patch.

I can&apos;t do anything else than landing this since I&apos;d need Darin&apos;s blessing for any other thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130914</commentid>
    <comment_count>8</comment_count>
      <attachid>262345</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-06 01:02:31 -0700</bug_when>
    <thetext>Comment on attachment 262345
Patch

Clearing flags on attachment: 262345

Committed r190610: &lt;http://trac.webkit.org/changeset/190610&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130915</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-06 01:02:38 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130927</commentid>
    <comment_count>10</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2015-10-06 03:17:20 -0700</bug_when>
    <thetext>Filed https://bugs.webkit.org/show_bug.cgi?id=149837 as a follow-up</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>262345</attachid>
            <date>2015-10-02 12:32:53 -0700</date>
            <delta_ts>2015-10-06 01:02:31 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-149759-20151002213226.patch</filename>
            <type>text/plain</type>
            <size>2288</size>
            <attacher name="Xabier Rodríguez Calvar">calvaris</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTkwNDU2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMGJkODNiZDMxMmY2MTQ4
ZGVmYzNlNGVkOWE3NGQyNTQ5MjUxN2Y4NS4uMDcwYTBhZDQwNGQwOWI5Yzc0NjQ1MzljYmZkNjY2
MGFjNzI5ZDM2ZCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDE1LTEwLTAyICBYYWJp
ZXIgUm9kcmlndWV6IENhbHZhciAgPGNhbHZhcmlzQGlnYWxpYS5jb20+CisKKyAgICAgICAgSlNC
dWlsdGluQ29uc3RydWN0b3IgbXVzdCBhbHdheXMgYWRkIGJ1aWx0aW4gaGVhZGVyCisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDk3NTkKKworICAgICAg
ICBSZXZ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