<?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>76836</bug_id>
          
          <creation_ts>2012-01-23 09:10:37 -0800</creation_ts>
          <short_desc>[meta] Stop rebuilding .h/.cpp files generated by unchanged IDLs</short_desc>
          <delta_ts>2013-06-17 16:10:58 -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 Misc.</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>76841</dependson>
    
    <dependson>76846</dependson>
    
    <dependson>76874</dependson>
    
    <dependson>76918</dependson>
    
    <dependson>76920</dependson>
    
    <dependson>76922</dependson>
    
    <dependson>76923</dependson>
    
    <dependson>76926</dependson>
    
    <dependson>76970</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kentaro Hara">haraken</reporter>
          <assigned_to name="Kentaro Hara">haraken</assigned_to>
          <cc>abarth</cc>
    
    <cc>achristensen</cc>
    
    <cc>darin</cc>
    
    <cc>morrita</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>540592</commentid>
    <comment_count>0</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-01-23 09:10:37 -0800</bug_when>
    <thetext>Currently, if *any* of IDL files is updated, then generate-bindings.pl runs for *all* IDL files, and all .h/.cpp files are re-generated and rebuilt.

We can stop the redundant rebuilding by having CodeGenerators write the output .h/.cpp file to a temp file and then overwrite the .h/.cpp only if the bytes differ.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540611</commentid>
    <comment_count>1</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-01-23 09:38:47 -0800</bug_when>
    <thetext>I&apos;ll get things done in the following steps:

[1] Remove finish() from CodeGeneratorV8.pm.
[2] Remove finish() from CodeGeneratorJS.pm.
[3] Remove finish() from CodeGenerator{ObjC,GObject,CPP}.pm and CodeGenerator.pm.
[4] Make a change on CodeGeneratorV8.pm and CodeGenerator.pm to overwrite .h/.cpp files only when the bytes differ.
[5] Make similar changes on CodeGeneratorJS.pm.
[6] Make similar changes on CodeGenerator{ObjC,GObject,CPP}.pm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540711</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-01-23 11:45:30 -0800</bug_when>
    <thetext>Sounds like a good idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540786</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2012-01-23 13:29:45 -0800</bug_when>
    <thetext>Can we change this so code is shared while doing the work 6 times?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540788</commentid>
    <comment_count>4</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-01-23 13:31:28 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Can we change this so code is shared while doing the work 6 times?

Sure. I&apos;ll make UpdateFileIfChanged() in CodeGenerator.pm and use it from all CodeGenerators.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>901194</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-06-17 16:10:58 -0700</bug_when>
    <thetext>*** Bug 117708 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>