| OLD | NEW |
| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 // Save top resource and top exit frame info. Use R4-6 as temporary registers. | 765 // Save top resource and top exit frame info. Use R4-6 as temporary registers. |
| 766 // StackFrameIterator reads the top exit frame info saved in this frame. | 766 // StackFrameIterator reads the top exit frame info saved in this frame. |
| 767 __ LoadFromOffset(kWord, R9, THR, Thread::top_exit_frame_info_offset()); | 767 __ LoadFromOffset(kWord, R9, THR, Thread::top_exit_frame_info_offset()); |
| 768 __ LoadFromOffset(kWord, R4, THR, Thread::top_resource_offset()); | 768 __ LoadFromOffset(kWord, R4, THR, Thread::top_resource_offset()); |
| 769 __ LoadImmediate(R8, 0); | 769 __ LoadImmediate(R8, 0); |
| 770 __ StoreToOffset(kWord, R8, THR, Thread::top_resource_offset()); | 770 __ StoreToOffset(kWord, R8, THR, Thread::top_resource_offset()); |
| 771 __ StoreToOffset(kWord, R8, THR, Thread::top_exit_frame_info_offset()); | 771 __ StoreToOffset(kWord, R8, THR, Thread::top_exit_frame_info_offset()); |
| 772 | 772 |
| 773 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. | 773 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. |
| 774 __ Push(R4); | 774 __ Push(R4); |
| 775 #if defined(TARGET_OS_MAC) | 775 #if defined(TARGET_ABI_IOS) |
| 776 ASSERT(kExitLinkSlotFromEntryFp == -26); | 776 ASSERT(kExitLinkSlotFromEntryFp == -26); |
| 777 #else | 777 #elif defined(TARGET_ABI_EABI) |
| 778 ASSERT(kExitLinkSlotFromEntryFp == -27); | 778 ASSERT(kExitLinkSlotFromEntryFp == -27); |
| 779 #endif | 779 #endif |
| 780 __ Push(R9); | 780 __ Push(R9); |
| 781 | 781 |
| 782 // Load arguments descriptor array into R4, which is passed to Dart code. | 782 // Load arguments descriptor array into R4, which is passed to Dart code. |
| 783 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); | 783 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); |
| 784 | 784 |
| 785 // Load number of arguments into R9. | 785 // Load number of arguments into R9. |
| 786 __ ldr(R9, FieldAddress(R4, ArgumentsDescriptor::count_offset())); | 786 __ ldr(R9, FieldAddress(R4, ArgumentsDescriptor::count_offset())); |
| 787 __ SmiUntag(R9); | 787 __ SmiUntag(R9); |
| (...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 } | 2178 } |
| 2179 | 2179 |
| 2180 | 2180 |
| 2181 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { | 2181 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { |
| 2182 __ bkpt(0); | 2182 __ bkpt(0); |
| 2183 } | 2183 } |
| 2184 | 2184 |
| 2185 } // namespace dart | 2185 } // namespace dart |
| 2186 | 2186 |
| 2187 #endif // defined TARGET_ARCH_ARM | 2187 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |