OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 __ j(equal, &generic_heap_number_comparison, Label::kNear); | 1698 __ j(equal, &generic_heap_number_comparison, Label::kNear); |
1699 if (cc != equal) { | 1699 if (cc != equal) { |
1700 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); | 1700 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); |
1701 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); | 1701 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); |
1702 // Call runtime on identical JSObjects. Otherwise return equal. | 1702 // Call runtime on identical JSObjects. Otherwise return equal. |
1703 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE)); | 1703 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE)); |
1704 __ j(above_equal, &runtime_call, Label::kFar); | 1704 __ j(above_equal, &runtime_call, Label::kFar); |
1705 // Call runtime on identical symbols since we need to throw a TypeError. | 1705 // Call runtime on identical symbols since we need to throw a TypeError. |
1706 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE)); | 1706 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE)); |
1707 __ j(equal, &runtime_call, Label::kFar); | 1707 __ j(equal, &runtime_call, Label::kFar); |
| 1708 // Call runtime on identical SIMD values since we must throw a TypeError. |
| 1709 __ cmpb(ecx, static_cast<uint8_t>(FLOAT32X4_TYPE)); |
| 1710 __ j(equal, &runtime_call, Label::kFar); |
1708 if (is_strong(strength())) { | 1711 if (is_strong(strength())) { |
1709 // We have already tested for smis and heap numbers, so if both | 1712 // We have already tested for smis and heap numbers, so if both |
1710 // arguments are not strings we must proceed to the slow case. | 1713 // arguments are not strings we must proceed to the slow case. |
1711 __ test(ecx, Immediate(kIsNotStringMask)); | 1714 __ test(ecx, Immediate(kIsNotStringMask)); |
1712 __ j(not_zero, &runtime_call, Label::kFar); | 1715 __ j(not_zero, &runtime_call, Label::kFar); |
1713 } | 1716 } |
1714 } | 1717 } |
1715 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); | 1718 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); |
1716 __ ret(0); | 1719 __ ret(0); |
1717 | 1720 |
(...skipping 3758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5476 Operand(ebp, 7 * kPointerSize), NULL); | 5479 Operand(ebp, 7 * kPointerSize), NULL); |
5477 } | 5480 } |
5478 | 5481 |
5479 | 5482 |
5480 #undef __ | 5483 #undef __ |
5481 | 5484 |
5482 } // namespace internal | 5485 } // namespace internal |
5483 } // namespace v8 | 5486 } // namespace v8 |
5484 | 5487 |
5485 #endif // V8_TARGET_ARCH_IA32 | 5488 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |