| 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); | |
| 1582 if (is_strong(strength())) { | 1579 if (is_strong(strength())) { |
| 1583 // We have already tested for smis and heap numbers, so if both | 1580 // We have already tested for smis and heap numbers, so if both |
| 1584 // arguments are not strings we must proceed to the slow case. | 1581 // arguments are not strings we must proceed to the slow case. |
| 1585 __ testb(rcx, Immediate(kIsNotStringMask)); | 1582 __ testb(rcx, Immediate(kIsNotStringMask)); |
| 1586 __ j(not_zero, &runtime_call, Label::kFar); | 1583 __ j(not_zero, &runtime_call, Label::kFar); |
| 1587 } | 1584 } |
| 1588 } | 1585 } |
| 1589 __ Set(rax, EQUAL); | 1586 __ Set(rax, EQUAL); |
| 1590 __ ret(0); | 1587 __ ret(0); |
| 1591 | 1588 |
| (...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5432 kStackSpace, nullptr, return_value_operand, NULL); | 5429 kStackSpace, nullptr, return_value_operand, NULL); |
| 5433 } | 5430 } |
| 5434 | 5431 |
| 5435 | 5432 |
| 5436 #undef __ | 5433 #undef __ |
| 5437 | 5434 |
| 5438 } // namespace internal | 5435 } // namespace internal |
| 5439 } // namespace v8 | 5436 } // namespace v8 |
| 5440 | 5437 |
| 5441 #endif // V8_TARGET_ARCH_X64 | 5438 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |