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

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

Issue 603493002: Revert r40623, "Refactor bigint _sqrTo in preparation of intrinsification." (Closed) Base URL: https://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_arm.cc ('k') | runtime/vm/intrinsifier_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 __ StoreIntoObject(R1, FieldAddress(R1, Bigint::digits_offset()), R0, false); 799 __ StoreIntoObject(R1, FieldAddress(R1, Bigint::digits_offset()), R0, false);
800 __ ret(); 800 __ ret();
801 } 801 }
802 802
803 803
804 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) { 804 void Intrinsifier::Bigint_mulAdd(Assembler* assembler) {
805 // TODO(regis): Implement. 805 // TODO(regis): Implement.
806 } 806 }
807 807
808 808
809 void Intrinsifier::Bigint_sqrAdd(Assembler* assembler) {
810 // TODO(regis): Implement.
811 }
812
813
814 // Check if the last argument is a double, jump to label 'is_smi' if smi 809 // Check if the last argument is a double, jump to label 'is_smi' if smi
815 // (easy to convert to double), otherwise jump to label 'not_double_smi', 810 // (easy to convert to double), otherwise jump to label 'not_double_smi',
816 // Returns the last argument in R0. 811 // Returns the last argument in R0.
817 static void TestLastArgumentIsDouble(Assembler* assembler, 812 static void TestLastArgumentIsDouble(Assembler* assembler,
818 Label* is_smi, 813 Label* is_smi,
819 Label* not_double_smi) { 814 Label* not_double_smi) {
820 __ ldr(R0, Address(SP, 0 * kWordSize)); 815 __ ldr(R0, Address(SP, 0 * kWordSize));
821 __ tsti(R0, kSmiTagMask); 816 __ tsti(R0, kSmiTagMask);
822 __ b(is_smi, EQ); 817 __ b(is_smi, EQ);
823 __ CompareClassId(R0, kDoubleCid, kNoPP); 818 __ CompareClassId(R0, kDoubleCid, kNoPP);
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 Isolate* isolate = Isolate::Current(); 1527 Isolate* isolate = Isolate::Current();
1533 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); 1528 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP);
1534 // Set return value to Isolate::current_tag_. 1529 // Set return value to Isolate::current_tag_.
1535 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 1530 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
1536 __ ret(); 1531 __ ret();
1537 } 1532 }
1538 1533
1539 } // namespace dart 1534 } // namespace dart
1540 1535
1541 #endif // defined TARGET_ARCH_ARM64 1536 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698