| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 | 815 |
| 816 void Intrinsifier::Bigint_setDigits(Assembler* assembler) { | 816 void Intrinsifier::Bigint_setDigits(Assembler* assembler) { |
| 817 __ movq(RAX, Address(RSP, + 1 * kWordSize)); | 817 __ movq(RAX, Address(RSP, + 1 * kWordSize)); |
| 818 __ movq(RCX, Address(RSP, + 2 * kWordSize)); | 818 __ movq(RCX, Address(RSP, + 2 * kWordSize)); |
| 819 __ StoreIntoObject(RCX, | 819 __ StoreIntoObject(RCX, |
| 820 FieldAddress(RCX, Bigint::digits_offset()), RAX, false); | 820 FieldAddress(RCX, Bigint::digits_offset()), RAX, false); |
| 821 __ ret(); | 821 __ ret(); |
| 822 } | 822 } |
| 823 | 823 |
| 824 | 824 |
| 825 void Intrinsifier::Bigint_add(Assembler* assembler) { | 825 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { |
| 826 // TODO(regis): Implement. | 826 // TODO(regis): Implement. |
| 827 } | 827 } |
| 828 | 828 |
| 829 | 829 |
| 830 void Intrinsifier::Bigint_sub(Assembler* assembler) { | 830 void Intrinsifier::Bigint_absSub(Assembler* assembler) { |
| 831 // TODO(regis): Implement. | 831 // TODO(regis): Implement. |
| 832 } | 832 } |
| 833 | 833 |
| 834 | 834 |
| 835 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) { | 835 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) { |
| 836 // TODO(regis): Implement. | 836 // TODO(regis): Implement. |
| 837 } | 837 } |
| 838 | 838 |
| 839 | 839 |
| 840 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) { | 840 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) { |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 // Set return value to Isolate::current_tag_. | 1578 // Set return value to Isolate::current_tag_. |
| 1579 __ movq(RAX, Address(RBX, Isolate::current_tag_offset())); | 1579 __ movq(RAX, Address(RBX, Isolate::current_tag_offset())); |
| 1580 __ ret(); | 1580 __ ret(); |
| 1581 } | 1581 } |
| 1582 | 1582 |
| 1583 #undef __ | 1583 #undef __ |
| 1584 | 1584 |
| 1585 } // namespace dart | 1585 } // namespace dart |
| 1586 | 1586 |
| 1587 #endif // defined TARGET_ARCH_X64 | 1587 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |