Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: runtime/vm/stub_code_arm64.cc

Issue 2918393002: [arm64] Fix the GetStackPointer stub to return the C stack pointer. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698