<?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>104085</bug_id>
          
          <creation_ts>2012-12-04 21:43:33 -0800</creation_ts>
          <short_desc>Fix broken WinCE build due to call to add64 in JIT.cpp</short_desc>
          <delta_ts>2012-12-11 19:37:03 -0800</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>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>104103</dup_id>
          
          <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="Vivek Galatage">vivek.vg</reporter>
          <assigned_to name="Vivek Galatage">vivek.vg</assigned_to>
          <cc>andersca</cc>
    
    <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>gaborb</cc>
    
    <cc>ggaren</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>oliver</cc>
    
    <cc>paroga</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>783379</commentid>
    <comment_count>0</comment_count>
    <who name="Vivek Galatage">vivek.vg</who>
    <bug_when>2012-12-04 21:43:33 -0800</bug_when>
    <thetext>The method add64() is called inside JIT::privateCompileMainPass(). This call should be under the #if USE(JSVALUE64) guard as its not implemented in WinCE MacroAssemblerARM.cpp

Patch follows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>783381</commentid>
    <comment_count>1</comment_count>
      <attachid>177666</attachid>
    <who name="Vivek Galatage">vivek.vg</who>
    <bug_when>2012-12-04 21:46:44 -0800</bug_when>
    <thetext>Created attachment 177666
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>784755</commentid>
    <comment_count>2</comment_count>
      <attachid>177666</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2012-12-06 01:36:27 -0800</bug_when>
    <thetext>Comment on attachment 177666
Patch

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

&gt; Source/JavaScriptCore/ChangeLog:9
&gt; +        This call should be under the #if USE(JSVALUE64) guard as its not implemented in WinCE MacroAssemblerARM.cpp

This has _nothing_ to do with WinCE. It&apos;s a &quot;problem&quot; of the traditional ARM MacroAssembler.
Correct way to fix this is to implement add64() in the MacroAssembler.
Usually the szeged guys maintain the traditional ARM (e.g. https://trac.webkit.org/changeset/135610).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>784830</commentid>
    <comment_count>3</comment_count>
    <who name="Vivek Galatage">vivek.vg</who>
    <bug_when>2012-12-06 04:00:28 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 177666 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=177666&amp;action=review
&gt; 
&gt; &gt; Source/JavaScriptCore/ChangeLog:9
&gt; &gt; +        This call should be under the #if USE(JSVALUE64) guard as its not implemented in WinCE MacroAssemblerARM.cpp
&gt; 
&gt; This has _nothing_ to do with WinCE. It&apos;s a &quot;problem&quot; of the traditional ARM MacroAssembler.

Thank you Patrick, I wasn&apos;t aware of this.

&gt; Correct way to fix this is to implement add64() in the MacroAssembler.
&gt; Usually the szeged guys maintain the traditional ARM (e.g. https://trac.webkit.org/changeset/135610).

I added the macro guard as currently all the calls to add64 are under the #if USE(JSVALUE64) except this one. Hence thought this would fix the issue for the time being until a real add64 is implemented. But may be I am wrong with the approach. Thanks for pointing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>784976</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-12-06 09:10:58 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 177666 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=177666&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/JavaScriptCore/ChangeLog:9
&gt; &gt; &gt; +        This call should be under the #if USE(JSVALUE64) guard as its not implemented in WinCE MacroAssemblerARM.cpp
&gt; &gt; 
&gt; &gt; This has _nothing_ to do with WinCE. It&apos;s a &quot;problem&quot; of the traditional ARM MacroAssembler.
&gt; 
&gt; Thank you Patrick, I wasn&apos;t aware of this.
&gt; 
&gt; &gt; Correct way to fix this is to implement add64() in the MacroAssembler.
&gt; &gt; Usually the szeged guys maintain the traditional ARM (e.g. https://trac.webkit.org/changeset/135610).
&gt; 
&gt; I added the macro guard as currently all the calls to add64 are under the #if USE(JSVALUE64) except this one. Hence thought this would fix the issue for the time being until a real add64 is implemented. But may be I am wrong with the approach. Thanks for pointing this.

I don&apos;t recommend using this kind of thinking in the future. Your change breaks a new JSC feature on all 32-bit platforms just because one particular kind of 32-bit platform has a broken assembler. We don&apos;t usually like to fix bugs by introducing new ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>785291</commentid>
    <comment_count>5</comment_count>
    <who name="Vivek Galatage">vivek.vg</who>
    <bug_when>2012-12-06 14:40:02 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; I don&apos;t recommend using this kind of thinking in the future. Your change breaks a new JSC feature on all 32-bit platforms just because one particular kind of 32-bit platform has a broken assembler. We don&apos;t usually like to fix bugs by introducing new ones.

I apologize for not considering the consequences of my changes. I will make sure to consider all these scenarios before submitting the patches going forward. Thanks for your feedback, really appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>789126</commentid>
    <comment_count>6</comment_count>
    <who name="Vivek Galatage">vivek.vg</who>
    <bug_when>2012-12-11 19:37:03 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 104103 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>177666</attachid>
            <date>2012-12-04 21:46:44 -0800</date>
            <delta_ts>2012-12-06 01:36:27 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-104085-20121205111451.patch</filename>
            <type>text/plain</type>
            <size>1773</size>
            <attacher name="Vivek Galatage">vivek.vg</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM2NjM3CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCAx
MWQxNmU2NDEzNjAyYTk0OWM5NWJlYTg1NTMyN2JiZjQ1MjBmNDYyLi5mZTJkMWQ5ZTg2YWIwNzFj
ZDFkN2UzZWYzNmRjMDA4NmFjMWM0NDU1IDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNiBAQAorMjAxMi0xMi0wNCAgVml2ZWsgR2FsYXRhZ2UgIDx2aXZlay52Z0BzYW1zdW5n
LmNvbT4KKworICAgICAgICBGaXggYnJva2VuIFdpbkNFIGJ1aWxkIGR1ZSB0byBjYWxsIHRvIGFk
ZDY0IGluIEpJVC5jcHAKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTEwNDA4NQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIFRoZSBtZXR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ZzZXQoKSk7CiAjZW5kaWYKICAgICAgICAgCisjaWYgVVNFKEpTVkFMVUU2NCkKICAgICAgICAg
aWYgKG1fY29tcGlsYXRpb24pIHsKICAgICAgICAgICAgIGFkZDY0KAogICAgICAgICAgICAgICAg
IFRydXN0ZWRJbW0zMigxKSwKICAgICAgICAgICAgICAgICBBYnNvbHV0ZUFkZHJlc3MobV9jb21w
aWxhdGlvbi0+ZXhlY3V0aW9uQ291bnRlckZvcihQcm9maWxlcjo6T3JpZ2luU3RhY2soUHJvZmls
ZXI6Ok9yaWdpbigKICAgICAgICAgICAgICAgICAgICAgbV9jb21waWxhdGlvbi0+Ynl0ZWNvZGVz
KCksIG1fYnl0ZWNvZGVPZmZzZXQpKSktPmFkZHJlc3MoKSkpOwogICAgICAgICB9CisjZW5kaWYK
IAogICAgICAgICBzd2l0Y2ggKG1faW50ZXJwcmV0ZXItPmdldE9wY29kZUlEKGN1cnJlbnRJbnN0
cnVjdGlvbi0+dS5vcGNvZGUpKSB7CiAgICAgICAgIERFRklORV9CSU5BUllfT1Aob3BfZGVsX2J5
X3ZhbCkK
</data>
<flag name="review"
          id="193905"
          type_id="1"
          status="-"
          setter="paroga"
    />
          </attachment>
      

    </bug>

</bugzilla>