<?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>152885</bug_id>
          
          <creation_ts>2016-01-08 03:44:53 -0800</creation_ts>
          <short_desc>[mips] Fixed unused parameter warnings</short_desc>
          <delta_ts>2016-01-08 08:55:27 -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>WebKit Local 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Konstantin Tokarev">annulen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jbriance</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1153792</commentid>
    <comment_count>0</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-08 03:44:53 -0800</bug_when>
    <thetext>Fixed unused parameter warnings</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153793</commentid>
    <comment_count>1</comment_count>
      <attachid>268535</attachid>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-08 03:48:28 -0800</bug_when>
    <thetext>Created attachment 268535
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153808</commentid>
    <comment_count>2</comment_count>
      <attachid>268535</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-01-08 06:20:20 -0800</bug_when>
    <thetext>Comment on attachment 268535
Patch

This looks like a bug.  Applying this patch would cover up the bug.  We should find out who is using these setupArgumentsWithExecState that is ignoring the TrustedImm32.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153813</commentid>
    <comment_count>3</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-08 06:31:07 -0800</bug_when>
    <thetext>Mark, it looked as bug for me too, but  Julien Brianceau explained me that this is the dummy argument used to pass 64-bit arguments.

Source/JavaScriptCore/jit/JITInlines.h:583 defines EABI_32BIT_DUMMY_ARG which is then used in setupArgumentsWithExecState invocations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153819</commentid>
    <comment_count>4</comment_count>
    <who name="Julien Brianceau">jbriance</who>
    <bug_when>2016-01-08 06:44:09 -0800</bug_when>
    <thetext>I see two solutions here:

1) We actually setup the dummy argument, which is not a big deal (one move opcode)

2) We add somethink like this instead to check that this is actually the expected EABI_32BIT_DUMMY_ARG.

    RELEASE_ASSERT(arg1.m_value == 0);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153821</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-08 07:00:27 -0800</bug_when>
    <thetext>Better option for (2) would be ASSERT_UNUSED(arg1, arg1.m_value == 0);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153826</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2016-01-08 08:04:10 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Better option for (2) would be ASSERT_UNUSED(arg1, arg1.m_value == 0);

I&apos;ve looked at the code some more and see that this is the current accepted practice for dealing with EABI_32BIT_DUMMY_ARG.  I think there are better ways to do this, but the current patch is adequate.  I will r+ the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153835</commentid>
    <comment_count>7</comment_count>
      <attachid>268535</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-08 08:55:24 -0800</bug_when>
    <thetext>Comment on attachment 268535
Patch

Clearing flags on attachment: 268535

Committed r194766: &lt;http://trac.webkit.org/changeset/194766&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153836</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-08 08:55:27 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268535</attachid>
            <date>2016-01-08 03:48:28 -0800</date>
            <delta_ts>2016-01-08 08:55:24 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-152885-20160108144755.patch</filename>
            <type>text/plain</type>
            <size>1580</size>
            <attacher name="Konstantin Tokarev">annulen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0NzYyCmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCA1
MzgxZGI4MzRjNDE5MjJjMzY2MjU3OTgwNGZhNzJlNTgwMmVmYzg3Li5iYmVkOWM1MjUwNDc3MjMw
YzM5MzIwNDk1NWRhZWIzYTNkMWMwYmY5IDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxMyBAQAorMjAxNi0wMS0wOCAgS29uc3RhbnRpbiBUb2thcmV2ICA8YW5udWxlbkB5YW5k
ZXguc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