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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 1139163004: Store FP instead of SP in the exit info when transitioning from Dart to C++. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | 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 745c8cd412cb3b461e679c4284b17ffd7e6896ef..f4c0842f094e43739e0ab3a23a3356b4fa27ca03 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -51,7 +51,7 @@ void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
// Save exit frame information to enable stack walking as we are about
// to transition to Dart VM C++ code.
- __ StoreToOffset(SP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
+ __ StoreToOffset(FP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
#if defined(DEBUG)
{ Label ok;
@@ -151,7 +151,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
// Save exit frame information to enable stack walking as we are about
// to transition to native code.
- __ StoreToOffset(SP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
+ __ StoreToOffset(FP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
#if defined(DEBUG)
{ Label ok;
@@ -253,7 +253,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
// Save exit frame information to enable stack walking as we are about
// to transition to native code.
- __ StoreToOffset(SP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
+ __ StoreToOffset(FP, R28, Isolate::top_exit_frame_info_offset(), kNoPP);
#if defined(DEBUG)
{ Label ok;
« 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