OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // Labels used internally. | 235 // Labels used internally. |
236 Label entry_label_; | 236 Label entry_label_; |
237 Label start_label_; | 237 Label start_label_; |
238 Label success_label_; | 238 Label success_label_; |
239 Label backtrack_label_; | 239 Label backtrack_label_; |
240 Label exit_label_; | 240 Label exit_label_; |
241 Label check_preempt_label_; | 241 Label check_preempt_label_; |
242 Label stack_overflow_label_; | 242 Label stack_overflow_label_; |
243 }; | 243 }; |
244 | 244 |
245 | |
246 // Enter C code from generated RegExp code in a way that allows | |
247 // the C code to fix the return address in case of a GC. | |
248 // Currently only needed on ARM. | |
249 class RegExpCEntryStub: public CodeStub { | |
250 public: | |
251 RegExpCEntryStub() {} | |
252 virtual ~RegExpCEntryStub() {} | |
253 void Generate(MacroAssembler* masm); | |
254 | |
255 private: | |
256 Major MajorKey() { return RegExpCEntry; } | |
257 int MinorKey() { return 0; } | |
258 const char* GetName() { return "RegExpCEntryStub"; } | |
259 }; | |
260 | |
261 #endif // V8_INTERPRETED_REGEXP | 245 #endif // V8_INTERPRETED_REGEXP |
262 | 246 |
263 | 247 |
264 }} // namespace v8::internal | 248 }} // namespace v8::internal |
265 | 249 |
266 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 250 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |