| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 6e22961bb5087e7e6e468f39ebaaa3ba5d000ff3..0d4d98a5c250c813653e13cb2e44c2697af47fe3 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -2180,6 +2180,14 @@ void LCodeGen::DoBranch(LBranch* instr) {
|
| __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE));
|
| }
|
|
|
| + if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
|
| + // SIMD value -> true.
|
| + const Register scratch = scratch1();
|
| + __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
|
| + __ Branch(instr->TrueLabel(chunk_), eq, scratch,
|
| + Operand(FLOAT32X4_TYPE));
|
| + }
|
| +
|
| if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
|
| // heap number -> false iff +0, -0, or NaN.
|
| DoubleRegister dbl_scratch = double_scratch0();
|
| @@ -5715,6 +5723,13 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label,
|
| *cmp2 = Operand(zero_reg);
|
| final_branch_condition = eq;
|
|
|
| + } else if (String::Equals(type_name, factory->float32x4_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ GetObjectType(input, input, scratch);
|
| + *cmp1 = scratch;
|
| + *cmp2 = Operand(FLOAT32X4_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| } else {
|
| *cmp1 = at;
|
| *cmp2 = Operand(zero_reg); // Set to valid regs, to avoid caller assertion.
|
|
|