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 6164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6175 ElementsKind to_kind_; | 6175 ElementsKind to_kind_; |
6176 }; | 6176 }; |
6177 | 6177 |
6178 | 6178 |
6179 class HStringAdd: public HBinaryOperation { | 6179 class HStringAdd: public HBinaryOperation { |
6180 public: | 6180 public: |
6181 static HInstruction* New(Zone* zone, | 6181 static HInstruction* New(Zone* zone, |
6182 HValue* context, | 6182 HValue* context, |
6183 HValue* left, | 6183 HValue* left, |
6184 HValue* right, | 6184 HValue* right, |
6185 StringAddFlags flags = NO_STRING_CHECK_IN_STUB); | 6185 StringAddFlags flags = STRING_ADD_CHECK_NONE); |
6186 | 6186 |
6187 StringAddFlags flags() const { return flags_; } | 6187 StringAddFlags flags() const { return flags_; } |
6188 | 6188 |
6189 virtual Representation RequiredInputRepresentation(int index) { | 6189 virtual Representation RequiredInputRepresentation(int index) { |
6190 return Representation::Tagged(); | 6190 return Representation::Tagged(); |
6191 } | 6191 } |
6192 | 6192 |
6193 virtual HType CalculateInferredType() { | 6193 virtual HType CalculateInferredType() { |
6194 return HType::String(); | 6194 return HType::String(); |
6195 } | 6195 } |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6685 virtual bool IsDeletable() const { return true; } | 6685 virtual bool IsDeletable() const { return true; } |
6686 }; | 6686 }; |
6687 | 6687 |
6688 | 6688 |
6689 #undef DECLARE_INSTRUCTION | 6689 #undef DECLARE_INSTRUCTION |
6690 #undef DECLARE_CONCRETE_INSTRUCTION | 6690 #undef DECLARE_CONCRETE_INSTRUCTION |
6691 | 6691 |
6692 } } // namespace v8::internal | 6692 } } // namespace v8::internal |
6693 | 6693 |
6694 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6694 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |