Revision: 22412
Author:   [email protected]
Date:     Tue Jul 15 19:01:31 2014 UTC
Log:      MIPS: Fix r19500 register usage to match to ASSERT.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/395863002

Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=22412

Modified:
 /branches/bleeding_edge/src/mips/stub-cache-mips.cc
 /branches/bleeding_edge/src/mips64/stub-cache-mips64.cc

=======================================
--- /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Jul 15 08:40:26 2014 UTC +++ /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Jul 15 19:01:31 2014 UTC
@@ -1384,12 +1384,12 @@
   }

   Label number_case;
-  Register match = scratch1();
+  Register match = scratch2();
   Label* smi_target = IncludesNumberType(types) ? &number_case : &miss;
   __ JumpIfSmi(receiver(), smi_target, match);  // Reg match is 0 if Smi.

   // Polymorphic keyed stores may use the map register
-  Register map_reg = scratch2();
+  Register map_reg = scratch1();
   ASSERT(kind() != Code::KEYED_STORE_IC ||
          map_reg.is(KeyedStoreIC::MapRegister()));

=======================================
--- /branches/bleeding_edge/src/mips64/stub-cache-mips64.cc Tue Jul 15 16:57:04 2014 UTC +++ /branches/bleeding_edge/src/mips64/stub-cache-mips64.cc Tue Jul 15 19:01:31 2014 UTC
@@ -1385,12 +1385,12 @@
   }

   Label number_case;
-  Register match = scratch1();
+  Register match = scratch2();
   Label* smi_target = IncludesNumberType(types) ? &number_case : &miss;
   __ JumpIfSmi(receiver(), smi_target, match);  // Reg match is 0 if Smi.

   // Polymorphic keyed stores may use the map register
-  Register map_reg = scratch2();
+  Register map_reg = scratch1();
   ASSERT(kind() != Code::KEYED_STORE_IC ||
          map_reg.is(KeyedStoreIC::MapRegister()));

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to