Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index c56206a9ea899a80dfec0fa8b0c66d2a0dd449b4..d63338201845f93fc8fa2900082855052af659b6 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2268,6 +2268,12 @@ void LCodeGen::DoBranch(LBranch* instr) { |
__ b(eq, instr->TrueLabel(chunk_)); |
} |
+ if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { |
+ // SIMD value -> true. |
+ __ CompareInstanceType(map, ip, FLOAT32X4_TYPE); |
+ __ b(eq, instr->TrueLabel(chunk_)); |
+ } |
+ |
if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { |
// heap number -> false iff +0, -0, or NaN. |
DwVfpRegister dbl_scratch = double_scratch0(); |
@@ -5681,6 +5687,11 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label, |
__ tst(scratch, Operand(1 << Map::kIsUndetectable)); |
final_branch_condition = eq; |
+ } else if (String::Equals(type_name, factory->float32x4_string())) { |
+ __ JumpIfSmi(input, false_label); |
+ __ CompareObjectType(input, scratch, no_reg, FLOAT32X4_TYPE); |
+ final_branch_condition = eq; |
+ |
} else { |
__ b(false_label); |
} |