Index: src/builtins/ia32/builtins-ia32.cc |
diff --git a/src/builtins/ia32/builtins-ia32.cc b/src/builtins/ia32/builtins-ia32.cc |
index 55f5bda940f94d6b9e4ed5d39be664ca165203d1..8c5d8c9193e693395575bfa3c46ce4a30ed6cfc7 100644 |
--- a/src/builtins/ia32/builtins-ia32.cc |
+++ b/src/builtins/ia32/builtins-ia32.cc |
@@ -2846,15 +2846,13 @@ void Builtins::Generate_ConstructWithSpread(MacroAssembler* masm) { |
Label no_protector_check; |
__ mov(scratch, FieldOperand(spread_map, Map::kBitField2Offset)); |
__ DecodeField<Map::ElementsKindBits>(scratch); |
- __ cmp(scratch, Immediate(LAST_FAST_ELEMENTS_KIND)); |
+ __ cmp(scratch, Immediate(FAST_HOLEY_ELEMENTS)); |
__ j(above, &runtime_call); |
// For non-FastHoley kinds, we can skip the protector check. |
__ cmp(scratch, Immediate(FAST_SMI_ELEMENTS)); |
__ j(equal, &no_protector_check); |
__ cmp(scratch, Immediate(FAST_ELEMENTS)); |
__ j(equal, &no_protector_check); |
- __ cmp(scratch, Immediate(FAST_DOUBLE_ELEMENTS)); |
- __ j(equal, &no_protector_check); |
// Check the ArrayProtector cell. |
__ LoadRoot(scratch, Heap::kArrayProtectorRootIndex); |
__ cmp(FieldOperand(scratch, PropertyCell::kValueOffset), |