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 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3448 virtual Representation RepresentationFromInputs(); | 3448 virtual Representation RepresentationFromInputs(); |
3449 virtual void AssumeRepresentation(Representation r); | 3449 virtual void AssumeRepresentation(Representation r); |
3450 | 3450 |
3451 virtual bool IsCommutative() const { return false; } | 3451 virtual bool IsCommutative() const { return false; } |
3452 | 3452 |
3453 virtual void PrintDataTo(StringStream* stream); | 3453 virtual void PrintDataTo(StringStream* stream); |
3454 | 3454 |
3455 DECLARE_ABSTRACT_INSTRUCTION(BinaryOperation) | 3455 DECLARE_ABSTRACT_INSTRUCTION(BinaryOperation) |
3456 | 3456 |
3457 private: | 3457 private: |
| 3458 bool IgnoreObservedOutputRepresentation(Representation current_rep); |
| 3459 |
3458 Representation observed_input_representation_[2]; | 3460 Representation observed_input_representation_[2]; |
3459 Representation observed_output_representation_; | 3461 Representation observed_output_representation_; |
3460 }; | 3462 }; |
3461 | 3463 |
3462 | 3464 |
3463 class HWrapReceiver: public HTemplateInstruction<2> { | 3465 class HWrapReceiver: public HTemplateInstruction<2> { |
3464 public: | 3466 public: |
3465 HWrapReceiver(HValue* receiver, HValue* function) { | 3467 HWrapReceiver(HValue* receiver, HValue* function) { |
3466 set_representation(Representation::Tagged()); | 3468 set_representation(Representation::Tagged()); |
3467 SetOperandAt(0, receiver); | 3469 SetOperandAt(0, receiver); |
(...skipping 3023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6491 virtual bool IsDeletable() const { return true; } | 6493 virtual bool IsDeletable() const { return true; } |
6492 }; | 6494 }; |
6493 | 6495 |
6494 | 6496 |
6495 #undef DECLARE_INSTRUCTION | 6497 #undef DECLARE_INSTRUCTION |
6496 #undef DECLARE_CONCRETE_INSTRUCTION | 6498 #undef DECLARE_CONCRETE_INSTRUCTION |
6497 | 6499 |
6498 } } // namespace v8::internal | 6500 } } // namespace v8::internal |
6499 | 6501 |
6500 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6502 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |