| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 // Save top resource and top exit frame info. Use R4-6 as temporary registers. | 807 // Save top resource and top exit frame info. Use R4-6 as temporary registers. |
| 808 // StackFrameIterator reads the top exit frame info saved in this frame. | 808 // StackFrameIterator reads the top exit frame info saved in this frame. |
| 809 __ LoadFromOffset(kWord, R9, THR, Thread::top_exit_frame_info_offset()); | 809 __ LoadFromOffset(kWord, R9, THR, Thread::top_exit_frame_info_offset()); |
| 810 __ LoadFromOffset(kWord, R4, THR, Thread::top_resource_offset()); | 810 __ LoadFromOffset(kWord, R4, THR, Thread::top_resource_offset()); |
| 811 __ LoadImmediate(R8, 0); | 811 __ LoadImmediate(R8, 0); |
| 812 __ StoreToOffset(kWord, R8, THR, Thread::top_resource_offset()); | 812 __ StoreToOffset(kWord, R8, THR, Thread::top_resource_offset()); |
| 813 __ StoreToOffset(kWord, R8, THR, Thread::top_exit_frame_info_offset()); | 813 __ StoreToOffset(kWord, R8, THR, Thread::top_exit_frame_info_offset()); |
| 814 | 814 |
| 815 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. | 815 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. |
| 816 __ Push(R4); | 816 __ Push(R4); |
| 817 #if defined(TARGET_ABI_IOS) | 817 #if defined(TARGET_OS_MACOS) || TARGET_OS_IOS |
| 818 ASSERT(kExitLinkSlotFromEntryFp == -26); | 818 ASSERT(kExitLinkSlotFromEntryFp == -26); |
| 819 #elif defined(TARGET_ABI_EABI) | 819 #else |
| 820 ASSERT(kExitLinkSlotFromEntryFp == -27); | 820 ASSERT(kExitLinkSlotFromEntryFp == -27); |
| 821 #endif | 821 #endif |
| 822 __ Push(R9); | 822 __ Push(R9); |
| 823 | 823 |
| 824 // Load arguments descriptor array into R4, which is passed to Dart code. | 824 // Load arguments descriptor array into R4, which is passed to Dart code. |
| 825 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); | 825 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); |
| 826 | 826 |
| 827 // Load number of arguments into R9. | 827 // Load number of arguments into R9. |
| 828 __ ldr(R9, FieldAddress(R4, ArgumentsDescriptor::count_offset())); | 828 __ ldr(R9, FieldAddress(R4, ArgumentsDescriptor::count_offset())); |
| 829 __ SmiUntag(R9); | 829 __ SmiUntag(R9); |
| (...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 } | 2286 } |
| 2287 | 2287 |
| 2288 | 2288 |
| 2289 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2289 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2290 __ bkpt(0); | 2290 __ bkpt(0); |
| 2291 } | 2291 } |
| 2292 | 2292 |
| 2293 } // namespace dart | 2293 } // namespace dart |
| 2294 | 2294 |
| 2295 #endif // defined TARGET_ARCH_ARM | 2295 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |