MIPS: Fix Add a MathFloor stub generated with TurboFan.
authorpaul.lind <paul.lind@imgtec.com>
Mon, 11 May 2015 18:49:54 +0000 (11:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 18:49:51 +0000 (18:49 +0000)
Port abc35080b33cc31e47b9913e64ac99ec687c6b65

BUG=

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

Cr-Commit-Position: refs/heads/master@{#28347}

src/mips/interface-descriptors-mips.cc
src/mips64/interface-descriptors-mips64.cc

index 09413e7..e02b975 100644 (file)
@@ -373,8 +373,8 @@ void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
 
 void MathRoundVariantDescriptor::Initialize(CallInterfaceDescriptorData* data) {
   Register registers[] = {
-      a1,  // context
-      a2,  // math rounding function
+      cp,  // context
+      a1,  // math rounding function
       a3,  // vector slot id
   };
   Representation representations[] = {
index f683df9..6a4329f 100644 (file)
@@ -373,8 +373,8 @@ void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
 
 void MathRoundVariantDescriptor::Initialize(CallInterfaceDescriptorData* data) {
   Register registers[] = {
-      a1,  // context
-      a2,  // math rounding function
+      cp,  // context
+      a1,  // math rounding function
       a3,  // vector slot id
   };
   Representation representations[] = {