| 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/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 // Note that VisitObjectPointers will find this saved Context pointer during | 597 // Note that VisitObjectPointers will find this saved Context pointer during |
| 598 // GC marking, since it traverses any information between SP and | 598 // GC marking, since it traverses any information between SP and |
| 599 // FP - kExitLinkOffsetInEntryFrame. | 599 // FP - kExitLinkOffsetInEntryFrame. |
| 600 // EntryFrame::SavedContext reads the context saved in this frame. | 600 // EntryFrame::SavedContext reads the context saved in this frame. |
| 601 __ LoadFromOffset(kLoadWord, R4, R8, Isolate::top_context_offset()); | 601 __ LoadFromOffset(kLoadWord, R4, R8, Isolate::top_context_offset()); |
| 602 | 602 |
| 603 // The constants kSavedContextOffsetInEntryFrame and | 603 // The constants kSavedContextOffsetInEntryFrame and |
| 604 // kExitLinkOffsetInEntryFrame must be kept in sync with the code below. | 604 // kExitLinkOffsetInEntryFrame must be kept in sync with the code below. |
| 605 __ PushList((1 << R4) | (1 << R5)); | 605 __ PushList((1 << R4) | (1 << R5)); |
| 606 | 606 |
| 607 // The stack pointer is restore after the call to this location. | 607 // The stack pointer is restored after the call to this location. |
| 608 const intptr_t kSavedContextOffsetInEntryFrame = -10 * kWordSize; | 608 const intptr_t kSavedContextOffsetInEntryFrame = -10 * kWordSize; |
| 609 | 609 |
| 610 // Load arguments descriptor array into R4, which is passed to Dart code. | 610 // Load arguments descriptor array into R4, which is passed to Dart code. |
| 611 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); | 611 __ ldr(R4, Address(R1, VMHandles::kOffsetOfRawPtrInHandle)); |
| 612 | 612 |
| 613 // Load number of arguments into R5. | 613 // Load number of arguments into R5. |
| 614 __ ldr(R5, FieldAddress(R4, ArgumentsDescriptor::count_offset())); | 614 __ ldr(R5, FieldAddress(R4, ArgumentsDescriptor::count_offset())); |
| 615 __ SmiUntag(R5); | 615 __ SmiUntag(R5); |
| 616 | 616 |
| 617 // Compute address of 'arguments array' data area into R2. | 617 // Compute address of 'arguments array' data area into R2. |
| (...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 __ Bind(&reference_compare); | 1788 __ Bind(&reference_compare); |
| 1789 __ cmp(left, ShifterOperand(right)); | 1789 __ cmp(left, ShifterOperand(right)); |
| 1790 __ Bind(&done); | 1790 __ Bind(&done); |
| 1791 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); | 1791 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); |
| 1792 __ Ret(); | 1792 __ Ret(); |
| 1793 } | 1793 } |
| 1794 | 1794 |
| 1795 } // namespace dart | 1795 } // namespace dart |
| 1796 | 1796 |
| 1797 #endif // defined TARGET_ARCH_ARM | 1797 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |