| 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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 // R0: instance (must be preserved). | 1926 // R0: instance (must be preserved). |
| 1927 // R1: instantiator type arguments (can be raw_null). | 1927 // R1: instantiator type arguments (can be raw_null). |
| 1928 // R2: function type arguments (can be raw_null). | 1928 // R2: function type arguments (can be raw_null). |
| 1929 // R3: SubtypeTestCache. | 1929 // R3: SubtypeTestCache. |
| 1930 // Result in R1: null -> not found, otherwise result (true or false). | 1930 // Result in R1: null -> not found, otherwise result (true or false). |
| 1931 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { | 1931 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { |
| 1932 GenerateSubtypeNTestCacheStub(assembler, 4); | 1932 GenerateSubtypeNTestCacheStub(assembler, 4); |
| 1933 } | 1933 } |
| 1934 | 1934 |
| 1935 | 1935 |
| 1936 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1936 void StubCode::GenerateGetCStackPointerStub(Assembler* assembler) { |
| 1937 __ mov(R0, SP); | 1937 __ mov(R0, CSP); |
| 1938 __ ret(); | 1938 __ ret(); |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 | 1941 |
| 1942 // Jump to a frame on the call stack. | 1942 // Jump to a frame on the call stack. |
| 1943 // LR: return address. | 1943 // LR: return address. |
| 1944 // R0: program_counter. | 1944 // R0: program_counter. |
| 1945 // R1: stack_pointer. | 1945 // R1: stack_pointer. |
| 1946 // R2: frame_pointer. | 1946 // R2: frame_pointer. |
| 1947 // R3: thread. | 1947 // R3: thread. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 | 2378 |
| 2379 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2379 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2380 __ brk(0); | 2380 __ brk(0); |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 } // namespace dart | 2383 } // namespace dart |
| 2384 | 2384 |
| 2385 #endif // defined TARGET_ARCH_ARM64 | 2385 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |