<?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>33902</bug_id>
          
          <creation_ts>2010-01-20 07:24:02 -0800</creation_ts>
          <short_desc>Opcode.h use const void* for Opcode cause error #1211 for RVCT compiler</short_desc>
          <delta_ts>2010-01-26 20:20:50 -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>All</rep_platform>
          <op_sys>All</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>0</everconfirmed>
          <reporter name="Lyon Chen">lyon.chen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ggaren</cc>
    
    <cc>staikos</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>182789</commentid>
    <comment_count>0</comment_count>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-20 07:24:02 -0800</bug_when>
    <thetext>In commit r52231, Opcode is changed from void* to const void* when COMPUTED_GOTO is used, this caused a compiling error #1211 for RVCT 4.0 compilers.

Suggest to change to:

--- a/JavaScriptCore/bytecode/Opcode.h
+++ b/JavaScriptCore/bytecode/Opcode.h
@@ -196,7 +196,11 @@
     #undef VERIFY_OPCODE_ID
 
 #if HAVE(COMPUTED_GOTO)
+#if COMPILER(RVCT)
+    typedef void* Opcode;
+#else
     typedef const void* Opcode;
+#endif
 #else
     typedef OpcodeID Opcode;
 #endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182801</commentid>
    <comment_count>1</comment_count>
      <attachid>47035</attachid>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-20 08:03:26 -0800</bug_when>
    <thetext>Created attachment 47035
Patch for bug 33902</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182806</commentid>
    <comment_count>2</comment_count>
      <attachid>47035</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-20 08:14:12 -0800</bug_when>
    <thetext>Comment on attachment 47035
Patch for bug 33902

Two problems here:

    1) We don&apos;t accept patches without change log entries.

    2) This is probably not something that should be ifdef&apos;d based on compiler. If void* works for the other compilers, then the patch should just switch from const void* to void*.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182807</commentid>
    <comment_count>3</comment_count>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-20 08:19:09 -0800</bug_when>
    <thetext>Darin:

In commit r52231, ggaren@apple.com mentioned the change from void* to const void* is to avoid generating bloated codes in interpreter.cpp, so maybe it&apos;s better #ifdef this change?

And maybe RVCT compiler can someday updated to support const void* for computed goto, instead of void*?

Hope to hear from ggaren@apple.com on this matter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182866</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2010-01-20 11:11:05 -0800</bug_when>
    <thetext>&gt; In commit r52231, ggaren@apple.com mentioned the change from void* to const
&gt; void* is to avoid generating bloated codes in interpreter.cpp, so maybe it&apos;s
&gt; better #ifdef this change?

I&apos;m not sure if that specific part of the change is required. I guess you&apos;d have to test to find out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183221</commentid>
    <comment_count>5</comment_count>
      <attachid>47128</attachid>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-21 09:29:03 -0800</bug_when>
    <thetext>Created attachment 47128
New patch with changelog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183231</commentid>
    <comment_count>6</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2010-01-21 09:57:42 -0800</bug_when>
    <thetext>Did you verify that this change doesn&apos;t change code generation for non-RVCT
compilers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183234</commentid>
    <comment_count>7</comment_count>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-21 10:02:53 -0800</bug_when>
    <thetext>No, I didn&apos;t, Garen. I thought your comment means this part is not essential to your optimization, and based on Darin&apos;s comments, I simply removed the #ifdef for RVCT.

Sorry I don&apos;t have the time to verify it for other platforms for now, should I add these #ifdef back?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183239</commentid>
    <comment_count>8</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2010-01-21 10:31:54 -0800</bug_when>
    <thetext>+George Staikos</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183245</commentid>
    <comment_count>9</comment_count>
      <attachid>47131</attachid>
    <who name="Lyon Chen">lyon.chen</who>
    <bug_when>2010-01-21 10:54:06 -0800</bug_when>
    <thetext>Created attachment 47131
New patch with RVCT flag.

