Home | History | Annotate | Download | only in src

Lines Matching full:replacement

3343   // Return whether the replacement is simple.
3344 bool Compile(Handle<String> replacement,
3354 // Number of distinct parts of the replacement pattern.
3395 // the replacement pattern, otherwise it's a value from PartType.
3402 // the negation of an index into the replacement string.
3410 // of the replacement string.
3411 // tag <= 0: Temporary representation of the substring of the replacement
3517 // Replacement is simple. Do not use Apply to do the replacement.
3532 bool CompiledReplacement::Compile(Handle<String> replacement,
3537 String::FlatContent content = replacement->GetFlatContent();
3557 Isolate* isolate = replacement->GetIsolate();
3558 // Find substrings of replacement string and create them as String objects.
3562 if (tag <= 0) { // A replacement string slice.
3566 isolate->factory()->NewSubString(replacement, from, to), zone());
3571 replacement_substrings_.Add(replacement, zone());
3765 Handle<String> replacement,
3768 ASSERT(replacement->IsFlat());
3777 int replacement_len = replacement->length();
3818 String::WriteToFlat(*replacement,
3847 Handle<String> replacement,
3850 ASSERT(replacement->IsFlat());
3858 bool simple_replace = compiled_replacement.Compile(replacement,
3865 replacement->HasOnlyOneByteChars()) {
3867 isolate, subject, regexp, replacement, last_match_info);
3870 isolate, subject, regexp, replacement, last_match_info);
3891 // Number of parts added by compiled replacement plus preceeding
3909 builder.AddString(replacement);
4038 CONVERT_ARG_HANDLE_CHECKED(String, replacement, 2);
4046 if (replacement->length() == 0) {
4056 if (!replacement->IsFlat()) replacement = FlattenGetString(replacement);
4059 isolate, subject, regexp, replacement, last_match_info);
8524 // selected for on-stack replacement. Find the unoptimized code object.
8585 PrintF("[on-stack replacement offset %d in optimized code]\n",