| Index: src/compiler/x64/instruction-selector-x64.cc
|
| diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc
|
| index c1f2e0cb201f671a46f748b88f5cc258227e5387..0e6e220306a8c921d01c8e10a00cf6f524022000 100644
|
| --- a/src/compiler/x64/instruction-selector-x64.cc
|
| +++ b/src/compiler/x64/instruction-selector-x64.cc
|
| @@ -942,8 +942,11 @@ void InstructionSelector::VisitCall(Node* node) {
|
| for (auto i = buffer.pushed_nodes.rbegin(); i != buffer.pushed_nodes.rend();
|
| ++i) {
|
| // TODO(titzer): handle pushing double parameters.
|
| - Emit(kX64Push, nullptr,
|
| - g.CanBeImmediate(*i) ? g.UseImmediate(*i) : g.Use(*i));
|
| + InstructionOperand* value =
|
| + g.CanBeImmediate(*i) ? g.UseImmediate(*i) : IsSupported(ATOM)
|
| + ? g.UseRegister(*i)
|
| + : g.Use(*i);
|
| + Emit(kX64Push, nullptr, value);
|
| }
|
|
|
| // Select the appropriate opcode based on the call type.
|
|
|