Add a new patch with code change limited to RVCT compiler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183246</commentid>
    <comment_count>10</comment_count>
      <attachid>47128</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-21 10:55:14 -0800</bug_when>
    <thetext>Comment on attachment 47128
New patch with changelog.

I’ll let Geoff handle reviewing duties on this bug. I’m not sure I know what the issues are and I know he does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183546</commentid>
    <comment_count>11</comment_count>
      <attachid>47131</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-01-22 01:52:15 -0800</bug_when>
    <thetext>Comment on attachment 47131
New patch with RVCT flag.

Seems fine to have this scoped to COMPILER(RCVT)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184606</commentid>
    <comment_count>12</comment_count>
      <attachid>47131</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-26 08:54:31 -0800</bug_when>
    <thetext>Comment on attachment 47131
New patch with RVCT flag.

Rejecting patch 47131 from commit-queue.

lyon.chen@torchmobile.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitpy/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in WebKitTools/Scripts/webkitpy/committers.py by adding yourself to the file (no review needed).  Due to bug 30084 the commit-queue will require a restart after your change.  Please contact eseidel@chromium.org to request a commit-queue restart.  After restart the commit-queue will correctly respect your committer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184917</commentid>
    <comment_count>13</comment_count>
      <attachid>47131</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-26 20:20:44 -0800</bug_when>
    <thetext>Comment on attachment 47131
New patch with RVCT flag.

Clearing flags on attachment: 47131

Committed r53891: &lt;http://trac.webkit.org/changeset/53891&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184918</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-26 20:20:50 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47035</attachid>
            <date>2010-01-20 08:03:26 -0800</date>
            <delta_ts>2010-01-21 10:54:06 -0800</delta_ts>
            <desc>Patch for bug 33902</desc>
            <filename>PatchFor33902.patch</filename>
            <type>text/plain</type>
            <size>436</size>
            <attacher name="Lyon Chen">lyon.chen</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL2J5dGVjb2RlL09wY29kZS5oDQo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0g
SmF2YVNjcmlwdENvcmUvYnl0ZWNvZGUvT3Bjb2RlLmgJKHJldmlzaW9uIDUzNTQ3KQ0KKysrIEph
dmFTY3JpcHRDb3JlL2J5dGVjb2RlL09wY29kZS5oCSh3b3JraW5nIGNvcHkpDQpAQCAtMTk2LDcg
KzE5NiwxMSBAQA0KICAgICAjdW5kZWYgVkVSSUZZX09QQ09ERV9JRAogCiAjaWYgSEFWRShDT01Q
VVRFRF9HT1RPKQorI2lmIENPTVBJTEVSKFJWQ1QpCisgICAgdHlwZWRlZiB2b2lkKiBPcGNvZGU7
CisjZWxzZQogICAgIHR5cGVkZWYgY29uc3Qgdm9pZCogT3Bjb2RlOworI2VuZGlmCiAjZWxzZQog
ICAgIHR5cGVkZWYgT3Bjb2RlSUQgT3Bjb2RlOwogI2VuZGlmCg==
</data>
<flag name="review"
          id="29391"
          type_id="1"
          status="-"
          setter="darin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47128</attachid>
            <date>2010-01-21 09:29:03 -0800</date>
            <delta_ts>2010-01-21 10:55:14 -0800</delta_ts>
            <desc>New patch with changelog.</desc>
            <filename>33902.patch</filename>
            <type>text/plain</type>
            <size>877</size>
            <attacher name="Lyon Chen">lyon.chen</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCBjYTNlMDgzLi45ZDAyODliIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIg
