Commit 493e5b0a authored by Pierre Langlois's avatar Pierre Langlois Committed by Commit Bot

Re-enable SSE version of the DoubleToI stub

When simplifying the DoubleToI stub
(https://chromium-review.googlesource.com/c/v8/v8/+/720963), I accidentaly
removed support for generating a version of the stub which uses SSE
instructions. Re-enable support for this.

Bug: chromium:777304
Change-Id: I03c14464a2cf288216f59f59c88be7af42ef350b
Reviewed-on: https://chromium-review.googlesource.com/733130
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48840}
parent a11b0d96
......@@ -790,7 +790,8 @@ class DoubleToIStub : public PlatformCodeStub {
public:
DoubleToIStub(Isolate* isolate, Register destination)
: PlatformCodeStub(isolate) {
minor_key_ = DestinationRegisterBits::encode(destination.code());
minor_key_ = DestinationRegisterBits::encode(destination.code()) |
SSE3Bits::encode(CpuFeatures::IsSupported(SSE3) ? 1 : 0);
}
bool SometimesSetsUpAFrame() override { return false; }
......@@ -803,7 +804,8 @@ class DoubleToIStub : public PlatformCodeStub {
static const int kBitsPerRegisterNumber = 6;
STATIC_ASSERT((1L << kBitsPerRegisterNumber) >= Register::kNumRegisters);
class DestinationRegisterBits
: public BitField<int, 0, kBitsPerRegisterNumber> {}; // NOLINT
: public BitField<int, 0, kBitsPerRegisterNumber> {};
class SSE3Bits : public BitField<int, kBitsPerRegisterNumber, 1> {};
DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
DEFINE_PLATFORM_CODE_STUB(DoubleToI, PlatformCodeStub);
......
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