| Index: src/crankshaft/x64/lithium-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-x64.cc b/src/crankshaft/x64/lithium-x64.cc
|
| index 1a69bc77a83647b17c08d07964afa8f3d83651f2..e15fbca934c1fbabe7b7139fc2ef4d8108966027 100644
|
| --- a/src/crankshaft/x64/lithium-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-x64.cc
|
| @@ -933,14 +933,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);
|
| }
|
|
|