Lines Matching refs:regexp
5 #include 'src/builtins/builtins-regexp-gen.h'
7 namespace regexp {
11 regexp: JSRegExp, string: String): JSAny {
12 assert(IsFastRegExpPermissive(regexp));
15 const previousLastIndex: Smi = FastLoadLastIndex(regexp);
18 FastStoreLastIndex(regexp, 0);
24 UnsafeCast<JSRegExp>(regexp), string)
29 FastStoreLastIndex(regexp, previousLastIndex);
36 FastStoreLastIndex(regexp, previousLastIndex);
51 regexp: JSReceiver, string: String): JSAny {
53 const previousLastIndex = SlowLoadLastIndex(regexp);
58 SlowStoreLastIndex(regexp, smiZero);
62 const execResult = RegExpExec(regexp, string);
65 const currentLastIndex = SlowLoadLastIndex(regexp);
67 SlowStoreLastIndex(regexp, previousLastIndex);
89 // ES#sec-regexp.prototype-@@search