[turbofan] Fix branch hints for ChangeInt32ToTagged and ChangeTaggedToUI32.

R=titzer@chromium.org

Review URL: https://codereview.chromium.org/694353006

Cr-Commit-Position: refs/heads/master@{#25106}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25106 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
bmeurer@chromium.org 2014-11-04 12:06:23 +00:00
parent 6ff255eabc
commit e56d4b92cd

View File

@ -143,7 +143,7 @@ Reduction ChangeLowering::ChangeInt32ToTagged(Node* val, Node* control) {
Node* ovf = graph()->NewNode(common()->Projection(1), add);
Node* branch =
graph()->NewNode(common()->Branch(BranchHint::kTrue), ovf, control);
graph()->NewNode(common()->Branch(BranchHint::kFalse), ovf, control);
Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
Node* heap_number = AllocateHeapNumberWithValue(
@ -167,7 +167,8 @@ Reduction ChangeLowering::ChangeTaggedToUI32(Node* val, Node* control,
Node* tag = graph()->NewNode(machine()->WordAnd(), val,
jsgraph()->IntPtrConstant(kSmiTagMask));
Node* branch = graph()->NewNode(common()->Branch(), tag, control);
Node* branch =
graph()->NewNode(common()->Branch(BranchHint::kFalse), tag, control);
Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
const Operator* op = (signedness == kSigned)