Index: test/unittests/compiler/instruction-selector-unittest.h |
diff --git a/test/unittests/compiler/instruction-selector-unittest.h b/test/unittests/compiler/instruction-selector-unittest.h |
index 4f2cdbc0ffcdab1602311ca2b1ca908c8dec7c3f..7605cbdbb0200afe860681ea78919647f87d4590 100644 |
--- a/test/unittests/compiler/instruction-selector-unittest.h |
+++ b/test/unittests/compiler/instruction-selector-unittest.h |
@@ -147,6 +147,10 @@ class InstructionSelectorTest : public TestWithContext, public TestWithZone { |
return ToConstant(operand).ToFloat32(); |
} |
+ double ToFloat64(const InstructionOperand* operand) const { |
+ return ToConstant(operand).ToFloat64(); |
+ } |
+ |
int32_t ToInt32(const InstructionOperand* operand) const { |
return ToConstant(operand).ToInt32(); |
} |
@@ -155,6 +159,10 @@ class InstructionSelectorTest : public TestWithContext, public TestWithZone { |
return ToConstant(operand).ToInt64(); |
} |
+ Handle<HeapObject> ToHeapObject(const InstructionOperand* operand) const { |
+ return ToConstant(operand).ToHeapObject(); |
+ } |
+ |
int ToVreg(const InstructionOperand* operand) const { |
if (operand->IsConstant()) return operand->index(); |
EXPECT_EQ(InstructionOperand::UNALLOCATED, operand->kind()); |