Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 969abb094481c07ac737e356750724b35fd7f568..fed40f62fb7f3925e7d214c8cb4a94dd976adb95 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -1089,9 +1089,15 @@ void InstructionSelector::VisitGuard(Node* node) { |
void InstructionSelector::VisitParameter(Node* node) { |
OperandGenerator g(this); |
int index = ParameterIndexOf(node->op()); |
- Emit(kArchNop, |
- g.DefineAsLocation(node, linkage()->GetParameterLocation(index), |
- linkage()->GetParameterType(index))); |
+ InstructionOperand op = |
+ linkage()->ParameterHasSecondaryLocation(index) |
+ ? g.DefineAsDualLocation( |
+ node, linkage()->GetParameterLocation(index), |
+ linkage()->GetParameterSecondaryLocation(index)) |
+ : g.DefineAsLocation(node, linkage()->GetParameterLocation(index), |
+ linkage()->GetParameterType(index)); |
+ |
+ Emit(kArchNop, op); |
} |