/external/v8/include/ |
D | v8-util.h | 161 template <typename K, typename V, typename Traits> 169 size_t Size() { return Traits::Size(&impl_); } 174 bool IsWeak() { return Traits::kCallbackType != kNotWeak; } 180 return Local<V>::New(isolate_, FromVal(Traits::Get(&impl_, key))); 187 return Traits::Get(&impl_, key) != kPersistentContainerNotFound; 196 return SetReturnValueFromVal(&returnValue, Traits::Get(&impl_, key)); 206 reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))), 214 return Release(Traits::Remove(&impl_, key)).Pass(); 222 typedef typename Traits::Iterator It; 225 while (!Traits::Empty(&impl_)) { [all …]
|
/external/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 21 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/libcxx/test/libcxx/containers/unord/ |
D | key_value_traits.pass.cpp | 21 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/skqp/src/core/ |
D | SkTTopoSort.h | 15 template <typename T, typename Traits = T> 18 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 19 SkASSERT(!Traits::WasOutput(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 23 template <typename T, typename Traits = T> 26 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CleanExit() 27 SkASSERT(Traits::WasOutput(graph[i].get())); in SkTTopoSort_CleanExit() 34 template <typename T, typename Traits = T> 36 if (Traits::IsTempMarked(node)) { in SkTTopoSort_Visit() 43 if (!Traits::WasOutput(node)) { in SkTTopoSort_Visit() 46 Traits::SetTempMark(node); in SkTTopoSort_Visit() [all …]
|
/external/skia/src/core/ |
D | SkTTopoSort.h | 15 template <typename T, typename Traits = T> 18 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 19 SkASSERT(!Traits::WasOutput(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 23 template <typename T, typename Traits = T> 26 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CleanExit() 27 SkASSERT(Traits::WasOutput(graph[i].get())); in SkTTopoSort_CleanExit() 34 template <typename T, typename Traits = T> 36 if (Traits::IsTempMarked(node)) { in SkTTopoSort_Visit() 43 if (!Traits::WasOutput(node)) { in SkTTopoSort_Visit() 46 Traits::SetTempMark(node); in SkTTopoSort_Visit() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | serialization_util.h | 34 typename Traits, 36 typename std::enable_if<HasIsNullMethod<Traits>::value>::type* = nullptr> 38 return Traits::IsNull(input); in CallIsNullIfExists() 42 typename Traits, 44 typename std::enable_if<!HasIsNullMethod<Traits>::value>::type* = nullptr> 61 typename Traits, 63 typename std::enable_if<HasSetToNullMethod<Traits>::value>::type* = nullptr> 65 Traits::SetToNull(output); in CallSetToNullIfExists() 69 template <typename Traits, 71 typename std::enable_if<!HasSetToNullMethod<Traits>::value>::type* = [all …]
|
D | map_serialization.h | 24 using Traits = MapTraits<UserType>; variable 26 decltype(Traits::GetBegin(std::declval<MaybeConstUserType&>())); 29 : input_(input), iter_(Traits::GetBegin(input_)) {} in MapReaderBase() 32 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 48 using Traits = typename Base::Traits; variable 55 decltype(Traits::GetKey(std::declval<MaybeConstIterator&>())); 57 GetNextResult key = Traits::GetKey(this->iter_); in GetNext() 58 Traits::AdvanceIterator(this->iter_); in GetNext() 68 using Traits = typename Base::Traits; variable 75 decltype(Traits::GetValue(std::declval<MaybeConstIterator&>())); [all …]
|
D | array_serialization.h | 26 template <typename Traits, 29 HasGetBeginMethod<Traits, MaybeConstUserType>::value> 33 template <typename Traits, typename MaybeConstUserType> 34 class ArrayIterator<Traits, MaybeConstUserType, true> { 37 CallGetBeginIfExists<Traits>(std::declval<MaybeConstUserType&>())); 40 : input_(input), iter_(CallGetBeginIfExists<Traits>(input)) {} in ArrayIterator() 43 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 46 decltype(Traits::GetValue(std::declval<IteratorType&>())); 48 GetNextResult value = Traits::GetValue(iter_); in GetNext() 49 Traits::AdvanceIterator(iter_); in GetNext() [all …]
|
D | string_serialization.h | 23 using Traits = StringTraits<UserType>; 29 if (CallIsNullIfExists<Traits>(input)) 32 void* custom_context = CustomContextHelper<Traits>::SetUp(input, context); 33 const size_t size = CallWithContext(Traits::GetSize, input, custom_context); 36 CallWithContext(Traits::GetData, input, custom_context), size); 37 CustomContextHelper<Traits>::TearDown(input, custom_context); 44 return CallSetToNullIfExists<Traits>(output); 45 return Traits::Read(StringDataView(input, context), output);
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX86Base.h | 39 template <typename Traits> class BoolFolding; 62 using Traits = TraitsType; 63 using ConcreteTarget = typename Traits::ConcreteTarget; 64 using InstructionSetEnum = typename Traits::InstructionSet; 66 using BrCond = typename Traits::Cond::BrCond; 67 using CmppsCond = typename Traits::Cond::CmppsCond; 69 using X86Address = typename Traits::Address; 70 using X86Operand = typename Traits::X86Operand; 71 using X86OperandMem = typename Traits::X86OperandMem; 72 using SegmentRegisters = typename Traits::X86OperandMem::SegmentRegisters; [all …]
|
D | IceTargetLoweringX8664.cpp | 64 dflt, swapS, X8664::Traits::Cond::C1, X8664::Traits::Cond::C2, swapV, \ 65 X8664::Traits::Cond::pred \ 76 { X8664::Traits::Cond::C_32 } \ 88 X8664::Traits::Cond::C1_64, X8664::Traits::Cond::C2_64, \ 89 X8664::Traits::Cond::C3_64 \ 116 TargetX86Base<X8664::Traits>::TypeToRegisterSet = {{}}; 120 TargetX86Base<X8664::Traits>::TypeToRegisterSetUnfiltered = {{}}; 124 TargetX86Base<X8664::Traits>::Traits::RegisterSet::Reg_NUM> 125 TargetX86Base<X8664::Traits>::RegisterAliases = {{}}; 128 FixupKind TargetX86Base<X8664::Traits>::PcRelFixup = [all …]
|
D | IceTargetLoweringX8632.cpp | 72 dflt, swapS, X8632::Traits::Cond::C1, X8632::Traits::Cond::C2, swapV, \ 73 X8632::Traits::Cond::pred \ 84 { X8632::Traits::Cond::C_32 } \ 96 X8632::Traits::Cond::C1_64, X8632::Traits::Cond::C2_64, \ 97 X8632::Traits::Cond::C3_64 \ 129 TargetX86Base<X8632::Traits>::TypeToRegisterSet = {{}}; 133 TargetX86Base<X8632::Traits>::TypeToRegisterSetUnfiltered = {{}}; 137 TargetX86Base<X8632::Traits>::Traits::RegisterSet::Reg_NUM> 138 TargetX86Base<X8632::Traits>::RegisterAliases = {{}}; 141 FixupKind TargetX86Base<X8632::Traits>::PcRelFixup = [all …]
|
D | IceMemory.h | 54 template <typename T, typename Traits> struct sz_allocator { 67 sz_allocator(const sz_allocator<U, Traits> &) in sz_allocator() 88 template <class U> struct rebind { typedef sz_allocator<U, Traits> other; }; 95 typename Traits::allocator_type current() { in current() 96 if (!Traits::cache_allocator) { in current() 98 return Traits::current(); in current() 101 Current = Traits::current(); in current() 103 assert(Current == Traits::current()); in current() 106 static void init() { Traits::init(); } in init() 108 typename Traits::allocator_type Current; [all …]
|
D | IceTargetLoweringX86BaseImpl.h | 94 template <typename Traits> class BoolFoldingEntry { 117 template <typename Traits> class BoolFolding { 158 CfgUnorderedMap<SizeT, BoolFoldingEntry<Traits>> Producers; 161 template <typename Traits> 162 BoolFoldingEntry<Traits>::BoolFoldingEntry(Inst *I) 163 : Instr(I), IsComplex(BoolFolding<Traits>::hasComplexLowering(I)) {} 165 template <typename Traits> 166 typename BoolFolding<Traits>::BoolFoldingProducerKind 167 BoolFolding<Traits>::getProducerKind(const Inst *Instr) { 169 if (Traits::Is64Bit || Instr->getSrc(0)->getType() != IceType_i64) [all …]
|
/external/antlr/runtime/Cpp/tests/ |
D | UserTestTraits.hpp | 47 typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1LexerTraits; 48 typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1ParserTraits; 50 typedef antlr3::Traits<t001lexer, NoParser, UserTraits> t001lexerTraits; 51 typedef antlr3::Traits<t002lexer, NoParser, UserTraits> t002lexerTraits; 52 typedef antlr3::Traits<t003lexer, NoParser, UserTraits> t003lexerTraits; 53 typedef antlr3::Traits<t004lexer, NoParser, UserTraits> t004lexerTraits; 54 typedef antlr3::Traits<t005lexer, NoParser, UserTraits> t005lexerTraits; 55 typedef antlr3::Traits<t006lexer, NoParser, UserTraits> t006lexerTraits; 56 typedef antlr3::Traits<t007lexer, NoParser, UserTraits> t007lexerTraits; 57 typedef antlr3::Traits<t008lexer, NoParser, UserTraits> t008lexerTraits; [all …]
|
/external/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
D | quoted.pass.cpp | 23 template <class CharT, class Traits> 24 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() 28 template <class CharT, class Traits = std::char_traits<CharT>> 30 std::basic_string<CharT, Traits> str(p); in both_ways() 33 std::basic_stringstream<CharT, Traits> ss; in both_ways() 40 template <class CharT, class Traits = std::char_traits<CharT>> 42 std::basic_stringstream<CharT, Traits> ss; in round_trip() 46 std::basic_string<CharT, Traits> s; in round_trip() 53 template <class CharT, class Traits = std::char_traits<CharT>> 55 std::basic_stringstream<CharT, Traits> ss; in round_trip_ws() [all …]
|
/external/libchrome/base/ |
D | scoped_generic.h | 54 template<typename T, typename Traits> 63 struct Data : public Traits { 65 Data(const T& in, const Traits& other) : Traits(other), generic(in) {} in Data() 71 typedef Traits traits_type; 85 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue) in ScopedGeneric() 94 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) { 114 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap() 147 Traits& get_traits() { return data_; } in get_traits() 148 const Traits& get_traits() const { return data_; } in get_traits() 171 template<class T, class Traits> [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | IntervalMap.h | 538 template <typename KeyT, typename ValT, unsigned N, typename Traits> 557 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 559 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 572 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 574 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 586 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 601 template <typename KeyT, typename ValT, unsigned N, typename Traits> 602 unsigned LeafNode<KeyT, ValT, N, Traits>:: 606 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 609 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | IntervalMap.h | 562 template <typename KeyT, typename ValT, unsigned N, typename Traits> 581 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 583 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 596 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 598 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 610 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 625 template <typename KeyT, typename ValT, unsigned N, typename Traits> 626 unsigned LeafNode<KeyT, ValT, N, Traits>:: 630 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 633 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | IntervalMap.h | 559 template <typename KeyT, typename ValT, unsigned N, typename Traits> 578 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 580 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 593 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 595 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 607 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 622 template <typename KeyT, typename ValT, unsigned N, typename Traits> 623 unsigned LeafNode<KeyT, ValT, N, Traits>:: 627 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 630 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/v8/src/objects/ |
D | fixed-array-inl.h | 496 template <class Traits> 497 typename Traits::ElementType FixedTypedArray<Traits>::get_scalar(int index) { in get_scalar() 499 return FixedTypedArray<Traits>::get_scalar_from_data_ptr(DataPtr(), index); in get_scalar() 503 template <class Traits> 504 typename Traits::ElementType FixedTypedArray<Traits>::get_scalar_from_data_ptr( in get_scalar_from_data_ptr() 506 typename Traits::ElementType* ptr = reinterpret_cast<ElementType*>(data_ptr); in get_scalar_from_data_ptr() 521 template <class Traits> 522 void FixedTypedArray<Traits>::set(int index, ElementType value) { in set() 531 template <class Traits> 532 typename Traits::ElementType FixedTypedArray<Traits>::from(int value) { in from() [all …]
|
/external/clang/unittests/AST/ |
D | CommentParser.cpp | 42 Traits(Allocator, CommentOptions()) { in CommentParserTest() 51 CommandTraits Traits; member in clang::comments::__anon320555580111::CommentParserTest 61 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); in parseString() 63 Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ nullptr); in parseString() 64 Parser P(L, S, Allocator, SourceMgr, Diags, Traits); in parseString() 69 FC->dump(llvm::errs(), &Traits, &SourceMgr); in parseString() 161 const CommandTraits &Traits, in HasBlockCommandAt() argument 170 StringRef ActualName = BCC->getCommandName(Traits); in HasBlockCommandAt() 183 const CommandTraits &Traits, in HasParamCommandAt() argument 195 StringRef ActualCommandName = PCC->getCommandName(Traits); in HasParamCommandAt() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 27 typedef SSAUpdaterTraits<UpdaterT> Traits; typedef 28 typedef typename Traits::BlkT BlkT; 29 typedef typename Traits::ValT ValT; 30 typedef typename Traits::PhiT PhiT; 76 ValT V = Traits::GetUndefVal(BB, Updater); in GetValue() 107 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 174 for (typename Traits::BlkSucc_iterator SI = in BuildBlockList() 175 Traits::BlkSucc_begin(Info->BB), in BuildBlockList() 176 E = Traits::BlkSucc_end(Info->BB); SI != E; ++SI) { in BuildBlockList() 234 Pred->AvailableVal = Traits::GetUndefVal(Pred->BB, Updater); in FindDominators() [all …]
|
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/ |
D | string_alloc.pass.cpp | 54 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef 55 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest() 57 AStr s = p.string<CharT, Traits, MAlloc>(); in doShortStringTest() 64 using Traits = std::char_traits<CharT>; in doShortStringTest() typedef 65 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doShortStringTest() 70 AStr s = p.string<CharT, Traits, MAlloc>(a); in doShortStringTest() 95 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef 96 using AStr = std::basic_string<CharT, Traits, MAlloc>; in doLongStringTest() 98 AStr s = p.string<CharT, Traits, MAlloc>(); in doLongStringTest() 105 using Traits = std::char_traits<CharT>; in doLongStringTest() typedef [all …]
|
/external/eigen/Eigen/src/Core/products/ |
D | GeneralBlockPanelKernel.h | 95 typedef gebp_traits<LhsScalar,RhsScalar> Traits; typedef 106 typedef typename Traits::ResScalar ResScalar; 108 kdiv = KcFactor * (Traits::mr * sizeof(LhsScalar) + Traits::nr * sizeof(RhsScalar)), 109 ksub = Traits::mr * Traits::nr * sizeof(ResScalar), 111 mr = Traits::mr, 112 nr = Traits::nr 163 typedef typename Traits::ResScalar ResScalar; 166 k_div = KcFactor * (Traits::mr * sizeof(LhsScalar) + Traits::nr * sizeof(RhsScalar)), 167 k_sub = Traits::mr * Traits::nr * sizeof(ResScalar) 211 if(remaining_l1 >= Index(Traits::nr*sizeof(RhsScalar))*k) [all …]
|