OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4130 class HRegExpLiteral: public HMaterializedLiteral<1> { | 4130 class HRegExpLiteral: public HMaterializedLiteral<1> { |
4131 public: | 4131 public: |
4132 HRegExpLiteral(HValue* context, | 4132 HRegExpLiteral(HValue* context, |
4133 Handle<String> pattern, | 4133 Handle<String> pattern, |
4134 Handle<String> flags, | 4134 Handle<String> flags, |
4135 int literal_index) | 4135 int literal_index) |
4136 : HMaterializedLiteral<1>(literal_index, 0), | 4136 : HMaterializedLiteral<1>(literal_index, 0), |
4137 pattern_(pattern), | 4137 pattern_(pattern), |
4138 flags_(flags) { | 4138 flags_(flags) { |
4139 SetOperandAt(0, context); | 4139 SetOperandAt(0, context); |
| 4140 SetAllSideEffects(); |
4140 } | 4141 } |
4141 | 4142 |
4142 HValue* context() { return OperandAt(0); } | 4143 HValue* context() { return OperandAt(0); } |
4143 Handle<String> pattern() { return pattern_; } | 4144 Handle<String> pattern() { return pattern_; } |
4144 Handle<String> flags() { return flags_; } | 4145 Handle<String> flags() { return flags_; } |
4145 | 4146 |
4146 virtual Representation RequiredInputRepresentation(int index) { | 4147 virtual Representation RequiredInputRepresentation(int index) { |
4147 return Representation::Tagged(); | 4148 return Representation::Tagged(); |
4148 } | 4149 } |
4149 virtual HType CalculateInferredType(); | 4150 virtual HType CalculateInferredType(); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4285 | 4286 |
4286 DECLARE_CONCRETE_INSTRUCTION(In) | 4287 DECLARE_CONCRETE_INSTRUCTION(In) |
4287 }; | 4288 }; |
4288 | 4289 |
4289 #undef DECLARE_INSTRUCTION | 4290 #undef DECLARE_INSTRUCTION |
4290 #undef DECLARE_CONCRETE_INSTRUCTION | 4291 #undef DECLARE_CONCRETE_INSTRUCTION |
4291 | 4292 |
4292 } } // namespace v8::internal | 4293 } } // namespace v8::internal |
4293 | 4294 |
4294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4295 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |