<?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>152838</bug_id>
          
          <creation_ts>2016-01-07 10:43:27 -0800</creation_ts>
          <short_desc>[mips] GPRInfo::toArgumentRegister missing</short_desc>
          <delta_ts>2016-01-07 12:00:30 -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>1153452</commentid>
    <comment_count>0</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-07 10:43:27 -0800</bug_when>
    <thetext>Added missing GPRInfo::toArgumentRegister implementation for MIPS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153455</commentid>
    <comment_count>1</comment_count>
      <attachid>268467</attachid>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-07 10:46:02 -0800</bug_when>
    <thetext>Created attachment 268467
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153458</commentid>
    <comment_count>2</comment_count>
      <attachid>268467</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2016-01-07 10:51:49 -0800</bug_when>
    <thetext>Comment on attachment 268467
Patch

We do not have plans to implement passing arguments in registers for 32 bit platforms.  Therefore this is not needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153469</commentid>
    <comment_count>3</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-07 11:10:09 -0800</bug_when>
    <thetext>GPRInfo::toArgumentRegister is used at Source/JavaScriptCore/jit/CCallHelpers.h:58 which currently breaks compilation on MIPS

BTW, MIPS32 has 32 GPRs so it would be the right thing to pass arguments via registers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153471</commentid>
    <comment_count>4</comment_count>
      <attachid>268467</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2016-01-07 11:17:47 -0800</bug_when>
    <thetext>Comment on attachment 268467
Patch

r=me.  Forgot that this is used in other areas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153473</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2016-01-07 11:21:10 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; GPRInfo::toArgumentRegister is used at
&gt; Source/JavaScriptCore/jit/CCallHelpers.h:58 which currently breaks
&gt; compilation on MIPS
&gt; 
&gt; BTW, MIPS32 has 32 GPRs so it would be the right thing to pass arguments via
&gt; registers.

With only 4 argument registers, it still doesn&apos;t make sense to pass arguments in registers.  Effectively this would only allow for &quot;this&quot; to be passed.  a0 would have the callee, a1 would have the arg count, and a2/a3 would have the tag and payload for this.  Even if we didn&apos;t pass the callee and arg count in registers, that would only give this and arg1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153493</commentid>
    <comment_count>6</comment_count>
      <attachid>268467</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-07 12:00:25 -0800</bug_when>
    <thetext>Comment on attachment 268467
Patch

Clearing flags on attachment: 268467

Committed r194709: &lt;http://trac.webkit.org/changeset/194709&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1153494</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-07 12:00:30 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268467</attachid>
            <date>2016-01-07 10:46:02 -0800</date>
            <delta_ts>2016-01-07 12:00:25 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-152838-20160107214529.patch</filename>
            <type>text/plain</type>
            <size>1422</size>
            <attacher name="Konstantin Tokarev">annulen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0Njk5CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCA4
MjIyZTk2OTZmZTcwYjUyYjgwYjIwMWE4NTQ3YTRkYWU3MzVkZTY3Li5jNmIwZTMzZTZmYTA3MTE3
NTQ2Y2EzZDk3ODZmZmZhNjdhZmQ1MjYyIDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxMyBAQAorMjAxNi0wMS0wNyAgS29uc3RhbnRpbiBUb2thcmV2ICA8YW5udWxlbkB5YW5k
ZXgucnU+CisKKyAgICAgICAgW21pcHNdIEdQUkluZm86OnRvQXJndW1lbnRSZWdpc3RlciBtaXNz
aW5nCisgICAgICAgIGh0dHBzOi8vYn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