| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 __ Push(R6); | 889 __ Push(R6); |
| 890 __ LoadFromOffset(R6, THR, Thread::top_exit_frame_info_offset()); | 890 __ LoadFromOffset(R6, THR, Thread::top_exit_frame_info_offset()); |
| 891 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); | 891 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); |
| 892 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. | 892 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. |
| 893 ASSERT(kExitLinkSlotFromEntryFp == -22); | 893 ASSERT(kExitLinkSlotFromEntryFp == -22); |
| 894 __ Push(R6); | 894 __ Push(R6); |
| 895 | 895 |
| 896 // Load arguments descriptor array into R4, which is passed to Dart code. | 896 // Load arguments descriptor array into R4, which is passed to Dart code. |
| 897 __ LoadFromOffset(R4, R1, VMHandles::kOffsetOfRawPtrInHandle); | 897 __ LoadFromOffset(R4, R1, VMHandles::kOffsetOfRawPtrInHandle); |
| 898 | 898 |
| 899 // No need to check for type args, disallowed by DartEntry::InvokeFunction. |
| 899 // Load number of arguments into S5. | 900 // Load number of arguments into S5. |
| 900 __ LoadFieldFromOffset(R5, R4, ArgumentsDescriptor::count_offset()); | 901 __ LoadFieldFromOffset(R5, R4, ArgumentsDescriptor::count_offset()); |
| 901 __ SmiUntag(R5); | 902 __ SmiUntag(R5); |
| 902 | 903 |
| 903 // Compute address of 'arguments array' data area into R2. | 904 // Compute address of 'arguments array' data area into R2. |
| 904 __ LoadFromOffset(R2, R2, VMHandles::kOffsetOfRawPtrInHandle); | 905 __ LoadFromOffset(R2, R2, VMHandles::kOffsetOfRawPtrInHandle); |
| 905 __ AddImmediate(R2, Array::data_offset() - kHeapObjectTag); | 906 __ AddImmediate(R2, Array::data_offset() - kHeapObjectTag); |
| 906 | 907 |
| 907 // Set up arguments for the Dart call. | 908 // Set up arguments for the Dart call. |
| 908 Label push_arguments; | 909 Label push_arguments; |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2376 } | 2377 } |
| 2377 | 2378 |
| 2378 | 2379 |
| 2379 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2380 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2380 __ brk(0); | 2381 __ brk(0); |
| 2381 } | 2382 } |
| 2382 | 2383 |
| 2383 } // namespace dart | 2384 } // namespace dart |
| 2384 | 2385 |
| 2385 #endif // defined TARGET_ARCH_ARM64 | 2386 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |