| Index: src/compiler/x87/instruction-selector-x87.cc
|
| diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc
|
| index 04a7d5a09af40ebb8787c354b7e702ceaee64654..95aa70ac923c429a11b451a43f56c1da4c2a2c62 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -853,10 +853,14 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) {
|
| // Push any stack arguments.
|
| for (Node* input : base::Reversed(buffer.pushed_nodes)) {
|
| // TODO(titzer): handle pushing double parameters.
|
| + if (input == nullptr) continue;
|
| InstructionOperand value =
|
| g.CanBeImmediate(input)
|
| ? g.UseImmediate(input)
|
| - : IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input);
|
| + : IsSupported(ATOM) ||
|
| + sequence()->IsFloat(GetVirtualRegister(input))
|
| + ? g.UseRegister(input)
|
| + : g.Use(input);
|
| Emit(kX87Push, g.NoOutput(), value);
|
| }
|
| }
|
|
|