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

Unified Diff: runtime/vm/stub_code_ia32.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_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
diff --git a/runtime/vm/stub_code_ia32.cc b/runtime/vm/stub_code_ia32.cc
index e8b0245a7e1af06afeb2d3a47d82dedb0e3db812..30dbe75d2ba690dd05fcd85e1ed2160344348cde 100644
--- a/runtime/vm/stub_code_ia32.cc
+++ b/runtime/vm/stub_code_ia32.cc
@@ -52,7 +52,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.
- __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), ESP);
+ __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), EBP);
#if defined(DEBUG)
{ Label ok;
@@ -142,7 +142,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
// Save exit frame information to enable stack walking as we are about
// to transition to dart VM code.
- __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), ESP);
+ __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), EBP);
#if defined(DEBUG)
{ Label ok;
@@ -215,7 +215,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
// Save exit frame information to enable stack walking as we are about
// to transition to dart VM code.
- __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), ESP);
+ __ movl(Address(ESI, Isolate::top_exit_frame_info_offset()), EBP);
#if defined(DEBUG)
{ Label ok;
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698