Lines Matching refs:regexp
41 #include "regexp-macro-assembler.h"
42 #include "regexp-macro-assembler-tracer.h"
43 #include "regexp-macro-assembler-irregexp.h"
44 #include "regexp-stack.h"
48 #include "ia32/regexp-macro-assembler-ia32.h"
50 #include "x64/regexp-macro-assembler-x64.h"
52 #include "arm/regexp-macro-assembler-arm.h"
54 #include "mips/regexp-macro-assembler-mips.h"
111 // Generic RegExp methods. Dispatches to implementation specific methods.
159 // Compilation succeeded so the data is set on the regexp
168 Handle<Object> RegExpImpl::Exec(Handle<JSRegExp> regexp,
172 switch (regexp->TypeTag()) {
174 return AtomExec(regexp, subject, index, last_match_info);
177 IrregexpExec(regexp, subject, index, last_match_info);
179 regexp->GetIsolate()->has_pending_exception());
189 // RegExp Atom implementation: Simple string search using indexOf.
277 // Ensures that the regexp object contains a compiled version of the
287 #else // V8_INTERPRETED_REGEXP (RegExp native code)
320 // Compile the RegExp.
328 // uncompiled regexp, a previous compilation error, or code that has
370 // Unable to compile regexp.
432 int RegExpImpl::IrregexpPrepare(Handle<JSRegExp> regexp,
438 if (!EnsureCompiledIrregexp(regexp, is_ascii)) return -1;
441 // Byte-code regexp needs space allocated for all its registers.
442 return IrregexpNumberOfRegisters(FixedArray::cast(regexp->data()));
444 // Native regexp only needs room to output captures. Registers are handled
446 return (IrregexpNumberOfCaptures(FixedArray::cast(regexp->data())) + 1) * 2;
452 Handle<JSRegExp> regexp,
456 Isolate* isolate = regexp->GetIsolate();
458 Handle<FixedArray> irregexp(FixedArray::cast(regexp->data()), isolate);
469 EnsureCompiledIrregexp(regexp, is_ascii);
495 IrregexpPrepare(regexp, subject);
588 // The Irregexp regexp engine is structured in three steps.
855 return RegExpEngine::CompilationResult("RegExp too big");
859 // Attempts to compile the regexp using an Irregexp code generator. Returns
2432 // later passes. for example for the case independent regexp /%[asdfghjkl]a/
2806 * regexp continuation is generated directly after the Sn node, up to the
3748 // regexp graph generator.
5262 // Wrap the body of the regexp in capture #0.
5305 // Native regexp implementation.
5322 // Interpreted regexp implementation.