Home
last modified time | relevance | path

Searched refs:is_one_byte (Results 1 – 25 of 32) sorted by relevance

12

/external/v8/src/ast/
Dast-value-factory.cc68 } else if (is_one_byte()) { in Internalize()
103 if (!is_one_byte()) return false; in IsOneByteEqualTo()
113 if (is_one_byte()) return literal_bytes_[0]; in FirstCharacter()
126 if (lhs->is_one_byte()) { in Compare()
127 if (rhs->is_one_byte()) { in Compare()
137 if (rhs->is_one_byte()) { in Compare()
184 bool is_one_byte = true; in AllocateFlat() local
188 is_one_byte = is_one_byte && current->string->is_one_byte(); in AllocateFlat()
191 if (is_one_byte) { in AllocateFlat()
223 if (current->string->is_one_byte()) { in AllocateFlat()
[all …]
Dast-value-factory.h55 return is_one_byte() ? literal_bytes_.length() in length()
67 bool is_one_byte() const { return is_one_byte_; } in is_one_byte() function
90 AstRawString(bool is_one_byte, const Vector<const byte>& literal_bytes, in AstRawString() argument
95 is_one_byte_(is_one_byte) {} in AstRawString()
372 const AstRawString* GetString(uint32_t hash, bool is_one_byte,
Dmodules.cc28 if (lhs->is_one_byte() != rhs->is_one_byte()) { in ThreeWayCompare()
29 return lhs->is_one_byte() ? -1 : 1; in ThreeWayCompare()
Dprettyprinter.cc701 const char* format = value->is_one_byte() ? "%c" : "%lc"; in PrintLiteral()
702 const int increment = value->is_one_byte() ? 1 : 2; in PrintLiteral()
/external/v8/src/regexp/
Dregexp.cc82 Handle<String> sample_subject, bool is_one_byte);
86 bool is_one_byte);
91 Handle<String> sample_subject, bool is_one_byte,
98 static ByteArray IrregexpByteCode(FixedArray re, bool is_one_byte);
99 static Code IrregexpNativeCode(FixedArray re, bool is_one_byte);
390 bool is_one_byte) { in EnsureCompiledIrregexp() argument
391 Object compiled_code = re->Code(is_one_byte); in EnsureCompiledIrregexp()
392 Object bytecode = re->Bytecode(is_one_byte); in EnsureCompiledIrregexp()
414 return CompileIrregexp(isolate, re, sample_subject, is_one_byte); in EnsureCompiledIrregexp()
420 bool RegExpCodeIsValidForPreCompilation(Handle<JSRegExp> re, bool is_one_byte) { in RegExpCodeIsValidForPreCompilation() argument
[all …]
Dregexp-macro-assembler.cc204 bool is_one_byte = String::IsOneByteRepresentationUnderneath(*subject_handle); in CheckStackGuardState() local
229 is_one_byte) { in CheckStackGuardState()
278 bool is_one_byte = subject_ptr.IsOneByteRepresentation(); in Match() local
281 int char_size_shift = is_one_byte ? 0 : 1; in Match()
304 bool is_one_byte = String::IsOneByteRepresentationUnderneath(input); in Execute() local
305 Code code = Code::cast(regexp.Code(is_one_byte)); in Execute()
Dregexp-compiler.h426 RegExpError AnalyzeRegExp(Isolate* isolate, bool is_one_byte, RegExpNode* node);
476 bool is_one_byte);
529 bool is_one_byte);
Dregexp.h127 bool is_one_byte);
Dregexp-compiler.cc2474 void TextNode::MakeCaseIndependent(Isolate* isolate, bool is_one_byte) { in MakeCaseIndependent() argument
2492 is_one_byte); in MakeCaseIndependent()
3595 Analysis(Isolate* isolate, bool is_one_byte) in Analysis() argument
3597 is_one_byte_(is_one_byte), in Analysis()
3711 RegExpError AnalyzeRegExp(Isolate* isolate, bool is_one_byte, in AnalyzeRegExp() argument
3714 is_one_byte); in AnalyzeRegExp()
3834 bool is_one_byte) { in PreprocessRegExp() argument
3861 if (is_one_byte) { in PreprocessRegExp()
Dregexp-interpreter.cc1059 bool is_one_byte = String::IsOneByteRepresentationUnderneath(subject_string); in Match() local
1060 ByteArray code_array = ByteArray::cast(regexp.Bytecode(is_one_byte)); in Match()
Dregexp-compiler-tonode.cc1144 bool is_one_byte) { in AddCaseEquivalents() argument
1156 if (is_one_byte && !RangeContainsLatin1Equivalents(range)) { in AddCaseEquivalents()
1199 if (is_one_byte && !RangeContainsLatin1Equivalents(range)) { in AddCaseEquivalents()
/external/v8/src/parsing/
Dliteral-buffer.h27 if (is_one_byte()) { in AddChar()
37 bool is_one_byte() const { return is_one_byte_; } in is_one_byte() function
40 return is_one_byte() && keyword.length() == position_ && in Equals()
59 int length() const { return is_one_byte() ? position_ : (position_ >> 1); } in length()
83 DCHECK(is_one_byte()); in AddOneByteChar()
Dliteral-buffer.cc17 if (is_one_byte()) { in Internalize()
43 DCHECK(is_one_byte()); in ConvertToTwoByte()
67 DCHECK(!is_one_byte()); in AddTwoByteChar()
Dpreparser.cc350 bool is_one_byte = true; in ParseFunctionLiteral() local
355 is_one_byte = string->is_one_byte(); in ParseFunctionLiteral()
359 function_scope->end_position(), name, name_byte_length, is_one_byte); in ParseFunctionLiteral()
Dscanner.h595 return current().literal_chars.is_one_byte(); in is_literal_one_byte()
609 return next().literal_chars.is_one_byte(); in is_next_literal_one_byte()
621 return current().raw_literal_chars.is_one_byte(); in is_raw_literal_one_byte()
Dpreparse-data.cc396 byte_data_.WriteUint8(name->is_one_byte()); in SaveDataForVariable()
706 DCHECK_IMPLIES(name->is_one_byte(), data_one_byte); in RestoreDataForVariable()
708 if (!name->is_one_byte() && data_one_byte) { in RestoreDataForVariable()
Dscanner.cc238 if (!name.is_one_byte()) return; in TryToParseSourceURLComment()
928 if (can_be_keyword && next().literal_chars.is_one_byte()) { in ScanIdentifierOrKeywordInnerSlow()
/external/v8/src/strings/
Dunicode-decoder.cc22 bool is_one_byte = true; in Utf8Decoder() local
30 is_one_byte = is_one_byte && t <= unibrow::Latin1::kMaxChar; in Utf8Decoder()
38 is_one_byte = false; in Utf8Decoder()
42 encoding_ = is_one_byte ? Encoding::kLatin1 : Encoding::kUtf16; in Utf8Decoder()
Dunicode-decoder.h58 bool is_one_byte() const { return encoding_ <= Encoding::kLatin1; } in is_one_byte() function
/external/v8/src/extensions/
Dexternalize-string-extension.cc116 bool is_one_byte = in IsOneByte() local
118 args.GetReturnValue().Set(is_one_byte); in IsOneByte()
/external/v8/src/logging/
Dlog-utils.cc132 bool is_one_byte) { in AppendString() argument
134 if (is_one_byte) { in AppendString()
136 DCHECK_IMPLIES(is_one_byte, str[i] != '\0'); in AppendString()
Dlog-utils.h72 void AppendString(const char* str, size_t length, bool is_one_byte = true);
Dlog.h173 size_t function_name_length = 0, bool is_one_byte = true);
/external/v8/src/heap/
Dfactory-base.cc598 bool is_one_byte = left_is_one_byte && right_is_one_byte; in NewConsString() local
608 if (is_one_byte) { in NewConsString()
642 return NewConsString(left, right, length, is_one_byte, allocation); in NewConsString()
Dfactory.cc561 if (decoder.is_one_byte()) { in InternalizeUtf8String()
613 if (decoder.is_one_byte()) { in NewStringFromUtf8()
661 if (decoder.is_one_byte()) { in NewStringFromUtf8SubString()
741 template <bool is_one_byte, typename T>
750 if (is_one_byte) { in AllocateInternalizedStringImpl()
770 if (is_one_byte) { in AllocateInternalizedStringImpl()

12