Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index fdbe09cf8de1fc47de4a598ca82e97e681ed79d4..99c97500130c44a317414afeeea91e49a69b78aa 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -2869,15 +2869,13 @@ void Builtins::Generate_ConstructWithSpread(MacroAssembler* masm) { |
Label no_protector_check; |
__ Ldr(scratch, FieldMemOperand(spread_map, Map::kBitField2Offset)); |
__ DecodeField<Map::ElementsKindBits>(scratch); |
- __ Cmp(scratch, LAST_FAST_ELEMENTS_KIND); |
+ __ Cmp(scratch, FAST_HOLEY_ELEMENTS); |
__ B(hi, &runtime_call); |
// For non-FastHoley kinds, we can skip the protector check. |
__ Cmp(scratch, FAST_SMI_ELEMENTS); |
__ B(eq, &no_protector_check); |
__ Cmp(scratch, FAST_ELEMENTS); |
__ B(eq, &no_protector_check); |
- __ Cmp(scratch, FAST_DOUBLE_ELEMENTS); |
- __ B(eq, &no_protector_check); |
// Check the ArrayProtector cell. |
__ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); |
__ Ldr(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset)); |