Reviewers: Mads Ager,

Description:
Prepare for bailout with the proper state at labeled block entries.

The state here should be NO_REGISTERS.  It was spuriously changed to from
NO_REGISTERS to TOS_REG when TOS_EAX was renamed to TOS_REG.

BUG=v8:1113

Please review this at http://codereview.chromium.org/6452007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/full-codegen.cc


Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 4ed3fecfe8738c45ee8577de579a7013fe257a71..252fb9257a9bfdfcabd2ce77b541de233502b8f3 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -913,7 +913,7 @@ void FullCodeGenerator::VisitBlock(Block* stmt) {
   Breakable nested_statement(this, stmt);
   SetStatementPosition(stmt);

-  PrepareForBailoutForId(stmt->EntryId(), TOS_REG);
+  PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
   VisitStatements(stmt->statements());
   __ bind(nested_statement.break_target());
   PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to