Index: src/builtins/x64/builtins-x64.cc |
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc |
index b495e13c38ad4ca8bb1a5668911b97169674912f..f9bdcb6150781631873a7b46dd354ba8bd95027d 100644 |
--- a/src/builtins/x64/builtins-x64.cc |
+++ b/src/builtins/x64/builtins-x64.cc |
@@ -2925,15 +2925,13 @@ void Builtins::Generate_ConstructWithSpread(MacroAssembler* masm) { |
Label no_protector_check; |
__ movzxbp(rcx, FieldOperand(r15, Map::kBitField2Offset)); |
__ DecodeField<Map::ElementsKindBits>(rcx); |
- __ cmpp(rcx, Immediate(LAST_FAST_ELEMENTS_KIND)); |
+ __ cmpp(rcx, Immediate(FAST_HOLEY_ELEMENTS)); |
__ j(above, &runtime_call); |
// For non-FastHoley kinds, we can skip the protector check. |
__ cmpp(rcx, Immediate(FAST_SMI_ELEMENTS)); |
__ j(equal, &no_protector_check); |
__ cmpp(rcx, Immediate(FAST_ELEMENTS)); |
__ j(equal, &no_protector_check); |
- __ cmpp(rcx, Immediate(FAST_DOUBLE_ELEMENTS)); |
- __ j(equal, &no_protector_check); |
// Check the ArrayProtector cell. |
__ LoadRoot(rcx, Heap::kArrayProtectorRootIndex); |
__ Cmp(FieldOperand(rcx, PropertyCell::kValueOffset), |