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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 1575583002: ARM64: Move THR to R26 so special registers are contiguous. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index 5b98fe5eff790ba760613b602222d6509a10441b..0585653727bc98d660d1a490da6bc5cd849d0b05 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -101,7 +101,7 @@ void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
// We are entering runtime code, so the C stack pointer must be restored from
// the stack limit to the top of the stack. We cache the stack limit address
// in a callee-saved register.
- __ mov(R26, CSP);
+ __ mov(R25, CSP);
__ mov(CSP, SP);
__ blr(R5);
@@ -109,7 +109,7 @@ void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
// Restore SP and CSP.
__ mov(SP, CSP);
- __ mov(CSP, R26);
+ __ mov(CSP, R25);
// Retval is next to 1st argument.
// Mark that the thread is executing Dart code.
@@ -204,7 +204,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
// We are entering runtime code, so the C stack pointer must be restored from
// the stack limit to the top of the stack. We cache the stack limit address
// in the Dart SP register, which is callee-saved in the C ABI.
- __ mov(R26, CSP);
+ __ mov(R25, CSP);
__ mov(CSP, SP);
__ mov(R1, R5); // Pass the function entrypoint to call.
@@ -215,7 +215,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
// Restore SP and CSP.
__ mov(SP, CSP);
- __ mov(CSP, R26);
+ __ mov(CSP, R25);
// Mark that the thread is executing Dart code.
__ LoadImmediate(R2, VMTag::kDartTagId);
@@ -297,7 +297,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
// We are entering runtime code, so the C stack pointer must be restored from
// the stack limit to the top of the stack. We cache the stack limit address
// in the Dart SP register, which is callee-saved in the C ABI.
- __ mov(R26, CSP);
+ __ mov(R25, CSP);
__ mov(CSP, SP);
// Call native function or redirection via simulator.
@@ -305,7 +305,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
// Restore SP and CSP.
__ mov(SP, CSP);
- __ mov(CSP, R26);
+ __ mov(CSP, R25);
// Mark that the thread is executing Dart code.
__ LoadImmediate(R2, VMTag::kDartTagId);
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698