Revision: 14949
Author:   [email protected]
Date:     Wed Jun  5 04:05:45 2013
Log: Use HSoftDeoptimize instead of HDeoptimize in VisitSwitchStatement, and visit the entire graph

[email protected]

Review URL: https://codereview.chromium.org/15929010
http://code.google.com/p/v8/source/detail?r=14949

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Wed Jun  5 03:43:18 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Wed Jun  5 04:05:45 2013
@@ -5023,11 +5023,7 @@

     if (stmt->switch_type() == SwitchStatement::SMI_SWITCH) {
       if (!clause->IsSmiCompare()) {
-        // Finish with deoptimize and add uses of enviroment values to
-        // account for invisible uses.
- current_block()->FinishExitWithDeoptimization(HDeoptimize::kUseAll);
-        set_current_block(NULL);
-        break;
+        AddSoftDeoptimize();
       }

       HCompareIDAndBranch* compare_ =
@@ -5051,7 +5047,7 @@
   }

   // Save the current block to use for the default or to join with the
-  // exit.  This block is NULL if we deoptimized.
+  // exit.
   HBasicBlock* last_block = current_block();

   if (not_string_block != NULL) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to