Lines Matching refs:regexp
112 TNode<Object> regexp = CAST(AllocateJSObjectFromMap(initial_map)); in RegExpCreate() local
113 return CallRuntime(Runtime::kRegExpInitializeAndCompile, context, regexp, in RegExpCreate()
118 TNode<JSRegExp> regexp) { in FastLoadLastIndex() argument
122 return LoadObjectField(regexp, field_offset); in FastLoadLastIndex()
126 TNode<Object> regexp) { in SlowLoadLastIndex() argument
127 return GetProperty(context, regexp, isolate()->factory()->lastIndex_string()); in SlowLoadLastIndex()
131 TNode<Object> regexp, in LoadLastIndex() argument
133 return is_fastpath ? FastLoadLastIndex(CAST(regexp)) in LoadLastIndex()
134 : SlowLoadLastIndex(context, regexp); in LoadLastIndex()
139 void RegExpBuiltinsAssembler::FastStoreLastIndex(Node* regexp, Node* value) { in FastStoreLastIndex() argument
143 StoreObjectField(regexp, field_offset, value); in FastStoreLastIndex()
146 void RegExpBuiltinsAssembler::SlowStoreLastIndex(Node* context, Node* regexp, in SlowStoreLastIndex() argument
149 SetPropertyStrict(CAST(context), CAST(regexp), CAST(name), CAST(value)); in SlowStoreLastIndex()
152 void RegExpBuiltinsAssembler::StoreLastIndex(Node* context, Node* regexp, in StoreLastIndex() argument
155 FastStoreLastIndex(regexp, value); in StoreLastIndex()
157 SlowStoreLastIndex(context, regexp, value); in StoreLastIndex()
233 TNode<JSRegExp> regexp = CAST(maybe_regexp); in ConstructNewResultFromMatchInfo() local
239 CAST(LoadObjectField(regexp, JSRegExp::kDataOffset)); in ConstructNewResultFromMatchInfo()
325 TNode<Context> context, TNode<JSRegExp> regexp, TNode<String> string, in RegExpExecInternal() argument
331 return CAST(CallRuntime(Runtime::kRegExpExec, context, regexp, string, in RegExpExecInternal()
367 TNode<FixedArray> data = CAST(LoadObjectField(regexp, JSRegExp::kDataOffset)); in RegExpExecInternal()
626 var_result = CAST(CallRuntime(Runtime::kRegExpExec, context, regexp, string, in RegExpExecInternal()
635 var_result = CAST(CallBuiltin(Builtins::kRegExpExecAtom, context, regexp, in RegExpExecInternal()
660 TNode<JSRegExp> regexp = CAST(maybe_regexp); in RegExpPrototypeExecBodyWithoutResult() local
669 LoadLastIndex(context, regexp, is_fastpath); in RegExpPrototypeExecBodyWithoutResult()
694 TNode<Smi> flags = CAST(LoadObjectField(regexp, JSRegExp::kFlagsOffset)); in RegExpPrototypeExecBodyWithoutResult()
717 StoreLastIndex(context, regexp, SmiZero(), is_fastpath); in RegExpPrototypeExecBodyWithoutResult()
739 match_indices = RegExpExecInternal(context, regexp, string, in RegExpPrototypeExecBodyWithoutResult()
749 StoreLastIndex(context, regexp, SmiZero(), is_fastpath); in RegExpPrototypeExecBodyWithoutResult()
761 StoreLastIndex(context, regexp, new_lastindex, is_fastpath); in RegExpPrototypeExecBodyWithoutResult()
990 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kReceiver)); in TF_BUILTIN() local
994 Return(RegExpPrototypeExecBody(context, regexp, string, false)); in TF_BUILTIN()
1001 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kRegExp)); in TF_BUILTIN() local
1009 TNode<FixedArray> data = CAST(LoadObjectField(regexp, JSRegExp::kDataOffset)); in TF_BUILTIN()
1061 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kRegExp)); in TF_BUILTIN() local
1070 Return(RegExpExecInternal(context, regexp, string, last_index, match_info)); in TF_BUILTIN()
1101 Node* const regexp, in FlagsGetter() argument
1114 CSA_ASSERT(this, IsJSRegExp(regexp)); in FlagsGetter()
1115 Node* const flags_smi = LoadObjectField(regexp, JSRegExp::kFlagsOffset); in FlagsGetter()
1144 context, regexp, isolate->factory()->InternalizeUtf8String(NAME)); \ in FlagsGetter()
1234 Node* const regexp, in RegExpInitialize() argument
1237 CSA_ASSERT(this, IsJSRegExp(regexp)); in RegExpInitialize()
1251 return CallRuntime(Runtime::kRegExpInitializeAndCompile, context, regexp, in RegExpInitialize()
1381 Node* const regexp = AllocateJSObjectFromMap(initial_map); in TF_BUILTIN() local
1382 var_regexp.Bind(regexp); in TF_BUILTIN()
1389 Node* const regexp = constructor_assembler.EmitFastNewObject( in TF_BUILTIN() local
1391 var_regexp.Bind(regexp); in TF_BUILTIN()
1501 Node* RegExpBuiltinsAssembler::FastFlagGetter(Node* const regexp, in FastFlagGetter() argument
1504 CAST(LoadObjectField(regexp, JSRegExp::kFlagsOffset)); in FastFlagGetter()
1511 Node* const regexp, in SlowFlagGetter() argument
1542 Node* const value = GetProperty(context, regexp, name); in SlowFlagGetter()
1564 Node* const regexp, in FlagGetter() argument
1567 return is_fastpath ? FastFlagGetter(regexp, flag) in FlagGetter()
1568 : SlowFlagGetter(context, regexp, flag); in FlagGetter()
1676 Node* RegExpBuiltinsAssembler::RegExpExec(Node* context, Node* regexp, in RegExpExec() argument
1686 GetProperty(context, regexp, isolate()->factory()->exec_string()); in RegExpExec()
1699 Node* const result = CallJS(call_callable, context, exec, regexp, string); in RegExpExec()
1712 ThrowIfNotInstanceType(context, regexp, JS_REGEXP_TYPE, in RegExpExec()
1716 context, regexp, string); in RegExpExec()
1767 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kReceiver)); in TF_BUILTIN() local
1772 CSA_ASSERT(this, IsFastRegExpWithOriginalExec(context, regexp)); in TF_BUILTIN()
1773 RegExpPrototypeExecBodyWithoutResult(context, regexp, string, &if_didnotmatch, in TF_BUILTIN()
1843 Node* const regexp, in RegExpPrototypeMatchBody() argument
1846 if (is_fastpath) CSA_ASSERT(this, IsFastRegExp(context, regexp)); in RegExpPrototypeMatchBody()
1849 FlagGetter(context, regexp, JSRegExp::kGlobal, is_fastpath); in RegExpPrototypeMatchBody()
1858 ? RegExpPrototypeExecBody(CAST(context), CAST(regexp), string, true) in RegExpPrototypeMatchBody()
1859 : RegExpExec(context, regexp, string); in RegExpPrototypeMatchBody()
1866 FlagGetter(context, regexp, JSRegExp::kUnicode, is_fastpath); in RegExpPrototypeMatchBody()
1868 StoreLastIndex(context, regexp, SmiZero(), is_fastpath); in RegExpPrototypeMatchBody()
1891 RegExpPrototypeExecBodyWithoutResult(CAST(context), CAST(regexp), in RegExpPrototypeMatchBody()
1904 Node* const result = RegExpExec(context, regexp, string); in RegExpPrototypeMatchBody()
1936 LoadLastIndex(CAST(context), CAST(regexp), is_fastpath); in RegExpPrototypeMatchBody()
1954 StoreLastIndex(context, regexp, new_last_index, is_fastpath); in RegExpPrototypeMatchBody()
2184 Node* const context, Node* const regexp, Node* const string) { in RegExpPrototypeSearchBodyFast() argument
2185 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in RegExpPrototypeSearchBodyFast()
2189 Node* const previous_last_index = FastLoadLastIndex(CAST(regexp)); in RegExpPrototypeSearchBodyFast()
2192 FastStoreLastIndex(regexp, SmiZero()); in RegExpPrototypeSearchBodyFast()
2197 CAST(context), CAST(regexp), CAST(string), &if_didnotmatch, true); in RegExpPrototypeSearchBodyFast()
2202 FastStoreLastIndex(regexp, previous_last_index); in RegExpPrototypeSearchBodyFast()
2213 FastStoreLastIndex(regexp, previous_last_index); in RegExpPrototypeSearchBodyFast()
2219 Node* const context, Node* const regexp, Node* const string) { in RegExpPrototypeSearchBodySlow() argument
2220 CSA_ASSERT(this, IsJSReceiver(regexp)); in RegExpPrototypeSearchBodySlow()
2229 SlowLoadLastIndex(CAST(context), CAST(regexp)); in RegExpPrototypeSearchBodySlow()
2237 SlowStoreLastIndex(context, regexp, smi_zero); in RegExpPrototypeSearchBodySlow()
2243 Node* const exec_result = RegExpExec(context, regexp, string); in RegExpPrototypeSearchBodySlow()
2249 SlowLoadLastIndex(CAST(context), CAST(regexp)); in RegExpPrototypeSearchBodySlow()
2254 SlowStoreLastIndex(context, regexp, previous_last_index); in RegExpPrototypeSearchBodySlow()
2329 Node* const regexp, in RegExpPrototypeSplitBody() argument
2332 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in RegExpPrototypeSplitBody()
2333 CSA_ASSERT(this, Word32BinaryNot(FastFlagGetter(regexp, JSRegExp::kSticky))); in RegExpPrototypeSplitBody()
2367 CallBuiltin(Builtins::kRegExpExecInternal, context, regexp, string, in RegExpPrototypeSplitBody()
2424 CAST(CallBuiltin(Builtins::kRegExpExecInternal, context, regexp, string, in RegExpPrototypeSplitBody()
2455 Node* const is_unicode = FastFlagGetter(regexp, JSRegExp::kUnicode); in RegExpPrototypeSplitBody()
2563 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kRegExp)); in TF_BUILTIN() local
2568 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in TF_BUILTIN()
2605 GotoIf(FastFlagGetter(regexp, JSRegExp::kSticky), &runtime); in TF_BUILTIN()
2609 RegExpPrototypeSplitBody(context, regexp, string, CAST(var_limit.value())); in TF_BUILTIN()
2612 Return(CallRuntime(Runtime::kRegExpSplit, context, regexp, string, in TF_BUILTIN()
2653 Node* context, Node* regexp, Node* string, Node* replace_callable) { in ReplaceGlobalCallableFastPath() argument
2657 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in ReplaceGlobalCallableFastPath()
2672 FastStoreLastIndex(regexp, SmiZero()); in ReplaceGlobalCallableFastPath()
2691 Node* const res = CallRuntime(Runtime::kRegExpExecMultiple, context, regexp, in ReplaceGlobalCallableFastPath()
2695 FastStoreLastIndex(regexp, SmiZero()); in ReplaceGlobalCallableFastPath()
2859 Node* context, Node* regexp, TNode<String> string, in ReplaceSimpleStringFastPath() argument
2866 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in ReplaceSimpleStringFastPath()
2878 Node* const is_global = FastFlagGetter(regexp, JSRegExp::kGlobal); in ReplaceSimpleStringFastPath()
2881 var_is_unicode.Bind(FastFlagGetter(regexp, JSRegExp::kUnicode)); in ReplaceSimpleStringFastPath()
2882 FastStoreLastIndex(regexp, SmiZero()); in ReplaceSimpleStringFastPath()
2888 RegExpPrototypeExecBodyWithoutResult(CAST(context), CAST(regexp), in ReplaceSimpleStringFastPath()
2924 Node* const this_index = FastLoadLastIndex(CAST(regexp)); in ReplaceSimpleStringFastPath()
2927 FastStoreLastIndex(regexp, next_index); in ReplaceSimpleStringFastPath()
2950 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kRegExp)); in TF_BUILTIN() local
2955 CSA_ASSERT(this, IsFastRegExp(context, regexp)); in TF_BUILTIN()
2976 BranchIfFastRegExp(context, regexp, &next, &runtime); in TF_BUILTIN()
2988 ReplaceSimpleStringFastPath(context, regexp, string, replace_string)); in TF_BUILTIN()
2999 Node* const is_global = FastFlagGetter(regexp, JSRegExp::kGlobal); in TF_BUILTIN()
3003 Return(ReplaceGlobalCallableFastPath(context, regexp, string, replace_fn)); in TF_BUILTIN()
3007 context, string, regexp, replace_fn)); in TF_BUILTIN()
3011 Return(CallRuntime(Runtime::kRegExpReplace, context, regexp, string, in TF_BUILTIN()
3073 TNode<JSRegExp> regexp = CAST(Parameter(Descriptor::kRegExp)); in TF_BUILTIN() local
3081 CAST(CallBuiltin(Builtins::kRegExpExecInternal, context, regexp, string, in TF_BUILTIN()
3091 ConstructNewResultFromMatchInfo(context, regexp, match_indices, string)); in TF_BUILTIN()