| OLD | NEW |
| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 794 |
| 795 | 795 |
| 796 void Intrinsifier::Bigint_setDigits(Assembler* assembler) { | 796 void Intrinsifier::Bigint_setDigits(Assembler* assembler) { |
| 797 __ ldr(R0, Address(SP, 0 * kWordSize)); | 797 __ ldr(R0, Address(SP, 0 * kWordSize)); |
| 798 __ ldr(R1, Address(SP, 1 * kWordSize)); | 798 __ ldr(R1, Address(SP, 1 * kWordSize)); |
| 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) { |
| 805 // TODO(regis): Implement. |
| 806 } |
| 807 |
| 808 |
| 804 // 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 |
| 805 // (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', |
| 806 // Returns the last argument in R0. | 811 // Returns the last argument in R0. |
| 807 static void TestLastArgumentIsDouble(Assembler* assembler, | 812 static void TestLastArgumentIsDouble(Assembler* assembler, |
| 808 Label* is_smi, | 813 Label* is_smi, |
| 809 Label* not_double_smi) { | 814 Label* not_double_smi) { |
| 810 __ ldr(R0, Address(SP, 0 * kWordSize)); | 815 __ ldr(R0, Address(SP, 0 * kWordSize)); |
| 811 __ tsti(R0, kSmiTagMask); | 816 __ tsti(R0, kSmiTagMask); |
| 812 __ b(is_smi, EQ); | 817 __ b(is_smi, EQ); |
| 813 __ CompareClassId(R0, kDoubleCid, kNoPP); | 818 __ CompareClassId(R0, kDoubleCid, kNoPP); |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 Isolate* isolate = Isolate::Current(); | 1528 Isolate* isolate = Isolate::Current(); |
| 1524 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); | 1529 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); |
| 1525 // Set return value to Isolate::current_tag_. | 1530 // Set return value to Isolate::current_tag_. |
| 1526 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 1531 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| 1527 __ ret(); | 1532 __ ret(); |
| 1528 } | 1533 } |
| 1529 | 1534 |
| 1530 } // namespace dart | 1535 } // namespace dart |
| 1531 | 1536 |
| 1532 #endif // defined TARGET_ARCH_ARM64 | 1537 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |