Lines Matching refs:string

5 #include "src/builtins/builtins-string-gen.h"
23 TNode<String> string, TNode<Word32T> string_instance_type) {
35 ReinterpretCast<RawPtrT>(BitcastTaggedToWord(string)),
42 var_data = LoadExternalStringResourceDataPtr(CAST(string));
202 // Dispatch based on the {lhs} and {rhs} string encoding.
316 // Added string can be a cons string.
367 // throw. Note: we also need to invalidate the string length protector, so
385 Comment("Full string concatenate");
407 // One-byte sequential string case
419 // Two-byte sequential string case
457 TNode<String> string, TNode<Int32T> instance_type, Label* can_deref,
464 // Cons string.
466 LoadObjectField<String>(string, ConsString::kSecondOffset);
478 DebugBreak(); // Should be able to dereference string.
525 // Fall through if neither string was an indirect string.
529 TNode<String> string, TNode<Int32T> instance_type, Label* cannot_deref) {
531 BranchIfCanDerefIndirectString(string, instance_type, &deref, cannot_deref);
535 return LoadObjectField<String>(string, ThinString::kActualOffset);
548 auto string = Parameter<String>(Descriptor::kString);
551 Return(SubString(string, SmiUntag(from), SmiUntag(to)));
604 // Compute the first offset after the string from the length.
642 // string length.
654 // TODO(bmeurer): Add support for two byte string relational comparisons.
771 // ES6 #sec-string.fromcharcode
789 // Single argument case, perform fast single character string cache lookup
791 // string on the fly otherwise.
804 // Assume that the resulting string contains only one-byte characters.
833 // At least one of the characters in the string requires a 16-bit
835 // string.
838 // Copy the characters that have already been put in the 8-bit string into
839 // their corresponding positions in the new 16-bit string.
890 // {maybe_string} must be a string (we can't call ToString on the fast path
941 const TNode<Context> context, const TNode<String> string) {
945 Builtin::kStringIndexOf, context, string, dollar_string, SmiConstant(0)));
989 // ES6 #sec-string.prototype.replace
1025 // Fast-path single-char {search}, long cons {receiver}, and simple string
1043 // Searching by traversing a cons string tree and replace with cons of
1044 // slices works only when the replaced string is a single character, being
1045 // replaced by a simple string and only pays off for long strings.
1105 // Compute the string to replace with.
1146 // ES #sec-string.prototype.matchAll
1216 // maybe_regexp is a fast regexp and receiver is a string.
1268 // The extracted direct string may be two-byte even though the wrapping
1269 // string is one-byte.
1373 // be an array of size 1 containing the entire string.
1394 // If the separator string is empty then return the elements in the subject.
1430 auto string = Parameter<String>(Descriptor::kString);
1434 Return(SubString(string, from, to));
1442 TNode<String> string, TNode<IntPtrT> length, TNode<IntPtrT> index,
1447 var_result = StringCharCodeAt(string, Unsigned(index));
1456 var_trail = StringCharCodeAt(string, Unsigned(next_index));
1588 // A wrapper around CopyStringCharacters which determines the correct string
1589 // encoding, allocates a corresponding sequential string, and then copies the
1591 // |from_string| must be a sequential string.
1603 // The subject string is a sequential one-byte string.
1615 // The subject string is a sequential two-byte string.
1632 TNode<String> StringBuiltinsAssembler::SubString(TNode<String> string,
1636 ToDirectStringAssembler to_direct(state(), string);
1640 const TNode<IntPtrT> string_length = LoadStringLengthAsWord(string);
1655 // Deal with different string types: update the index if necessary
1656 // and extract the underlying string.
1662 // The subject string can only be external or sequential string of either
1674 // Allocate new sliced string.
1702 // The subject string can only be external or sequential string of either
1715 // Handle external string.
1739 TNode<Int32T> char_code = StringCharCodeAt(string, Unsigned(from));
1751 // Return the original string (substr_length == string_length).
1756 var_result = string;
1764 CAST(CallRuntime(Runtime::kStringSubstring, NoContextConstant(), string,