| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 3ab60c8d8cc64b61e5c1c05114690f536f90addd..4efbc69776309e74777544d691ae4ae883bd3187 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -1565,6 +1565,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
|
| factory->heap_number_map());
|
| __ j(equal, &heap_number, Label::kNear);
|
| if (cc != equal) {
|
| + Label not_simd;
|
| __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset));
|
| __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset));
|
| // Call runtime on identical objects. Otherwise return equal.
|
| @@ -1574,8 +1575,11 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
|
| __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE)));
|
| __ j(equal, &runtime_call, Label::kFar);
|
| // Call runtime on identical SIMD values since we must throw a TypeError.
|
| - __ cmpb(rcx, Immediate(static_cast<uint8_t>(FLOAT32X4_TYPE)));
|
| - __ j(equal, &runtime_call, Label::kFar);
|
| + __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_SIMD_VALUE_TYPE)));
|
| + __ j(less, ¬_simd, Label::kFar);
|
| + __ cmpb(rcx, Immediate(static_cast<uint8_t>(LAST_SIMD_VALUE_TYPE)));
|
| + __ j(less_equal, &runtime_call, Label::kFar);
|
| + __ bind(¬_simd);
|
| if (is_strong(strength())) {
|
| // We have already tested for smis and heap numbers, so if both
|
| // arguments are not strings we must proceed to the slow case.
|
|
|