Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 179d71ca9b4e8f3f7ebcd2ea007ebe66ece7a8b2..99b6fd51dc0a18577f92202271665fa03420f1db 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -1862,6 +1862,12 @@ |
if (expected & ToBooleanHint::kSymbol) { |
// Symbol value -> true. |
__ CompareInstanceType(map, scratch, SYMBOL_TYPE); |
+ __ B(eq, true_label); |
+ } |
+ |
+ if (expected & ToBooleanHint::kSimdValue) { |
+ // SIMD value -> true. |
+ __ CompareInstanceType(map, scratch, SIMD128_VALUE_TYPE); |
__ B(eq, true_label); |
} |
@@ -5446,6 +5452,20 @@ |
EmitTestAndBranch(instr, eq, scratch, |
(1 << Map::kIsCallable) | (1 << Map::kIsUndetectable)); |
+// clang-format off |
+#define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \ |
+ } else if (String::Equals(type_name, factory->type##_string())) { \ |
+ DCHECK((instr->temp1() != NULL) && (instr->temp2() != NULL)); \ |
+ Register map = ToRegister(instr->temp1()); \ |
+ \ |
+ __ JumpIfSmi(value, false_label); \ |
+ __ Ldr(map, FieldMemOperand(value, HeapObject::kMapOffset)); \ |
+ __ CompareRoot(map, Heap::k##Type##MapRootIndex); \ |
+ EmitBranch(instr, eq); |
+ SIMD128_TYPES(SIMD128_TYPE) |
+#undef SIMD128_TYPE |
+ // clang-format on |
+ |
} else { |
__ B(false_label); |
} |