Revision: 23521
Author:   [email protected]
Date:     Fri Aug 29 15:01:50 2014 UTC
Log:      Workaround to avoid generic lowering breaking branches.

[email protected]

Review URL: https://codereview.chromium.org/520643002
https://code.google.com/p/v8/source/detail?r=23521

Modified:
 /branches/bleeding_edge/src/compiler/js-generic-lowering.cc

=======================================
--- /branches/bleeding_edge/src/compiler/js-generic-lowering.cc Fri Aug 29 05:00:55 2014 UTC +++ /branches/bleeding_edge/src/compiler/js-generic-lowering.cc Fri Aug 29 15:01:50 2014 UTC
@@ -385,9 +385,14 @@


 Node* JSGenericLowering::LowerBranch(Node* node) {
-  Node* test = graph()->NewNode(machine()->WordEqual(), node->InputAt(0),
-                                jsgraph()->TrueConstant());
-  node->ReplaceInput(0, test);
+  if (!info()->is_typing_enabled()) {
+ // TODO(mstarzinger): If typing is enabled then simplified lowering will + // have inserted the correct ChangeBoolToBit, otherwise we need to perform
+    // poor-man's representation inference here and insert manual change.
+    Node* test = graph()->NewNode(machine()->WordEqual(), node->InputAt(0),
+                                  jsgraph()->TrueConstant());
+    node->ReplaceInput(0, test);
+  }
   return node;
 }

--
--
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/d/optout.

Reply via email to