Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: runtime/vm/intrinsifier_arm.cc

Issue 1121613003: Implement bigint shift intrinsics on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698