OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1554 HBranch(HValue* value, | 1554 HBranch(HValue* value, |
1555 HBasicBlock* true_target, | 1555 HBasicBlock* true_target, |
1556 HBasicBlock* false_target, | 1556 HBasicBlock* false_target, |
1557 ToBooleanStub::Types expected_input_types = ToBooleanStub::no_types()) | 1557 ToBooleanStub::Types expected_input_types = ToBooleanStub::no_types()) |
1558 : HUnaryControlInstruction(value, true_target, false_target), | 1558 : HUnaryControlInstruction(value, true_target, false_target), |
1559 expected_input_types_(expected_input_types) { | 1559 expected_input_types_(expected_input_types) { |
1560 ASSERT(true_target != NULL && false_target != NULL); | 1560 ASSERT(true_target != NULL && false_target != NULL); |
1561 } | 1561 } |
1562 explicit HBranch(HValue* value) | 1562 explicit HBranch(HValue* value) |
1563 : HUnaryControlInstruction(value, NULL, NULL) { } | 1563 : HUnaryControlInstruction(value, NULL, NULL) { } |
| 1564 HBranch(HValue* value, ToBooleanStub::Types expected_input_types) |
| 1565 : HUnaryControlInstruction(value, NULL, NULL), |
| 1566 expected_input_types_(expected_input_types) { } |
1564 | 1567 |
1565 | 1568 |
1566 virtual Representation RequiredInputRepresentation(int index) { | 1569 virtual Representation RequiredInputRepresentation(int index) { |
1567 return Representation::None(); | 1570 return Representation::None(); |
1568 } | 1571 } |
1569 virtual Representation observed_input_representation(int index); | 1572 virtual Representation observed_input_representation(int index); |
1570 | 1573 |
1571 ToBooleanStub::Types expected_input_types() const { | 1574 ToBooleanStub::Types expected_input_types() const { |
1572 return expected_input_types_; | 1575 return expected_input_types_; |
1573 } | 1576 } |
(...skipping 4925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6499 virtual bool IsDeletable() const { return true; } | 6502 virtual bool IsDeletable() const { return true; } |
6500 }; | 6503 }; |
6501 | 6504 |
6502 | 6505 |
6503 #undef DECLARE_INSTRUCTION | 6506 #undef DECLARE_INSTRUCTION |
6504 #undef DECLARE_CONCRETE_INSTRUCTION | 6507 #undef DECLARE_CONCRETE_INSTRUCTION |
6505 | 6508 |
6506 } } // namespace v8::internal | 6509 } } // namespace v8::internal |
6507 | 6510 |
6508 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6511 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |