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 d48df12d0794f3f1c241efa3739b0a847a4ac337..ee5f610ecd610fd8cbd8a0afe172d39a956fce46 100644 |
--- a/test/unittests/compiler/instruction-selector-unittest.h |
+++ b/test/unittests/compiler/instruction-selector-unittest.h |
@@ -146,6 +146,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(); |
} |
@@ -154,6 +158,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()); |