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 4789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4800 }; | 4800 }; |
4801 | 4801 |
4802 | 4802 |
4803 class HStringAdd: public HBinaryOperation { | 4803 class HStringAdd: public HBinaryOperation { |
4804 public: | 4804 public: |
4805 HStringAdd(HValue* context, HValue* left, HValue* right) | 4805 HStringAdd(HValue* context, HValue* left, HValue* right) |
4806 : HBinaryOperation(context, left, right) { | 4806 : HBinaryOperation(context, left, right) { |
4807 set_representation(Representation::Tagged()); | 4807 set_representation(Representation::Tagged()); |
4808 SetFlag(kUseGVN); | 4808 SetFlag(kUseGVN); |
4809 SetGVNFlag(kDependsOnMaps); | 4809 SetGVNFlag(kDependsOnMaps); |
| 4810 SetGVNFlag(kChangesNewSpacePromotion); |
4810 } | 4811 } |
4811 | 4812 |
4812 virtual Representation RequiredInputRepresentation(int index) { | 4813 virtual Representation RequiredInputRepresentation(int index) { |
4813 return Representation::Tagged(); | 4814 return Representation::Tagged(); |
4814 } | 4815 } |
4815 | 4816 |
4816 virtual HType CalculateInferredType() { | 4817 virtual HType CalculateInferredType() { |
4817 return HType::String(); | 4818 return HType::String(); |
4818 } | 4819 } |
4819 | 4820 |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5414 virtual bool IsDeletable() const { return true; } | 5415 virtual bool IsDeletable() const { return true; } |
5415 }; | 5416 }; |
5416 | 5417 |
5417 | 5418 |
5418 #undef DECLARE_INSTRUCTION | 5419 #undef DECLARE_INSTRUCTION |
5419 #undef DECLARE_CONCRETE_INSTRUCTION | 5420 #undef DECLARE_CONCRETE_INSTRUCTION |
5420 | 5421 |
5421 } } // namespace v8::internal | 5422 } } // namespace v8::internal |
5422 | 5423 |
5423 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5424 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |