| Index: src/crankshaft/arm/lithium-arm.cc
|
| diff --git a/src/crankshaft/arm/lithium-arm.cc b/src/crankshaft/arm/lithium-arm.cc
|
| index a05194f86db7c6219df534432ecf4bb30f799bb0..e32e7e6bb06053d30e85701db7573bcd1d5ad4ea 100644
|
| --- a/src/crankshaft/arm/lithium-arm.cc
|
| +++ b/src/crankshaft/arm/lithium-arm.cc
|
| @@ -904,14 +904,14 @@ LInstruction* LChunkBuilder::DoBranch(HBranch* instr) {
|
| HValue* value = instr->value();
|
| Representation r = value->representation();
|
| HType type = value->type();
|
| - ToBooleanStub::Types expected = instr->expected_input_types();
|
| - if (expected.IsEmpty()) expected = ToBooleanStub::Types::Generic();
|
| + ToBooleanICStub::Types expected = instr->expected_input_types();
|
| + if (expected.IsEmpty()) expected = ToBooleanICStub::Types::Generic();
|
|
|
| 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(ToBooleanStub::SMI) && expected.NeedsMap()) ||
|
| + ((!expected.Contains(ToBooleanICStub::SMI) && expected.NeedsMap()) ||
|
| !expected.IsGeneric())) {
|
| branch = AssignEnvironment(branch);
|
| }
|
|
|