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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 __ bic(R0, R0, Operand(kSmiTagMask)); // Remove inverted smi-tag. | 783 __ bic(R0, R0, Operand(kSmiTagMask)); // Remove inverted smi-tag. |
784 __ Ret(); | 784 __ Ret(); |
785 } | 785 } |
786 | 786 |
787 | 787 |
788 void Intrinsifier::Smi_bitLength(Assembler* assembler) { | 788 void Intrinsifier::Smi_bitLength(Assembler* assembler) { |
789 // TODO(sra): Implement as word-length - CLZ. | 789 // TODO(sra): Implement as word-length - CLZ. |
790 } | 790 } |
791 | 791 |
792 | 792 |
| 793 void Intrinsifier::Bigint_lsh(Assembler* assembler) { |
| 794 // TODO(regis): Implement. |
| 795 } |
| 796 |
| 797 |
| 798 void Intrinsifier::Bigint_rsh(Assembler* assembler) { |
| 799 // TODO(regis): Implement. |
| 800 } |
| 801 |
| 802 |
793 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { | 803 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { |
794 // static void _absAdd(Uint32List digits, int used, | 804 // static void _absAdd(Uint32List digits, int used, |
795 // Uint32List a_digits, int a_used, | 805 // Uint32List a_digits, int a_used, |
796 // Uint32List r_digits) | 806 // Uint32List r_digits) |
797 | 807 |
798 // R2 = used, R3 = digits | 808 // R2 = used, R3 = digits |
799 __ ldrd(R2, SP, 3 * kWordSize); | 809 __ ldrd(R2, SP, 3 * kWordSize); |
800 // R3 = &digits[0] | 810 // R3 = &digits[0] |
801 __ add(R3, R3, Operand(TypedData::data_offset() - kHeapObjectTag)); | 811 __ add(R3, R3, Operand(TypedData::data_offset() - kHeapObjectTag)); |
802 | 812 |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 Isolate* isolate = Isolate::Current(); | 1954 Isolate* isolate = Isolate::Current(); |
1945 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); | 1955 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); |
1946 // Set return value to Isolate::current_tag_. | 1956 // Set return value to Isolate::current_tag_. |
1947 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 1957 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
1948 __ Ret(); | 1958 __ Ret(); |
1949 } | 1959 } |
1950 | 1960 |
1951 } // namespace dart | 1961 } // namespace dart |
1952 | 1962 |
1953 #endif // defined TARGET_ARCH_ARM | 1963 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |