Reviewers: danno, Paul Lind, palfia, kisg, dusmil,

Description:
MIPS: Fix r19500 register usage to match to ASSERT.

BUG=

Please review this at https://codereview.chromium.org/395863002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+4, -4 lines):
  M src/mips/stub-cache-mips.cc
  M src/mips64/stub-cache-mips64.cc


Index: src/mips/stub-cache-mips.cc
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
index 3a0b18f70ffaea03a3260a5bff45ff2cb72d683c..fc7315781c272dabbd9ab73700c5de2c446ae3d4 100644
--- a/src/mips/stub-cache-mips.cc
+++ b/src/mips/stub-cache-mips.cc
@@ -1384,12 +1384,12 @@ Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC(
   }

   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()));

Index: src/mips64/stub-cache-mips64.cc
diff --git a/src/mips64/stub-cache-mips64.cc b/src/mips64/stub-cache-mips64.cc index 5260eb3e95a724aaa0a85499da2e5bfd75a2f348..a84764baf2fcbab5ee04abe81a976819f1842e10 100644
--- a/src/mips64/stub-cache-mips64.cc
+++ b/src/mips64/stub-cache-mips64.cc
@@ -1384,12 +1384,12 @@ Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC(
   }

   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