Commit 0640e295 authored by mbrandy's avatar mbrandy Committed by Commit bot

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

Port 8f13b655

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.

R=danno@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29542}
parent 54920cd2
...@@ -329,11 +329,22 @@ void ApiAccessorDescriptor::InitializePlatformSpecific( ...@@ -329,11 +329,22 @@ void ApiAccessorDescriptor::InitializePlatformSpecific(
} }
void MathRoundVariantDescriptor::InitializePlatformSpecific( void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
CallInterfaceDescriptorData* data) { 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[] = { Register registers[] = {
r4, // math rounding function r4, // math rounding function
r6, // vector slot id r6, // vector slot id
r7, // type vector
}; };
data->InitializePlatformSpecific(arraysize(registers), registers); data->InitializePlatformSpecific(arraysize(registers), registers);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment