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