Revision: 16059
Author:   [email protected]
Date:     Mon Aug  5 09:53:28 2013
Log:      Change environment padding value to value with smi representation.

BUG=
[email protected]

Review URL: https://chromiumcodereview.appspot.com/22226002
http://code.google.com/p/v8/source/detail?r=16059

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

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Mon Aug  5 06:45:16 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Mon Aug  5 09:53:28 2013
@@ -1050,12 +1050,14 @@
     HBasicBlock* continuation) {
   if (continuation->last_environment() != NULL) {
// When merging from a deopt block to a continuation, resolve differences in - // environment by pushing undefined and popping extra values so that the
-    // environments match during the join.
+ // environment by pushing constant 0 and popping extra values so that the + // environments match during the join. Push 0 since it has the most specific + // representation, and will not influence representation inference of the
+    // phi.
int continuation_env_length = continuation->last_environment()->length();
     while (continuation_env_length != from->last_environment()->length()) {
       if (continuation_env_length > from->last_environment()->length()) {
-        from->last_environment()->Push(graph()->GetConstantUndefined());
+        from->last_environment()->Push(graph()->GetConstant0());
       } else {
         from->last_environment()->Pop();
       }

--
--
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