Home
last modified time | relevance | path

Searched refs:flat1 (Results 1 – 11 of 11) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcordz_info_statistics_test.cc311 auto* flat1 = Flat(300); in TEST() local
313 auto* concat = ref.NeedsUnref(Concat(flat1, flat2)); in TEST()
318 SizeOf(concat) + SizeOf(flat1) + SizeOf(flat2); in TEST()
330 auto* flat1 = Flat(300); in TEST() local
335 auto* concat1 = Concat(flat1, flat2); in TEST()
341 expected.estimated_memory_usage = SizeOf(concat) * 3 + SizeOf(flat1) + in TEST()
358 auto* flat1 = Flat(40); in TEST() local
363 auto* concat1 = Concat(flat1, flat2); in TEST()
369 expected.estimated_memory_usage = SizeOf(concat) * 3 + SizeOf(flat1) + in TEST()
386 auto* flat1 = Flat(240); in TEST() local
[all …]
Dcord_rep_consume_test.cc159 CordRepFlat* flat1 = CreateFlatWithLength(10); in TEST() local
161 CordRepConcat* concat = CreateConcat(flat1, flat2); in TEST()
/third_party/typescript/tests/baselines/reference/
DrecursiveTypeReferences1.js53 declare function flat1<T>(a: Array<T | Array<T>>): Array<T>
63 flat1([1, [2, [3]]]); // (number | number[])[]
64 flat1([[[0]]]); // number[][]
65 flat1([1, 'a', [2]]); // (string | number)[]
66 flat1([1, [2, 'a']]); // (string | number)[]
67 flat1([1, ['a']]); // Error
176 flat1([1, [2, [3]]]); // (number | number[])[]
177 flat1([[[0]]]); // number[][]
178 flat1([1, 'a', [2]]); // (string | number)[]
179 flat1([1, [2, 'a']]); // (string | number)[]
[all …]
DrecursiveTypeReferences1.types190 declare function flat1<T>(a: Array<T | Array<T>>): Array<T>
191 >flat1 : <T>(a: Array<T | Array<T>>) => Array<T>
258 flat1([1, [2, [3]]]); // (number | number[])[]
259 >flat1([1, [2, [3]]]) : (number | number[])[]
260 >flat1 : <T>(a: (T | T[])[]) => T[]
268 flat1([[[0]]]); // number[][]
269 >flat1([[[0]]]) : number[][]
270 >flat1 : <T>(a: (T | T[])[]) => T[]
276 flat1([1, 'a', [2]]); // (string | number)[]
277 >flat1([1, 'a', [2]]) : (string | number)[]
[all …]
DrecursiveTypeReferences1.symbols178 declare function flat1<T>(a: Array<T | Array<T>>): Array<T>
179 >flat1 : Symbol(flat1, Decl(recursiveTypeReferences1.ts, 50, 51))
220 flat1([1, [2, [3]]]); // (number | number[])[]
221 >flat1 : Symbol(flat1, Decl(recursiveTypeReferences1.ts, 50, 51))
223 flat1([[[0]]]); // number[][]
224 >flat1 : Symbol(flat1, Decl(recursiveTypeReferences1.ts, 50, 51))
226 flat1([1, 'a', [2]]); // (string | number)[]
227 >flat1 : Symbol(flat1, Decl(recursiveTypeReferences1.ts, 50, 51))
229 flat1([1, [2, 'a']]); // (string | number)[]
230 >flat1 : Symbol(flat1, Decl(recursiveTypeReferences1.ts, 50, 51))
[all …]
DrecursiveTypeReferences1.errors.txt70 declare function flat1<T>(a: Array<T | Array<T>>): Array<T>
82 flat1([1, [2, [3]]]); // (number | number[])[]
83 flat1([[[0]]]); // number[][]
84 flat1([1, 'a', [2]]); // (string | number)[]
85 flat1([1, [2, 'a']]); // (string | number)[]
86 flat1([1, ['a']]); // Error
/third_party/typescript/tests/cases/conformance/types/typeRelationships/recursiveTypes/
DrecursiveTypeReferences1.ts55 declare function flat1<T>(a: Array<T | Array<T>>): Array<T>
65 flat1([1, [2, [3]]]); // (number | number[])[]
66 flat1([[[0]]]); // number[][]
67 flat1([1, 'a', [2]]); // (string | number)[]
68 flat1([1, [2, 'a']]); // (string | number)[]
69 flat1([1, ['a']]); // Error
/third_party/node/deps/v8/src/builtins/
Dbuiltins-string.cc190 String::FlatContent flat1 = str1->GetFlatContent(no_gc); in BUILTIN() local
194 if (flat1.Get(i) != flat2.Get(i)) { in BUILTIN()
195 return Smi::FromInt(flat1.Get(i) - flat2.Get(i)); in BUILTIN()
/third_party/node/deps/v8/src/objects/
Dstring.cc1122 String::FlatContent flat1 = one->GetFlatContent(no_gc); in SlowEquals() local
1125 if (flat1.IsOneByte() && flat2.IsOneByte()) { in SlowEquals()
1126 return CompareCharsEqual(flat1.ToOneByteVector().begin(), in SlowEquals()
1128 } else if (flat1.IsTwoByte() && flat2.IsTwoByte()) { in SlowEquals()
1129 return CompareCharsEqual(flat1.ToUC16Vector().begin(), in SlowEquals()
1131 } else if (flat1.IsOneByte() && flat2.IsTwoByte()) { in SlowEquals()
1132 return CompareCharsEqual(flat1.ToOneByteVector().begin(), in SlowEquals()
1134 } else if (flat1.IsTwoByte() && flat2.IsOneByte()) { in SlowEquals()
1135 return CompareCharsEqual(flat1.ToUC16Vector().begin(), in SlowEquals()
Dintl-objects.cc1361 const String::FlatContent& flat1 = string1->GetFlatContent(no_gc); in TryFastCompareStrings() local
1363 if (!FastCompareStringFlatContent(flat1, flat2, common_length, &d)) { in TryFastCompareStrings()
1371 if (!CharIsAsciiOrOutOfBounds(flat1, length1, d.processed_until + 1) || in TryFastCompareStrings()
1385 if (!CharCanFastCompareOrOutOfBounds(flat1, length1, common_length) || in TryFastCompareStrings()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord_ring_test.cc758 CordRep* flat1 = nullptr; in TEST_P() local
764 flat1 = CordRep::Ref(MakeFlat(str1)); in TEST_P()
765 flat = RemovePrefix(10, flat1); in TEST_P()
779 CordRep::Unref(shared_type == 1 ? flat1 : flat); in TEST_P()
838 CordRep* flat1 = nullptr; in TEST_P() local
841 flat = RemovePrefix(10, flat1 = CordRep::Ref(MakeFlat(str1))); in TEST_P()
854 CordRep::Unref(shared_type == 1 ? flat1 : flat); in TEST_P()