OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 __ j(equal, &heap_number, Label::kNear); | 1569 __ j(equal, &heap_number, Label::kNear); |
1570 if (cc != equal) { | 1570 if (cc != equal) { |
1571 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset)); | 1571 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset)); |
1572 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset)); | 1572 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset)); |
1573 // Call runtime on identical objects. Otherwise return equal. | 1573 // Call runtime on identical objects. Otherwise return equal. |
1574 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE))); | 1574 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE))); |
1575 __ j(above_equal, &runtime_call, Label::kFar); | 1575 __ j(above_equal, &runtime_call, Label::kFar); |
1576 // Call runtime on identical symbols since we need to throw a TypeError. | 1576 // Call runtime on identical symbols since we need to throw a TypeError. |
1577 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE))); | 1577 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE))); |
1578 __ j(equal, &runtime_call, Label::kFar); | 1578 __ j(equal, &runtime_call, Label::kFar); |
| 1579 // Call runtime on identical SIMD values since we must throw a TypeError. |
| 1580 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FLOAT32X4_TYPE))); |
| 1581 __ j(equal, &runtime_call, Label::kFar); |
1579 if (is_strong(strength())) { | 1582 if (is_strong(strength())) { |
1580 // We have already tested for smis and heap numbers, so if both | 1583 // We have already tested for smis and heap numbers, so if both |
1581 // arguments are not strings we must proceed to the slow case. | 1584 // arguments are not strings we must proceed to the slow case. |
1582 __ testb(rcx, Immediate(kIsNotStringMask)); | 1585 __ testb(rcx, Immediate(kIsNotStringMask)); |
1583 __ j(not_zero, &runtime_call, Label::kFar); | 1586 __ j(not_zero, &runtime_call, Label::kFar); |
1584 } | 1587 } |
1585 } | 1588 } |
1586 __ Set(rax, EQUAL); | 1589 __ Set(rax, EQUAL); |
1587 __ ret(0); | 1590 __ ret(0); |
1588 | 1591 |
(...skipping 3834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5423 kStackSpace, nullptr, return_value_operand, NULL); | 5426 kStackSpace, nullptr, return_value_operand, NULL); |
5424 } | 5427 } |
5425 | 5428 |
5426 | 5429 |
5427 #undef __ | 5430 #undef __ |
5428 | 5431 |
5429 } // namespace internal | 5432 } // namespace internal |
5430 } // namespace v8 | 5433 } // namespace v8 |
5431 | 5434 |
5432 #endif // V8_TARGET_ARCH_X64 | 5435 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |