Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 63e49c5874053da225749bd6358703eab375516a..89d5e5d466a3e05410f7beeed9bcbb3d51ebc403 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -2130,6 +2130,12 @@ |
__ b(eq, instr->TrueLabel(chunk_)); |
} |
+ if (expected & ToBooleanHint::kSimdValue) { |
+ // SIMD value -> true. |
+ __ CompareInstanceType(map, ip, SIMD128_VALUE_TYPE); |
+ __ b(eq, instr->TrueLabel(chunk_)); |
+ } |
+ |
if (expected & ToBooleanHint::kHeapNumber) { |
// heap number -> false iff +0, -0, or NaN. |
DwVfpRegister dbl_scratch = double_scratch0(); |
@@ -5130,6 +5136,17 @@ |
Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); |
final_branch_condition = eq; |
+// clang-format off |
+#define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \ |
+ } else if (String::Equals(type_name, factory->type##_string())) { \ |
+ __ JumpIfSmi(input, false_label); \ |
+ __ ldr(scratch, FieldMemOperand(input, HeapObject::kMapOffset)); \ |
+ __ CompareRoot(scratch, Heap::k##Type##MapRootIndex); \ |
+ final_branch_condition = eq; |
+ SIMD128_TYPES(SIMD128_TYPE) |
+#undef SIMD128_TYPE |
+ // clang-format on |
+ |
} else { |
__ b(false_label); |
} |