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

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

Issue 1044503002: Refactor bigint shifting code in preparation of shifting intrinsics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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
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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 __ bic(R0, R0, Operand(kSmiTagMask)); // Remove inverted smi-tag. 793 __ bic(R0, R0, Operand(kSmiTagMask)); // Remove inverted smi-tag.
794 __ Ret(); 794 __ Ret();
795 } 795 }
796 796
797 797
798 void Intrinsifier::Smi_bitLength(Assembler* assembler) { 798 void Intrinsifier::Smi_bitLength(Assembler* assembler) {
799 // TODO(sra): Implement as word-length - CLZ. 799 // TODO(sra): Implement as word-length - CLZ.
800 } 800 }
801 801
802 802
803 void Intrinsifier::Bigint_lsh(Assembler* assembler) {
804 // TODO(regis): Implement.
805 }
806
807
808 void Intrinsifier::Bigint_rsh(Assembler* assembler) {
809 // TODO(regis): Implement.
810 }
811
812
803 void Intrinsifier::Bigint_absAdd(Assembler* assembler) { 813 void Intrinsifier::Bigint_absAdd(Assembler* assembler) {
804 // static void _absAdd(Uint32List digits, int used, 814 // static void _absAdd(Uint32List digits, int used,
805 // Uint32List a_digits, int a_used, 815 // Uint32List a_digits, int a_used,
806 // Uint32List r_digits) 816 // Uint32List r_digits)
807 817
808 // R2 = used, R3 = digits 818 // R2 = used, R3 = digits
809 __ ldrd(R2, Address(SP, 3 * kWordSize)); 819 __ ldrd(R2, Address(SP, 3 * kWordSize));
810 // R3 = &digits[0] 820 // R3 = &digits[0]
811 __ add(R3, R3, Operand(TypedData::data_offset() - kHeapObjectTag)); 821 __ add(R3, R3, Operand(TypedData::data_offset() - kHeapObjectTag));
812 822
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 Isolate* isolate = Isolate::Current(); 1964 Isolate* isolate = Isolate::Current();
1955 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); 1965 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate));
1956 // Set return value to Isolate::current_tag_. 1966 // Set return value to Isolate::current_tag_.
1957 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 1967 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
1958 __ Ret(); 1968 __ Ret();
1959 } 1969 }
1960 1970
1961 } // namespace dart 1971 } // namespace dart
1962 1972
1963 #endif // defined TARGET_ARCH_ARM 1973 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698