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

Side by Side Diff: runtime/vm/stub_code_arm.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.h ('k') | runtime/vm/stub_code_arm64.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) 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/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 // R2: instantiator type arguments (can be raw_null). 1880 // R2: instantiator type arguments (can be raw_null).
1881 // R1: function type arguments (can be raw_null). 1881 // R1: function type arguments (can be raw_null).
1882 // R3: SubtypeTestCache. 1882 // R3: SubtypeTestCache.
1883 // Result in R1: null -> not found, otherwise result (true or false). 1883 // Result in R1: null -> not found, otherwise result (true or false).
1884 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { 1884 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) {
1885 GenerateSubtypeNTestCacheStub(assembler, 4); 1885 GenerateSubtypeNTestCacheStub(assembler, 4);
1886 } 1886 }
1887 1887
1888 1888
1889 // Return the current stack pointer address, used to do stack alignment checks. 1889 // Return the current stack pointer address, used to do stack alignment checks.
1890 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { 1890 void StubCode::GenerateGetCStackPointerStub(Assembler* assembler) {
1891 __ mov(R0, Operand(SP)); 1891 __ mov(R0, Operand(SP));
1892 __ Ret(); 1892 __ Ret();
1893 } 1893 }
1894 1894
1895 1895
1896 // Jump to a frame on the call stack. 1896 // Jump to a frame on the call stack.
1897 // LR: return address. 1897 // LR: return address.
1898 // R0: program_counter. 1898 // R0: program_counter.
1899 // R1: stack_pointer. 1899 // R1: stack_pointer.
1900 // R2: frame_pointer. 1900 // R2: frame_pointer.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 } 2326 }
2327 2327
2328 2328
2329 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2329 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2330 __ bkpt(0); 2330 __ bkpt(0);
2331 } 2331 }
2332 2332
2333 } // namespace dart 2333 } // namespace dart
2334 2334
2335 #endif // defined TARGET_ARCH_ARM 2335 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698