| 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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 __ b(&loop_entry); | 868 __ b(&loop_entry); |
| 869 Label loop; | 869 Label loop; |
| 870 __ Bind(&loop); | 870 __ Bind(&loop); |
| 871 __ ldr(R0, Address(R7, Bigint::kBytesPerDigit, Address::PostIndex)); | 871 __ ldr(R0, Address(R7, Bigint::kBytesPerDigit, Address::PostIndex)); |
| 872 __ orr(R1, R1, Operand(R0, LSL, R2)); | 872 __ orr(R1, R1, Operand(R0, LSL, R2)); |
| 873 __ str(R1, Address(R8, Bigint::kBytesPerDigit, Address::PostIndex)); | 873 __ str(R1, Address(R8, Bigint::kBytesPerDigit, Address::PostIndex)); |
| 874 __ mov(R1, Operand(R0, LSR, R3)); | 874 __ mov(R1, Operand(R0, LSR, R3)); |
| 875 __ Bind(&loop_entry); | 875 __ Bind(&loop_entry); |
| 876 __ teq(R8, Operand(R6)); | 876 __ teq(R8, Operand(R6)); |
| 877 __ b(&loop, NE); | 877 __ b(&loop, NE); |
| 878 __ str(R1, Address(R8, Bigint::kBytesPerDigit, Address::PostIndex)); | 878 __ str(R1, Address(R8, 0)); |
| 879 // Returning Object::null() is not required, since this method is private. | 879 // Returning Object::null() is not required, since this method is private. |
| 880 __ Ret(); | 880 __ Ret(); |
| 881 } | 881 } |
| 882 | 882 |
| 883 | 883 |
| 884 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { | 884 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { |
| 885 // static void _absAdd(Uint32List digits, int used, | 885 // static void _absAdd(Uint32List digits, int used, |
| 886 // Uint32List a_digits, int a_used, | 886 // Uint32List a_digits, int a_used, |
| 887 // Uint32List r_digits) | 887 // Uint32List r_digits) |
| 888 | 888 |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2021 Isolate* isolate = Isolate::Current(); | 2021 Isolate* isolate = Isolate::Current(); |
| 2022 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); | 2022 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); |
| 2023 // Set return value to Isolate::current_tag_. | 2023 // Set return value to Isolate::current_tag_. |
| 2024 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 2024 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| 2025 __ Ret(); | 2025 __ Ret(); |
| 2026 } | 2026 } |
| 2027 | 2027 |
| 2028 } // namespace dart | 2028 } // namespace dart |
| 2029 | 2029 |
| 2030 #endif // defined TARGET_ARCH_ARM | 2030 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |