Index: src/crankshaft/mips/lithium-mips.cc |
diff --git a/src/crankshaft/mips/lithium-mips.cc b/src/crankshaft/mips/lithium-mips.cc |
index b497036917afa3caa121f37c78cb1644b49c9fe1..a6cbca6de09bbe93e67ba79d2ea9deadfde44087 100644 |
--- a/src/crankshaft/mips/lithium-mips.cc |
+++ b/src/crankshaft/mips/lithium-mips.cc |
@@ -877,15 +877,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; |