Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index e3a824618dca0f67da43248c4b4e7440610c4fe9..7b6b721a376e5441ed704ecf9c9922324de9d328 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -737,8 +737,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(kIA32Push, 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(kIA32Push, nullptr, value); |
} |
// Select the appropriate opcode based on the call type. |