Home | History | Annotate | Download | only in src

Lines Matching defs:string

27 #include "src/string-builder.h"
132 // or converts the receiver to a String otherwise and assigns it to a new var
142 Handle<String> name; \
978 Handle<String> string(String::cast(js_value->value()), isolate);
979 uint32_t length = static_cast<uint32_t>(string->length());
1488 String::cast(*next_source)->length() == 0);
2084 Handle<String> encoded_uri;
2095 Handle<String> encoded_uri_component;
2107 Handle<String> uri;
2117 Handle<String> uri_component;
2126 // ES6 section B.2.1.1 escape (string)
2129 Handle<String> string;
2131 isolate, string,
2134 RETURN_RESULT_OR_FAILURE(isolate, Uri::Escape(isolate, string));
2137 // ES6 section B.2.1.2 unescape (string)
2140 Handle<String> string;
2142 isolate, string,
2145 RETURN_RESULT_OR_FAILURE(isolate, Uri::Unescape(isolate, string));
2168 Handle<String> source,
2184 // Compile source string in the native context.
2207 Handle<String>::cast(x), NO_PARSE_RESTRICTION));
2218 Handle<String> string;
2219 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, string,
2221 string = String::Flatten(string);
2223 isolate, string->IsSeqOneByteString()
2224 ? JsonParser<true>::Parse(isolate, string, reviver)
2225 : JsonParser<false>::Parse(isolate, string, reviver));
3389 // ES6 section 20.3.1.16 Date Time String Format
3390 double ParseDateTimeString(Handle<String> str) {
3392 str = String::Flatten(str);
3397 String::FlatContent str_content = str->GetFlatContent();
3503 time_val = ParseDateTimeString(Handle<String>::cast(value));
3575 // ES6 section 20.3.3.2 Date.parse ( string )
3578 Handle<String> string;
3580 isolate, string,
3582 return *isolate->factory()->NewNumber(ParseDateTimeString(string));
4208 Handle<String> name =
4340 // Build the source string.
4341 Handle<String> source;
4351 Handle<String> param;
4355 param = String::Flatten(param);
4357 // If the formal parameters string include ) - an illegal
4361 String::FlatContent param_content = param->GetFlatContent();
4376 Handle<String> body;
4394 // Compile the string in the constructor and not a helper so that errors to
4519 Handle<String> name;
4523 Name::ToFunctionName(Handle<String>::cast(target_name)));
4625 // ES6 section 21.1 String Objects
4627 // ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits )
4652 // Single argument case, perform fast single character string cache lookup
4654 // string on the fly otherwise.
4657 code32, assembler->Int32Constant(String::kMaxUtf16CodeUnit));
4664 // Determine the resulting string length.
4671 // Assume that the resulting string contains only one-byte characters.
4674 // Truncate all input parameters and append them to the resulting string.
4684 // Check if we're done with the string.
4698 code32, assembler->Int32Constant(String::kMaxUtf16CodeUnit));
4700 // Check if {code16} fits into a one-byte string.
4704 code16, assembler->Int32Constant(String::kMaxOneByteCharCode)),
4724 // Allocate a SeqTwoByteString to hold the resulting string.
4774 // Check if we're done with the string.
4789 code32, assembler->Int32Constant(String::kMaxUtf16CodeUnit));
4814 namespace { // for String.fromCodePoint
4846 // ES6 section 21.1.2.2 String.fromCodePoint ( ...codePoints )
4853 // Optimistically assume that the resulting String contains only one byte
4863 if (code > String::kMaxOneByteCharCode) {
4907 // ES6 section 21.1.3.1 String.prototype.charAt ( pos )
4917 // Check that {receiver} is coercible to Object and convert it to a String.
4919 assembler->ToThisString(context, receiver, "String.prototype.charAt");
4979 // Determine the actual length of the {receiver} String.
4981 assembler->LoadObjectField(receiver, String::kLengthOffset);
4996 // And return the single character string with only that {code}.
5001 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos )
5012 // Check that {receiver} is coercible to Object and convert it to a String.
5014 assembler->ToThisString(context, receiver, "String.prototype.charCodeAt");
5074 // Determine the actual length of the {receiver} String.
5076 assembler->LoadObjectField(receiver, String::kLengthOffset);
5094 // ES6 section 21.1.3.25 String.prototype.trim ()
5097 TO_THIS_STRING(string, "String.prototype.trim");
5098 return *String::Trim(string, String::kTrim);
5104 TO_THIS_STRING(string, "String.prototype.trimLeft");
5105 return *String::Trim(string, String::kTrimLeft);
5111 TO_THIS_STRING(string, "String.prototype.trimRight");
5112 return *String::Trim(string, String::kTrimRight);