PPC: Add unoptimized/optimized variants of MathFloor TF code stub
Port 8f13b655b8
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}
This commit is contained in:
parent
54920cd2f0
commit
0640e29577
@ -329,14 +329,25 @@ 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);
|
||||
}
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user