summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h')
-rw-r--r--deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h b/deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h
index 05c4d04eac..203daca69f 100644
--- a/deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h
+++ b/deps/v8/test/unittests/compiler/backend/instruction-selector-unittest.h
@@ -267,8 +267,10 @@ class InstructionSelectorTest : public TestWithNativeContextAndZone {
} else {
EXPECT_EQ(InstructionOperand::IMMEDIATE, operand->kind());
auto imm = ImmediateOperand::cast(operand);
- if (imm->type() == ImmediateOperand::INLINE) {
- return Constant(imm->inline_value());
+ if (imm->type() == ImmediateOperand::INLINE_INT32) {
+ return Constant(imm->inline_int32_value());
+ } else if (imm->type() == ImmediateOperand::INLINE_INT64) {
+ return Constant(imm->inline_int64_value());
}
i = immediates_.find(imm->indexed_value());
EXPECT_EQ(imm->indexed_value(), i->first);