QEAKKzIwMTAtMDEtMjEgIEx5b24gQ2hlbiAgPGxpYWNoZW5AcmltLmNvbT4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBPcGNvZGUuaCB1c2UgY29uc3Qg
dm9pZCogZm9yIE9wY29kZSBjYXVzZSBlcnJvciAjMTIxMSBmb3IgUlZDVCBjb21waWxlcgorICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM5MDIKKworICAg
ICAgICAqIGJ5dGVjb2RlL09wY29kZS5oOgorCiAyMDEwLTAxLTIwICBNYXJrIFJvd2UgIDxtcm93
ZUBhcHBsZS5jb20+CiAKICAgICAgICAgQnVpbGQgZml4LgpkaWZmIC0tZ2l0IGEvSmF2YVNjcmlw
dENvcmUvYnl0ZWNvZGUvT3Bjb2RlLmggYi9KYXZhU2NyaXB0Q29yZS9ieXRlY29kZS9PcGNvZGUu
aAppbmRleCBiMTExMTNiLi5lODhmMDUxIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29yZS9ieXRl
Y29kZS9PcGNvZGUuaAorKysgYi9KYXZhU2NyaXB0Q29yZS9ieXRlY29kZS9PcGNvZGUuaApAQCAt
MTk2LDcgKzE5Niw3IEBAIG5hbWVzcGFjZSBKU0MgewogICAgICN1bmRlZiBWRVJJRllfT1BDT0RF
X0lECiAKICNpZiBIQVZFKENPTVBVVEVEX0dPVE8pCi0gICAgdHlwZWRlZiBjb25zdCB2b2lkKiBP
cGNvZGU7CisgICAgdHlwZWRlZiB2b2lkKiBPcGNvZGU7CiAjZWxzZQogICAgIHR5cGVkZWYgT3Bj
b2RlSUQgT3Bjb2RlOwogI2VuZGlmCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47131</attachid>
            <date>2010-01-21 10:54:06 -0800</date>
            <delta_ts>2010-01-26 20:20:44 -0800</delta_ts>
            <desc>New patch with RVCT flag.</desc>
            <filename>33902rvct.patch</filename>
            <type>text/plain</type>
            <size>913</size>
            <attacher name="Lyon Chen">lyon.chen</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCBjYTNlMDgzLi45ZDAyODliIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIg
QEAKKzIwMTAtMDEtMjEgIEx5b24gQ2hlbiAgPGxpYWNoZW5AcmltLmNvbT4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBPcGNvZGUuaCB1c2UgY29uc3Qg
dm9pZCogZm9yIE9wY29kZSBjYXVzZSBlcnJvciAjMTIxMSBmb3IgUlZDVCBjb21waWxlcgorICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM5MDIKKworICAg
ICAgICAqIGJ5dGVjb2RlL09wY29kZS5oOgorCiAyMDEwLTAxLTIwICBNYXJrIFJvd2UgIDxtcm93
ZUBhcHBsZS5jb20+CiAKICAgICAgICAgQnVpbGQgZml4LgpkaWZmIC0tZ2l0IGEvSmF2YVNjcmlw
dENvcmUvYnl0ZWNvZGUvT3Bjb2RlLmggYi9KYXZhU2NyaXB0Q29yZS9ieXRlY29kZS9PcGNvZGUu
aAppbmRleCBiMTExMTNiLi5kOWIyMTUzIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29yZS9ieXRl
Y29kZS9PcGNvZGUuaAorKysgYi9KYXZhU2NyaXB0Q29yZS9ieXRlY29kZS9PcGNvZGUuaApAQCAt
MTk2LDcgKzE5NiwxMSBAQCBuYW1lc3BhY2UgSlNDIHsKICAgICAjdW5kZWYgVkVSSUZZX09QQ09E
RV9JRAogCiAjaWYgSEFWRShDT01QVVRFRF9HT1RPKQorI2lmIENPTVBJTEVSKFJWQ1QpCisgICAg
dHlwZWRlZiB2b2lkKiBPcGNvZGU7CisjZWxzZQogICAgIHR5cGVkZWYgY29uc3Qgdm9pZCogT3Bj
b2RlOworI2VuZGlmCiAjZWxzZQogICAgIHR5cGVkZWYgT3Bjb2RlSUQgT3Bjb2RlOwogI2VuZGlm
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>