Reviewers: danno, dstence, michael_dawson,

Description:
PPC: Add unoptimized/optimized variants of MathFloor TF code stub

Port 8f13b655b8a10dae2116dd18b32f09337bb2d410

Original commit message:
    - Add a TurboFanIC class, derived from TurboFanCodeStub, that
      automatically distinguishes between versions of the IC called from
      optimized and unoptimized code.
    - Add appropriate InterfaceDescriptors for both the versions of the
      stub called from unoptimized and optimized code
    - Change the MathFloor TF stub generator to output either the
      for-optimized or for-unoptimized version based on the minor_key
      parameter.

[email protected], [email protected], [email protected]
BUG=

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

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+13, -2 lines):
  M src/ppc/interface-descriptors-ppc.cc


Index: src/ppc/interface-descriptors-ppc.cc
diff --git a/src/ppc/interface-descriptors-ppc.cc b/src/ppc/interface-descriptors-ppc.cc index 2d0c55fd28a7103b3a3f6872d14ded0cc50f8231..fc1567e8204a56c2d7d2f269c0b6110f7128ea18 100644
--- a/src/ppc/interface-descriptors-ppc.cc
+++ b/src/ppc/interface-descriptors-ppc.cc
@@ -329,11 +329,22 @@ void ApiAccessorDescriptor::InitializePlatformSpecific(
 }


-void MathRoundVariantDescriptor::InitializePlatformSpecific(
-    CallInterfaceDescriptorData* data) {
+void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
+    InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
+  Register registers[] = {
+      r4,  // math rounding function
+      r6,  // vector slot id
+  };
+  data->InitializePlatformSpecific(arraysize(registers), registers);
+}
+
+
+void MathRoundVariantCallFromOptimizedCodeDescriptor::
+    InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
   Register registers[] = {
       r4,  // math rounding function
       r6,  // vector slot id
+      r7,  // type vector
   };
   data->InitializePlatformSpecific(arraysize(registers), registers);
 }


--
--
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