Chromium Code Reviews| Index: src/hydrogen-instructions.h |
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
| index 93c8f985e12cde34031308aa51af3fa56311fa4a..08e6d300a4f5b0853b75d7337b44956845077e5b 100644 |
| --- a/src/hydrogen-instructions.h |
| +++ b/src/hydrogen-instructions.h |
| @@ -95,7 +95,7 @@ class LChunkBuilder; |
| V(CheckPrototypeMaps) \ |
| V(ClampToUint8) \ |
| V(ClassOfTestAndBranch) \ |
| - V(CompareIDAndBranch) \ |
| + V(CompareNumericAndBranch) \ |
| V(CompareGeneric) \ |
| V(CompareObjectEqAndBranch) \ |
| V(CompareMap) \ |
| @@ -1601,21 +1601,11 @@ class HUnaryControlInstruction: public HTemplateControlInstruction<2, 1> { |
| class HBranch: public HUnaryControlInstruction { |
| public: |
| HBranch(HValue* value, |
| - HBasicBlock* true_target, |
| - HBasicBlock* false_target, |
| - ToBooleanStub::Types expected_input_types = ToBooleanStub::Types()) |
| + ToBooleanStub::Types expected_input_types = ToBooleanStub::Types(), |
| + HBasicBlock* true_target = NULL, |
| + HBasicBlock* false_target = NULL) |
| : 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) { |
| - SetFlag(kAllowUndefinedAsNaN); |
| - } |
| - HBranch(HValue* value, ToBooleanStub::Types expected_input_types) |
| - : HUnaryControlInstruction(value, NULL, NULL), |
| - expected_input_types_(expected_input_types) { |
| SetFlag(kAllowUndefinedAsNaN); |
| } |
| @@ -1637,14 +1627,11 @@ class HBranch: public HUnaryControlInstruction { |
| class HCompareMap: public HUnaryControlInstruction { |
| public: |
| - HCompareMap(HValue* value, |
| - Handle<Map> map, |
| - HBasicBlock* true_target, |
| - HBasicBlock* false_target) |
| + HCompareMap(HValue* value, Handle<Map> map, |
|
Michael Starzinger
2013/07/01 12:30:39
nit: One parameter per line.
danno
2013/07/05 09:52:39
Done.
|
| + HBasicBlock* true_target = NULL, |
| + HBasicBlock* false_target = NULL) |
| : HUnaryControlInstruction(value, true_target, false_target), |
| - map_(map) { |
| - ASSERT(true_target != NULL); |
| - ASSERT(false_target != NULL); |
| + map_(map) { |
| ASSERT(!map.is_null()); |
| } |
| @@ -3931,9 +3918,9 @@ class HCompareGeneric: public HBinaryOperation { |
| }; |
| -class HCompareIDAndBranch: public HTemplateControlInstruction<2, 2> { |
| +class HCompareNumericAndBranch: public HTemplateControlInstruction<2, 2> { |
| public: |
| - HCompareIDAndBranch(HValue* left, HValue* right, Token::Value token) |
| + HCompareNumericAndBranch(HValue* left, HValue* right, Token::Value token) |
| : token_(token) { |
| SetFlag(kFlexibleRepresentation); |
| ASSERT(Token::IsCompareOp(token)); |
| @@ -3963,7 +3950,7 @@ class HCompareIDAndBranch: public HTemplateControlInstruction<2, 2> { |
| virtual void AddInformativeDefinitions(); |
| - DECLARE_CONCRETE_INSTRUCTION(CompareIDAndBranch) |
| + DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch) |
| private: |
| Representation observed_input_representation_[2]; |