| 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 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4051 class HRegExpLiteral: public HMaterializedLiteral<1> { | 4051 class HRegExpLiteral: public HMaterializedLiteral<1> { |
| 4052 public: | 4052 public: |
| 4053 HRegExpLiteral(HValue* context, | 4053 HRegExpLiteral(HValue* context, |
| 4054 Handle<String> pattern, | 4054 Handle<String> pattern, |
| 4055 Handle<String> flags, | 4055 Handle<String> flags, |
| 4056 int literal_index) | 4056 int literal_index) |
| 4057 : HMaterializedLiteral<1>(literal_index, 0), | 4057 : HMaterializedLiteral<1>(literal_index, 0), |
| 4058 pattern_(pattern), | 4058 pattern_(pattern), |
| 4059 flags_(flags) { | 4059 flags_(flags) { |
| 4060 SetOperandAt(0, context); | 4060 SetOperandAt(0, context); |
| 4061 SetAllSideEffects(); |
| 4061 } | 4062 } |
| 4062 | 4063 |
| 4063 HValue* context() { return OperandAt(0); } | 4064 HValue* context() { return OperandAt(0); } |
| 4064 Handle<String> pattern() { return pattern_; } | 4065 Handle<String> pattern() { return pattern_; } |
| 4065 Handle<String> flags() { return flags_; } | 4066 Handle<String> flags() { return flags_; } |
| 4066 | 4067 |
| 4067 virtual Representation RequiredInputRepresentation(int index) const { | 4068 virtual Representation RequiredInputRepresentation(int index) const { |
| 4068 return Representation::Tagged(); | 4069 return Representation::Tagged(); |
| 4069 } | 4070 } |
| 4070 | 4071 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4201 | 4202 |
| 4202 DECLARE_CONCRETE_INSTRUCTION(In) | 4203 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4203 }; | 4204 }; |
| 4204 | 4205 |
| 4205 #undef DECLARE_INSTRUCTION | 4206 #undef DECLARE_INSTRUCTION |
| 4206 #undef DECLARE_CONCRETE_INSTRUCTION | 4207 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4207 | 4208 |
| 4208 } } // namespace v8::internal | 4209 } } // namespace v8::internal |
| 4209 | 4210 |
| 4210 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4211 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |