Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index 729bedee5f89a19097cfb78de5d6ede8fcdcb498..f8652ea84346abb3f87596723611a56f56583876 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -2083,29 +2083,30 @@ void LCodeGen::DoBranch(LBranch* instr) { |
__ ld(at, FieldMemOperand(reg, String::kLengthOffset)); |
EmitBranch(instr, ne, at, Operand(zero_reg)); |
} else { |
- ToBooleanStub::Types expected = instr->hydrogen()->expected_input_types(); |
+ ToBooleanICStub::Types expected = |
+ instr->hydrogen()->expected_input_types(); |
// Avoid deopts in the case where we've never executed this path before. |
- if (expected.IsEmpty()) expected = ToBooleanStub::Types::Generic(); |
+ if (expected.IsEmpty()) expected = ToBooleanICStub::Types::Generic(); |
- if (expected.Contains(ToBooleanStub::UNDEFINED)) { |
+ if (expected.Contains(ToBooleanICStub::UNDEFINED)) { |
// undefined -> false. |
__ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
__ Branch(instr->FalseLabel(chunk_), eq, reg, Operand(at)); |
} |
- if (expected.Contains(ToBooleanStub::BOOLEAN)) { |
+ if (expected.Contains(ToBooleanICStub::BOOLEAN)) { |
// Boolean -> its value. |
__ LoadRoot(at, Heap::kTrueValueRootIndex); |
__ Branch(instr->TrueLabel(chunk_), eq, reg, Operand(at)); |
__ LoadRoot(at, Heap::kFalseValueRootIndex); |
__ Branch(instr->FalseLabel(chunk_), eq, reg, Operand(at)); |
} |
- if (expected.Contains(ToBooleanStub::NULL_TYPE)) { |
+ if (expected.Contains(ToBooleanICStub::NULL_TYPE)) { |
// 'null' -> false. |
__ LoadRoot(at, Heap::kNullValueRootIndex); |
__ Branch(instr->FalseLabel(chunk_), eq, reg, Operand(at)); |
} |
- if (expected.Contains(ToBooleanStub::SMI)) { |
+ if (expected.Contains(ToBooleanICStub::SMI)) { |
// Smis: 0 -> false, all other -> true. |
__ Branch(instr->FalseLabel(chunk_), eq, reg, Operand(zero_reg)); |
__ JumpIfSmi(reg, instr->TrueLabel(chunk_)); |
@@ -2126,14 +2127,14 @@ void LCodeGen::DoBranch(LBranch* instr) { |
} |
} |
- if (expected.Contains(ToBooleanStub::SPEC_OBJECT)) { |
+ if (expected.Contains(ToBooleanICStub::SPEC_OBJECT)) { |
// spec object -> true. |
__ lbu(at, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
__ Branch(instr->TrueLabel(chunk_), |
ge, at, Operand(FIRST_JS_RECEIVER_TYPE)); |
} |
- if (expected.Contains(ToBooleanStub::STRING)) { |
+ if (expected.Contains(ToBooleanICStub::STRING)) { |
// String value -> false iff empty. |
Label not_string; |
__ lbu(at, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
@@ -2144,14 +2145,14 @@ void LCodeGen::DoBranch(LBranch* instr) { |
__ bind(¬_string); |
} |
- if (expected.Contains(ToBooleanStub::SYMBOL)) { |
+ if (expected.Contains(ToBooleanICStub::SYMBOL)) { |
// Symbol value -> true. |
const Register scratch = scratch1(); |
__ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
__ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); |
} |
- if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { |
+ if (expected.Contains(ToBooleanICStub::SIMD_VALUE)) { |
// SIMD value -> true. |
const Register scratch = scratch1(); |
__ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
@@ -2159,7 +2160,7 @@ void LCodeGen::DoBranch(LBranch* instr) { |
Operand(SIMD128_VALUE_TYPE)); |
} |
- if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { |
+ if (expected.Contains(ToBooleanICStub::HEAP_NUMBER)) { |
// heap number -> false iff +0, -0, or NaN. |
DoubleRegister dbl_scratch = double_scratch0(); |
Label not_heap_number; |