<?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>175994</bug_id>
          
          <creation_ts>2017-08-25 13:37:45 -0700</creation_ts>
          <short_desc>Define *_GIGACAGE_MASK when Gigacage is not supported</short_desc>
          <delta_ts>2017-08-25 16:12:36 -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>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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Don Olmstead">don.olmstead</reporter>
          <assigned_to name="Don Olmstead">don.olmstead</assigned_to>
          <cc>benjamin</cc>
    
    <cc>buildbot</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1342498</commentid>
    <comment_count>0</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-08-25 13:37:45 -0700</bug_when>
    <thetext>After https://trac.webkit.org/changeset/221148/webkit the WinCairo bots report the following errors

error C2065: &apos;JSVALUE_GIGACAGE_MASK&apos;: undeclared identifier
error C2065: &apos;PRIMITIVE_GIGACAGE_MASK&apos;: undeclared identifier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342499</commentid>
    <comment_count>1</comment_count>
      <attachid>319095</attachid>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-08-25 13:41:28 -0700</bug_when>
    <thetext>Created attachment 319095
Patch

Fix suggested by mlam on IRC. Built WinCairo successfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342500</commentid>
    <comment_count>2</comment_count>
      <attachid>319095</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2017-08-25 13:42:25 -0700</bug_when>
    <thetext>Comment on attachment 319095
Patch

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

&gt; Source/WTF/wtf/Gigacage.h:33
&gt; +#define PRIMITIVE_GIGACAGE_MASK UINTPTR_MAX
&gt; +#define JSVALUE_GIGACAGE_MASK UINTPTR_MAX

Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342503</commentid>
    <comment_count>3</comment_count>
      <attachid>319095</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-08-25 13:44:29 -0700</bug_when>
    <thetext>Comment on attachment 319095
Patch

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

&gt;&gt; Source/WTF/wtf/Gigacage.h:33
&gt;&gt; +#define JSVALUE_GIGACAGE_MASK UINTPTR_MAX
&gt; 
&gt; Why?

The wincairo build which does not use bmalloc is failing to build.  Is this the wrong fix for when bmalloc is not used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342504</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2017-08-25 13:45:05 -0700</bug_when>
    <thetext>(In reply to Mark Lam from comment #3)
&gt; Comment on attachment 319095 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=319095&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WTF/wtf/Gigacage.h:33
&gt; &gt;&gt; +#define JSVALUE_GIGACAGE_MASK UINTPTR_MAX
&gt; &gt; 
&gt; &gt; Why?
&gt; 
&gt; The wincairo build which does not use bmalloc is failing to build.  Is this
&gt; the wrong fix for when bmalloc is not used?

I see.  OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342505</commentid>
    <comment_count>5</comment_count>
      <attachid>319095</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2017-08-25 13:45:18 -0700</bug_when>
    <thetext>Comment on attachment 319095
Patch

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

&gt;&gt;&gt;&gt; Source/WTF/wtf/Gigacage.h:33
&gt;&gt;&gt;&gt; +#define JSVALUE_GIGACAGE_MASK UINTPTR_MAX
&gt;&gt;&gt; 
&gt;&gt;&gt; Why?
&gt;&gt; 
&gt;&gt; The wincairo build which does not use bmalloc is failing to build.  Is this the wrong fix for when bmalloc is not used?
&gt; 
&gt; I see.  OK.

Please set these to 0, not UINTPTR_MAX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342506</commentid>
    <comment_count>6</comment_count>
      <attachid>319095</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-08-25 13:49:00 -0700</bug_when>
    <thetext>Comment on attachment 319095
Patch

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

&gt;&gt;&gt;&gt;&gt; Source/WTF/wtf/Gigacage.h:33
&gt;&gt;&gt;&gt;&gt; +#define JSVALUE_GIGACAGE_MASK UINTPTR_MAX
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; Why?
&gt;&gt;&gt; 
&gt;&gt;&gt; The wincairo build which does not use bmalloc is failing to build.  Is this the wrong fix for when bmalloc is not used?
&gt;&gt; 
&gt;&gt; I see.  OK.
&gt; 
&gt; Please set these to 0, not UINTPTR_MAX.

At first, I thought that the llint code is unconditionally applying the masm.  But I see that the llint code only applies the mask if GIGACAGE_ENABLED.  Hence, setting these to 0 makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342507</commentid>
    <comment_count>7</comment_count>
      <attachid>319096</attachid>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-08-25 13:50:24 -0700</bug_when>
    <thetext>Created attachment 319096
Patch

Setting masks to 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342510</commentid>
    <comment_count>8</comment_count>
      <attachid>319096</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-08-25 13:56:36 -0700</bug_when>
    <thetext>Comment on attachment 319096
Patch

r=me if EWS is green and if this patch makes the code build on wincairo (which was where this issue was detected) and tests passes there as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342558</commentid>
    <comment_count>9</comment_count>
      <attachid>319096</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-25 16:11:28 -0700</bug_when>
    <thetext>Comment on attachment 319096
Patch

Clearing flags on attachment: 319096

Committed r221211: &lt;http://trac.webkit.org/changeset/221211&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342559</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-25 16:11:30 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342560</commentid>
    <comment_count>11</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-25 16:12:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/34091627&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>319095</attachid>
            <date>2017-08-25 13:41:28 -0700</date>
            <delta_ts>2017-08-25 13:50:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-175994.diff</filename>
            <type>text/plain</type>
            <size>949</size>
            <attacher name="Don Olmstead">don.olmstead</attac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W5lIEdJR0FDQUdFX0VOQUJMRUQgMAor
I2RlZmluZSBQUklNSVRJVkVfR0lHQUNBR0VfTUFTSyBVSU5UUFRSX01BWAorI2RlZmluZSBKU1ZB
TFVFX0dJR0FDQUdFX01BU0sgVUlOVFBUUl9NQVgKIAogZXh0ZXJuICJDIiB7CiBleHRlcm4gV1RG
X0VYUE9SVERBVEEgdm9pZCogZ19naWdhY2FnZUJhc2VQdHI7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>319096</attachid>
            <date>2017-08-25 13:50:24 -0700</date>
            <delta_ts>2017-08-25 16:11:28 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-175994.diff</filename>
            <type>text/plain</type>
            <size>929</size>
            <attacher name="Don Olmstead">don.olmstead</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nIGIvU291cmNlL1dURi9DaGFuZ2VMb2cK
aW5kZXggNDRkYmE0N2EyMzQuLmM3MmMyYjM3OTg4IDEwMDY0NAotLS0gYS9Tb3VyY2UvV1RGL0No
YW5nZUxvZworKysgYi9Tb3VyY2UvV1RGL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEyIEBACisyMDE3
LTA4LTI1ICBEb24gT2xtc3RlYWQgIDxkb24ub2xtc3RlYWRAc29ueS5jb20+CisKKyAgICAgICAg
RGVmaW5lICpfR0lHQUNBR0VfTUFTSyB3aGVuIEdpZ2FjYWdlIGlzIG5vdCBzdXBwb3J0ZWQKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3NTk5NAorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogd3RmL0dpZ2Fj
YWdlLmg6CisKIDIwMTctMDgtMjQgIENvbW1pdCBRdWV1ZSAgPGNvbW1pdC1xdWV1ZUB3ZWJraXQ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