Lines Matching defs:source
2 // Use of this source code is governed by a BSD-style license that can be
153 String string, String source,
631 String source,
646 if (source.IsConsString(isolate)) {
647 DCHECK(!source.IsFlat(isolate));
649 String::WriteToFlat(source, buffer.get(), 0, length, isolate, access_guard);
652 chars = source.GetChars<Char>(isolate, no_gc, access_guard) + start;
712 String source = string;
713 if (source.IsSlicedString()) {
714 SlicedString sliced = SlicedString::cast(source);
716 source = sliced.parent();
717 } else if (source.IsConsString() && source.IsFlat()) {
718 source = ConsString::cast(source).first();
720 if (source.IsThinString()) {
721 source = ThinString::cast(source).actual();
722 if (string.length() == source.length()) {
723 return source.ptr();
727 if (source.IsOneByteRepresentation()) {
729 isolate, string, source, start);
732 isolate, string, source, start);