| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 static Result Execute(Code* code, | 209 static Result Execute(Code* code, |
| 210 String* input, | 210 String* input, |
| 211 int start_offset, | 211 int start_offset, |
| 212 const byte* input_start, | 212 const byte* input_start, |
| 213 const byte* input_end, | 213 const byte* input_end, |
| 214 int* output, | 214 int* output, |
| 215 bool at_start); | 215 bool at_start); |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 | |
| 219 // Enter C code from generated RegExp code in a way that allows | |
| 220 // the C code to fix the return address in case of a GC. | |
| 221 // Currently only needed on ARM. | |
| 222 class RegExpCEntryStub: public CodeStub { | |
| 223 public: | |
| 224 RegExpCEntryStub() {} | |
| 225 virtual ~RegExpCEntryStub() {} | |
| 226 void Generate(MacroAssembler* masm); | |
| 227 | |
| 228 private: | |
| 229 Major MajorKey() { return RegExpCEntry; } | |
| 230 int MinorKey() { return 0; } | |
| 231 const char* GetName() { return "RegExpCEntryStub"; } | |
| 232 }; | |
| 233 | |
| 234 #endif // V8_NATIVE_REGEXP | 218 #endif // V8_NATIVE_REGEXP |
| 235 | 219 |
| 236 } } // namespace v8::internal | 220 } } // namespace v8::internal |
| 237 | 221 |
| 238 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 222 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |