diff options
Diffstat (limited to 'deps/v8/src/hydrogen-representation-changes.cc')
-rw-r--r-- | deps/v8/src/hydrogen-representation-changes.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/deps/v8/src/hydrogen-representation-changes.cc b/deps/v8/src/hydrogen-representation-changes.cc index 63b7b4d6ec..862457db38 100644 --- a/deps/v8/src/hydrogen-representation-changes.cc +++ b/deps/v8/src/hydrogen-representation-changes.cc @@ -47,8 +47,6 @@ void HRepresentationChangesPhase::InsertRepresentationChangeForUse( HInstruction* new_value = NULL; bool is_truncating_to_smi = use_value->CheckFlag(HValue::kTruncatingToSmi); bool is_truncating_to_int = use_value->CheckFlag(HValue::kTruncatingToInt32); - bool allow_undefined_as_nan = - use_value->CheckFlag(HValue::kAllowUndefinedAsNaN); if (value->IsConstant()) { HConstant* constant = HConstant::cast(value); // Try to create a new copy of the constant with the new representation. @@ -61,10 +59,8 @@ void HRepresentationChangesPhase::InsertRepresentationChangeForUse( } if (new_value == NULL) { - new_value = new(graph()->zone()) HChange(value, to, - is_truncating_to_smi, - is_truncating_to_int, - allow_undefined_as_nan); + new_value = new(graph()->zone()) HChange( + value, to, is_truncating_to_smi, is_truncating_to_int); } new_value->InsertBefore(next); @@ -127,7 +123,7 @@ void HRepresentationChangesPhase::Run() { !(input_representation.IsInteger32() && use->CheckFlag(HValue::kTruncatingToInt32))) || (phi->representation().IsSmi() && - !(input_representation.IsSmi() || + !(input_representation.IsSmi() && use->CheckFlag(HValue::kTruncatingToSmi)))) { if (FLAG_trace_representation) { PrintF("#%d Phi is not truncating because of #%d %s\n", |