Index: test/unittests/compiler/instruction-selector-unittest.cc |
diff --git a/test/unittests/compiler/instruction-selector-unittest.cc b/test/unittests/compiler/instruction-selector-unittest.cc |
index 5c45632978b988e6ec0d24c024c1613519a29da2..ba420f75ac87f332e77d1d8df1eabb2645bf3afe 100644 |
--- a/test/unittests/compiler/instruction-selector-unittest.cc |
+++ b/test/unittests/compiler/instruction-selector-unittest.cc |
@@ -138,6 +138,14 @@ bool InstructionSelectorTest::Stream::IsFixed(const InstructionOperand* operand, |
} |
+bool InstructionSelectorTest::Stream::IsSameAsFirst( |
+ const InstructionOperand* operand) const { |
+ if (!operand->IsUnallocated()) return false; |
+ const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); |
+ return unallocated->HasSameAsInputPolicy(); |
+} |
+ |
+ |
bool InstructionSelectorTest::Stream::IsUsedAtStart( |
const InstructionOperand* operand) const { |
if (!operand->IsUnallocated()) return false; |