<?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>66567</bug_id>
          
          <creation_ts>2011-08-19 10:05:03 -0700</creation_ts>
          <short_desc>Move calls to finishCreation() from constructor to static create() methods</short_desc>
          <delta_ts>2011-09-20 14:31:47 -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>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>
          <dependson>65288</dependson>
    
    <dependson>66827</dependson>
    
    <dependson>66957</dependson>
    
    <dependson>67064</dependson>
    
    <dependson>67174</dependson>
    
    <dependson>67420</dependson>
    
    <dependson>67692</dependson>
    
    <dependson>68122</dependson>
          <blocked>65347</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hahnenberg">mhahnenberg</reporter>
          <assigned_to name="Mark Hahnenberg">mhahnenberg</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>453892</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2011-08-19 10:05:03 -0700</bug_when>
    <thetext>In this step we want to pull all calls to constructorBody() up out of the constructors and into the static create methods.  This change will also require us to chain the constructorBody() calls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455857</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2011-08-23 17:23:30 -0700</bug_when>
    <thetext>There are quite a few classes that inherit either directly or indirectly from JSCell.  To get around having to submit one gigantic patch, I can submit the changes to the hierarchy incrementally in a top-down fashion.    

The first step is to add the validation functionality to JSCell (see: https://bugs.webkit.org/show_bug.cgi?id=65288).  This will essentially check and set the &quot;isInitializing&quot; flag inside the allocateCell function and add a constructorBody() to JSCell, which will in turn check and clear the &quot;isInitializing&quot; flag.  This change alone will not perform very extensive checks, since the flag will be turned on and then almost immediately turned back off before we visit any constructor bodies except for JSCell&apos;s.

We will then move down the inheritance hierarchy level by level, starting from the top, adding constructorBody() methods wherever there is a non-trivial constructor body, which will call the next constructorBody() method above it in the inheritance hierarchy.  As we go down, we will move those constructorBody() calls out of their constructors and into their static create methods.  This leads to a kind of &quot;unzipping&quot; of initialization lists and constructor bodies down the inheritance hierarchy, which allows us to maintain the correctness of the code across each patch.

As there are seven levels of the inheritance hierarchy not including JSCell, it seems appropriate to split this into seven patches.  This will be a tracking bug for those seven sub-bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>470349</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2011-09-20 14:31:47 -0700</bug_when>
    <thetext>Finished all the levels, closing bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>