Index: src/crankshaft/s390/lithium-s390.cc |
diff --git a/src/crankshaft/s390/lithium-s390.cc b/src/crankshaft/s390/lithium-s390.cc |
index 73f7ae6874cd1bac3119b4f08a5cda46bf677086..1387d829d170d858fdb5a1f40bcb631d6a40ebf5 100644 |
--- a/src/crankshaft/s390/lithium-s390.cc |
+++ b/src/crankshaft/s390/lithium-s390.cc |
@@ -807,15 +807,15 @@ LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
HValue* value = instr->value(); |
Representation r = value->representation(); |
HType type = value->type(); |
- ToBooleanICStub::Types expected = instr->expected_input_types(); |
- if (expected.IsEmpty()) expected = ToBooleanICStub::Types::Generic(); |
+ ToBooleanHints expected = instr->expected_input_types(); |
+ if (expected == ToBooleanHint::kNone) expected = ToBooleanHint::kAny; |
bool easy_case = !r.IsTagged() || type.IsBoolean() || type.IsSmi() || |
type.IsJSArray() || type.IsHeapNumber() || type.IsString(); |
LInstruction* branch = new (zone()) LBranch(UseRegister(value)); |
- if (!easy_case && |
- ((!expected.Contains(ToBooleanICStub::SMI) && expected.NeedsMap()) || |
- !expected.IsGeneric())) { |
+ if (!easy_case && ((!(expected & ToBooleanHint::kSmallInteger) && |
+ (expected & ToBooleanHint::kNeedsMap)) || |
+ expected != ToBooleanHint::kAny)) { |
branch = AssignEnvironment(branch); |
} |
return branch; |