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

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

Issue 620553002: Provide ia32 intrinsics for bigint add, sub, quotient digit estimation, and (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/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 888
889 889
890 void Intrinsifier::Bigint_setDigits(Assembler* assembler) { 890 void Intrinsifier::Bigint_setDigits(Assembler* assembler) {
891 __ lw(T0, Address(SP, 0 * kWordSize)); 891 __ lw(T0, Address(SP, 0 * kWordSize));
892 __ lw(T1, Address(SP, 1 * kWordSize)); 892 __ lw(T1, Address(SP, 1 * kWordSize));
893 __ StoreIntoObject(T1, FieldAddress(T1, Bigint::digits_offset()), T0, false); 893 __ StoreIntoObject(T1, FieldAddress(T1, Bigint::digits_offset()), T0, false);
894 __ Ret(); 894 __ Ret();
895 } 895 }
896 896
897 897
898 void Intrinsifier::Bigint_add(Assembler* assembler) {
899 // TODO(regis): Implement.
900 }
901
902
903 void Intrinsifier::Bigint_sub(Assembler* assembler) {
904 // TODO(regis): Implement.
905 }
906
907
898 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) { 908 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) {
899 // TODO(regis): Implement. 909 // TODO(regis): Implement.
900 } 910 }
901 911
902 912
903 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) { 913 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) {
904 // TODO(regis): Implement. 914 // TODO(regis): Implement.
905 } 915 }
906 916
907 917
918 void Intrinsifier::Bigint_estQuotientDigit(Assembler* assembler) {
919 // TODO(regis): Implement.
920 }
921
922
923 void Intrinsifier::Montgomery_mulMod(Assembler* assembler) {
924 // TODO(regis): Implement.
925 }
926
927
908 // Check if the last argument is a double, jump to label 'is_smi' if smi 928 // Check if the last argument is a double, jump to label 'is_smi' if smi
909 // (easy to convert to double), otherwise jump to label 'not_double_smi', 929 // (easy to convert to double), otherwise jump to label 'not_double_smi',
910 // Returns the last argument in T0. 930 // Returns the last argument in T0.
911 static void TestLastArgumentIsDouble(Assembler* assembler, 931 static void TestLastArgumentIsDouble(Assembler* assembler,
912 Label* is_smi, 932 Label* is_smi,
913 Label* not_double_smi) { 933 Label* not_double_smi) {
914 __ lw(T0, Address(SP, 0 * kWordSize)); 934 __ lw(T0, Address(SP, 0 * kWordSize));
915 __ andi(CMPRES1, T0, Immediate(kSmiTagMask)); 935 __ andi(CMPRES1, T0, Immediate(kSmiTagMask));
916 __ beq(CMPRES1, ZR, is_smi); 936 __ beq(CMPRES1, ZR, is_smi);
917 __ LoadClassId(CMPRES1, T0); 937 __ LoadClassId(CMPRES1, T0);
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 Isolate* isolate = Isolate::Current(); 1700 Isolate* isolate = Isolate::Current();
1681 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); 1701 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate));
1682 // Set return value. 1702 // Set return value.
1683 __ Ret(); 1703 __ Ret();
1684 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); 1704 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset()));
1685 } 1705 }
1686 1706
1687 } // namespace dart 1707 } // namespace dart
1688 1708
1689 #endif // defined TARGET_ARCH_MIPS 1709 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698