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

Unified Diff: src/codegen-ia32.cc

Issue 53002: Fix issue 284.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 | « src/codegen-arm.cc ('k') | test/mjsunit/bugs/bug-284.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen-ia32.cc
===================================================================
--- src/codegen-ia32.cc (revision 1583)
+++ src/codegen-ia32.cc (working copy)
@@ -2683,14 +2683,17 @@
CheckStack(); // TODO(1222600): ignore if body contains calls.
VisitAndSpill(node->body());
- // Next.
+ // Next. Reestablish a spilled frame in case we are coming here via
+ // a continue in the body.
node->continue_target()->Bind();
+ frame_->SpillAll();
frame_->EmitPop(eax);
__ add(Operand(eax), Immediate(Smi::FromInt(1)));
frame_->EmitPush(eax);
entry.Jump();
- // Cleanup.
+ // Cleanup. No need to spill because VirtualFrame::Drop is safe for
+ // any frame.
node->break_target()->Bind();
frame_->Drop(5);
« no previous file with comments | « src/codegen-arm.cc ('k') | test/mjsunit/bugs/bug-284.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698