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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 8588002: Better tracing of deoptimization (added a reason id and printing of source). Fix a bug with exces... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 1585)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -606,11 +606,14 @@
void StubCode::GenerateDeoptimizeStub(Assembler* assembler) {
__ EnterFrame(0);
+ // EAX: deoptimization reason id.
// Stack at this point:
// TOS + 0: Saved EBP of function frame that will be deoptimized. <== EBP
// TOS + 1: Deoptimization point (return address), will be patched.
// TOS + 2: top-of-stack at deoptimization point (all arguments on stack).
+ __ pushl(EAX);
__ CallRuntimeFromStub(kDeoptimizeRuntimeEntry);
+ __ popl(EAX);
__ LeaveFrame();
__ ret();
}
« runtime/vm/opt_code_generator_ia32.cc ('K') | « runtime/vm/opt_code_generator_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698