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

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

Issue 600533002: Refactor bigint _sqrTo in preparation of intrinsification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « runtime/lib/bigint.dart ('k') | runtime/vm/intrinsifier_arm64.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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 __ StoreIntoObject(R1, FieldAddress(R1, Bigint::digits_offset()), R0, false); 892 __ StoreIntoObject(R1, FieldAddress(R1, Bigint::digits_offset()), R0, false);
893 __ Ret(); 893 __ Ret();
894 } 894 }
895 895
896 896
897 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) { 897 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) {
898 // TODO(regis): Implement. 898 // TODO(regis): Implement.
899 } 899 }
900 900
901 901
902 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) {
903 // TODO(regis): Implement.
904 }
905
906
902 // Check if the last argument is a double, jump to label 'is_smi' if smi 907 // Check if the last argument is a double, jump to label 'is_smi' if smi
903 // (easy to convert to double), otherwise jump to label 'not_double_smi', 908 // (easy to convert to double), otherwise jump to label 'not_double_smi',
904 // Returns the last argument in R0. 909 // Returns the last argument in R0.
905 static void TestLastArgumentIsDouble(Assembler* assembler, 910 static void TestLastArgumentIsDouble(Assembler* assembler,
906 Label* is_smi, 911 Label* is_smi,
907 Label* not_double_smi) { 912 Label* not_double_smi) {
908 __ ldr(R0, Address(SP, 0 * kWordSize)); 913 __ ldr(R0, Address(SP, 0 * kWordSize));
909 __ tst(R0, Operand(kSmiTagMask)); 914 __ tst(R0, Operand(kSmiTagMask));
910 __ b(is_smi, EQ); 915 __ b(is_smi, EQ);
911 __ CompareClassId(R0, kDoubleCid, R1); 916 __ CompareClassId(R0, kDoubleCid, R1);
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 Isolate* isolate = Isolate::Current(); 1638 Isolate* isolate = Isolate::Current();
1634 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); 1639 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate));
1635 // Set return value to Isolate::current_tag_. 1640 // Set return value to Isolate::current_tag_.
1636 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 1641 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
1637 __ Ret(); 1642 __ Ret();
1638 } 1643 }
1639 1644
1640 } // namespace dart 1645 } // namespace dart
1641 1646
1642 #endif // defined TARGET_ARCH_ARM 1647 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/lib/bigint.dart ('k') | runtime/vm/intrinsifier_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698