Home
last modified time | relevance | path

Searched refs:HeapType (Results 1 – 24 of 24) sorted by relevance

/external/v8/src/wasm/
Dvalue-type.h52 class HeapType {
69 static constexpr HeapType from_code(uint8_t code) { in from_code()
72 return HeapType(kFunc); in from_code()
74 return HeapType(kExtern); in from_code()
76 return HeapType(kEq); in from_code()
78 return HeapType(kExn); in from_code()
80 return HeapType(kI31); in from_code()
82 return HeapType(kBottom); in from_code()
86 explicit constexpr HeapType(Representation repr) : representation_(repr) { in HeapType() function
89 explicit constexpr HeapType(uint32_t repr) in HeapType() function
[all …]
Dwasm-subtyping.cc302 HeapType sub_heap = subtype.heap_type(); in IsSubtypeOfImpl()
303 HeapType super_heap = supertype.heap_type(); in IsSubtypeOfImpl()
305 if (sub_heap.representation() == HeapType::kI31 && in IsSubtypeOfImpl()
306 super_heap.representation() == HeapType::kEq) { in IsSubtypeOfImpl()
315 if (super_heap.representation() == HeapType::kEq) { in IsSubtypeOfImpl()
318 if (super_heap.representation() == HeapType::kFunc) { in IsSubtypeOfImpl()
Dwasm-module.h370 HeapType heap_type = type.heap_type(); in IsValidTableType()
371 return heap_type == HeapType::kFunc || heap_type == HeapType::kExtern || in IsValidTableType()
372 heap_type == HeapType::kExn || in IsValidTableType()
Dwasm-objects.cc447 case wasm::HeapType::kExtern: in Set()
448 case wasm::HeapType::kExn: in Set()
451 case wasm::HeapType::kFunc: in Set()
454 case wasm::HeapType::kEq: in Set()
455 case wasm::HeapType::kI31: in Set()
459 case wasm::HeapType::kBottom: in Set()
491 case wasm::HeapType::kExtern: in Get()
492 case wasm::HeapType::kExn: in Get()
494 case wasm::HeapType::kFunc: in Get()
501 case wasm::HeapType::kEq: in Get()
[all …]
Dwasm-opcodes.cc45 type == kWasmS128 || type.is_reference_to(HeapType::kI31) || in IsJSCompatibleSignature()
Dfunction-body-decoder-impl.h180 V8_INLINE WasmFeature feature_for_heap_type(HeapType heap_type) { in feature_for_heap_type()
182 case HeapType::kFunc: in feature_for_heap_type()
183 case HeapType::kExtern: in feature_for_heap_type()
185 case HeapType::kExn: in feature_for_heap_type()
187 case HeapType::kEq: in feature_for_heap_type()
188 case HeapType::kI31: in feature_for_heap_type()
196 HeapType read_heap_type(Decoder* decoder, const byte* pc, in read_heap_type()
204 return HeapType(HeapType::kBottom); in read_heap_type()
214 HeapType result = HeapType::from_code(code); in read_heap_type()
221 return HeapType(HeapType::kBottom); in read_heap_type()
[all …]
Dmodule-instantiate.cc190 if (wasm::HeapType(type).is_generic()) { in AllocateSubRtt()
1593 case wasm::HeapType::kEq: in RecursivelyEvaluateGlobalInitializer()
1595 case wasm::HeapType::kExtern: in RecursivelyEvaluateGlobalInitializer()
1597 case wasm::HeapType::kFunc: in RecursivelyEvaluateGlobalInitializer()
1599 case wasm::HeapType::kI31: in RecursivelyEvaluateGlobalInitializer()
1601 case wasm::HeapType::kExn: in RecursivelyEvaluateGlobalInitializer()
1603 case wasm::HeapType::kBottom: in RecursivelyEvaluateGlobalInitializer()
1953 if (table_object->type().is_reference_to(HeapType::kExtern)) { in LoadElemSegmentImpl()
Dwasm-js.cc1352 case i::wasm::HeapType::kExtern: in WebAssemblyGlobal()
1353 case i::wasm::HeapType::kExn: { in WebAssemblyGlobal()
1363 case i::wasm::HeapType::kFunc: { in WebAssemblyGlobal()
1379 case i::wasm::HeapType::kEq: in WebAssemblyGlobal()
1850 case i::wasm::HeapType::kExtern: in WebAssemblyGlobalGetValueCommon()
1851 case i::wasm::HeapType::kFunc: in WebAssemblyGlobalGetValueCommon()
1852 case i::wasm::HeapType::kExn: in WebAssemblyGlobalGetValueCommon()
1855 case i::wasm::HeapType::kEq: in WebAssemblyGlobalGetValueCommon()
1939 case i::wasm::HeapType::kExtern: in WebAssemblyGlobalSetValue()
1940 case i::wasm::HeapType::kExn: in WebAssemblyGlobalSetValue()
[all …]
Dwasm-objects-inl.h193 DCHECK(type().is_reference_to(wasm::HeapType::kExtern) || in SetExternRef()
194 type().is_reference_to(wasm::HeapType::kExn)); in SetExternRef()
Dwasm-opcodes.h804 HeapType::Representation heap_type;
840 static WasmInitExpr RefNullConst(HeapType::Representation heap_type) { in RefNullConst()
847 static WasmInitExpr RttCanon(HeapType::Representation heap_type) { in RttCanon()
854 static WasmInitExpr RttSub(HeapType::Representation heap_type, in RttSub()
Dwasm-module-builder.cc455 buffer->write_i32v(HeapType(init.immediate().heap_type).code()); in WriteGlobalInitializer()
500 buffer->write_i32v(HeapType(init.immediate().heap_type).code()); in WriteGlobalInitializer()
508 buffer->write_i32v(HeapType(init.immediate().heap_type).code()); in WriteGlobalInitializer()
Dgraph-builder-interface.cc806 RttIsI31 rtt_is_i31 = rtt.type.heap_representation() == HeapType::kI31 in RefTest()
824 RttIsI31 rtt_is_i31 = rtt.type.heap_representation() == HeapType::kI31 in RefCast()
842 RttIsI31 rtt_is_i31 = rtt.type.heap_representation() == HeapType::kI31 in BrOnCast()
Dwasm-debug.cc88 if (value.type().is_reference_to(HeapType::kExtern)) { in WasmValueToValueObject()
90 static_cast<int32_t>(HeapType::kExtern), value.to_externref()); in WasmValueToValueObject()
Dwasm-module.cc322 if (type.is_reference_to(HeapType::kFunc)) { in GetTypeForTable()
Dc-api.cc77 case i::wasm::HeapType::kFunc: in V8ValueTypeToWasm()
79 case i::wasm::HeapType::kExtern: in V8ValueTypeToWasm()
1837 case i::wasm::HeapType::kFunc: in type()
1840 case i::wasm::HeapType::kExtern: in type()
Dmodule-decoder.cc1355 : HeapType::kFunc; in TypeOf()
/external/tensorflow/tensorflow/core/kernels/
Dtopk_op_gpu.h53 enum class HeapType { kMinHeap, kMaxHeap };
114 template <HeapType heapType, PreferIndices preferIndices,
130 if (heapType == HeapType::kMinHeap) {
212 template <HeapType heapType, PreferIndices preferIndices,
232 make_indexed_heap<HeapType::kMinHeap, PreferIndices::kHigher, Data, T>(
284 auto min_heap = IndexedHeap<HeapType::kMinHeap, PreferIndices::kHigher,
312 auto max_heap = IndexedHeap<HeapType::kMaxHeap, PreferIndices::kLower,
/external/guava/guava-tests/benchmark/com/google/common/collect/
DMinMaxPriorityQueueBenchmark.java42 @Param private HeapType heap;
98 public enum HeapType { enum in MinMaxPriorityQueueBenchmark
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DMinMaxPriorityQueueBenchmark.java42 @Param private HeapType heap;
98 public enum HeapType { enum in MinMaxPriorityQueueBenchmark
/external/v8/src/compiler/
Dwasm-compiler.h432 Node* RttCanon(wasm::HeapType type);
433 Node* RttSub(wasm::HeapType type, Node* parent_rtt);
Dwasm-compiler.cc5622 Node* WasmGraphBuilder::RttCanon(wasm::HeapType type) { in RttCanon()
5625 case wasm::HeapType::kEq: in RttCanon()
5629 case wasm::HeapType::kExtern: in RttCanon()
5633 case wasm::HeapType::kFunc: in RttCanon()
5637 case wasm::HeapType::kI31: in RttCanon()
5650 Node* WasmGraphBuilder::RttSub(wasm::HeapType type, Node* parent_rtt) { in RttSub()
6160 if (representation == wasm::HeapType::kExtern || in ToJS()
6161 representation == wasm::HeapType::kExn || in ToJS()
6162 representation == wasm::HeapType::kFunc) { in ToJS()
6165 if (representation == wasm::HeapType::kEq) { in ToJS()
[all …]
/external/v8/src/builtins/
Dwasm.tq42 const kFuncTableType: constexpr int31 generates 'wasm::HeapType::kFunc';
/external/v8/src/wasm/baseline/
Dliftoff-compiler.cc408 if (type.is_reference_to(HeapType::kExn)) { in BailoutReasonForType()
/external/v8/src/api/
Dapi.cc10554 DCHECK_EQ(i::wasm::HeapType::kExtern, obj->value_type()); in ref()