| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index 7554fd85bad5a136e387698eb704159008be7bdd..46ae3cec5e617eaeeb36bd08aaf625fc3d6b3862 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -1596,17 +1596,21 @@ class HBranch: public HUnaryControlInstruction {
|
| HBranch(HValue* value,
|
| HBasicBlock* true_target,
|
| HBasicBlock* false_target,
|
| - ToBooleanStub::Types expected_input_types = ToBooleanStub::no_types())
|
| + ToBooleanStub::Types expected_input_types = ToBooleanStub::Types())
|
| : HUnaryControlInstruction(value, true_target, false_target),
|
| expected_input_types_(expected_input_types) {
|
| ASSERT(true_target != NULL && false_target != NULL);
|
| + SetFlag(kAllowUndefinedAsNaN);
|
| }
|
| explicit HBranch(HValue* value)
|
| - : HUnaryControlInstruction(value, NULL, NULL) { }
|
| + : HUnaryControlInstruction(value, NULL, NULL) {
|
| + SetFlag(kAllowUndefinedAsNaN);
|
| + }
|
| HBranch(HValue* value, ToBooleanStub::Types expected_input_types)
|
| : HUnaryControlInstruction(value, NULL, NULL),
|
| - expected_input_types_(expected_input_types) { }
|
| -
|
| + expected_input_types_(expected_input_types) {
|
| + SetFlag(kAllowUndefinedAsNaN);
|
| + }
|
|
|
| virtual Representation RequiredInputRepresentation(int index) {
|
| return Representation::None();
|
|
|