Home
last modified time | relevance | path

Searched refs:IsSubtypeOf (Results 1 – 21 of 21) sorted by relevance

/external/v8/src/torque/
Dtypes.cc76 if (IsSubtypeOf(TypeOracle::GetSmiType())) return "int"; in HandlifiedCppTypeName()
77 if (IsSubtypeOf(TypeOracle::GetTaggedType())) { in HandlifiedCppTypeName()
85 if (IsSubtypeOf(TypeOracle::GetSmiType())) return "int"; in UnhandlifiedCppTypeName()
90 bool Type::IsSubtypeOf(const Type* supertype) const { in IsSubtypeOf() function in v8::internal::torque::Type
277 if ((*it)->IsSubtypeOf(t)) { in Subtract()
409 if (field_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in ClassifyContents()
599 if (type->IsSubtypeOf(TypeOracle::GetObjectType())) { in ComputeSlotKindsHelper()
605 } else if (type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in ComputeSlotKindsHelper()
909 if (IsSubtypeOf(TypeOracle::GetJSObjectType()) && !IsShape()) return false; in HasStaticSize()
1031 if (from->IsSubtypeOf(to)) return true; in IsAssignableFrom()
[all …]
Dparameter-difference.h44 } else if (a && b && a != b && (*a)->IsSubtypeOf(*b)) { in StrictlyBetterThan()
45 DCHECK(!(*b)->IsSubtypeOf(*a)); in StrictlyBetterThan()
63 if (from->IsSubtypeOf(to)) { in AddParameter()
Dcsa-generator.cc213 return_type->IsSubtypeOf(original_type) || in EmitInstruction()
215 return_type->IsSubtypeOf(TypeOracle::GetHeapObjectType())); in EmitInstruction()
223 if (return_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction()
264 if (return_type->IsSubtypeOf(TypeOracle::GetSmiType())) { in EmitInstruction()
266 } else if (return_type->IsSubtypeOf(TypeOracle::GetNumberType())) { in EmitInstruction()
268 } else if (return_type->IsSubtypeOf(TypeOracle::GetStringType())) { in EmitInstruction()
270 } else if (return_type->IsSubtypeOf(TypeOracle::GetObjectType())) { in EmitInstruction()
274 } else if (return_type->IsSubtypeOf(TypeOracle::GetIntPtrType())) { in EmitInstruction()
276 } else if (return_type->IsSubtypeOf(TypeOracle::GetUIntPtrType())) { in EmitInstruction()
278 } else if (return_type->IsSubtypeOf(TypeOracle::GetInt32Type())) { in EmitInstruction()
[all …]
Ddeclaration-visitor.cc77 if (!signature.return_type->IsSubtypeOf(TypeOracle::GetJSAnyType())) { in CreateBuiltin()
84 if (!TypeOracle::GetJSAnyType()->IsSubtypeOf(parameter_type)) { in CreateBuiltin()
136 if (!(signature.return_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType()) || in Visit()
145 if (!parameter_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType())) { in Visit()
Dtypes.h111 virtual bool IsSubtypeOf(const Type* supertype) const;
419 bool IsSubtypeOf(const Type* other) const override { in IsSubtypeOf() function
421 if (!member->IsSubtypeOf(other)) return false; in IsSubtypeOf()
428 if (other->IsSubtypeOf(member)) { in IsSupertypeOf()
457 if (t->IsSubtypeOf(this)) return; in Extend()
460 [&](const Type* member) { return member->IsSubtypeOf(t); }); in Extend()
Dimplementation-visitor.cc2407 if (!assignment_value.type()->IsSubtypeOf(referenced_type)) { in GenerateAssignToLocation()
2558 if (!return_type->IsSubtypeOf(outer_return_type)) { in GenerateCall()
2615 if (!this_value.type()->IsSubtypeOf(method->aggregate_type())) { in GenerateCall()
2760 if (!t->IsSubtypeOf(parameter_type)) { in GenerateCall()
3223 if (type->IsSubtypeOf(TypeOracle::GetSmiType())) { in MachineTypeString()
3226 if (type->IsSubtypeOf(TypeOracle::GetHeapObjectType())) { in MachineTypeString()
3229 if (type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in MachineTypeString()
3450 if (field_type->IsSubtypeOf(TypeOracle::GetTaggedType()) || in GetSectionFor()
3785 !type_->IsSubtypeOf(TypeOracle::GetJSObjectType())) { in GenerateClass()
3885 bool maybe_object = !type->IsSubtypeOf(TypeOracle::GetStrongTaggedType()); in GenerateRuntimeTypeCheck()
[all …]
Dcc-generator.cc175 return_type->IsSubtypeOf(original_type) || in EmitInstruction()
177 return_type->IsSubtypeOf(TypeOracle::GetHeapObjectType())); in EmitInstruction()
371 if (instruction.type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction()
Dtype-visitor.cc165 if (field_type->IsSubtypeOf(TypeOracle::GetBoolType())) { in ComputeType()
256 !super_class->IsSubtypeOf(TypeOracle::GetJSObjectType())) { in ComputeType()
412 if (!field_type->IsSubtypeOf(TypeOracle::GetObjectType())) { in VisitClassFieldsAndMethods()
Dclass-debug-reader-generator.cc120 return name_and_type_.type->IsSubtypeOf(TypeOracle::GetTaggedType()); in IsTagged()
386 } else if (!index_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in GenerateGetPropsChunkForField()
Dtype-oracle.h142 if (a->IsSubtypeOf(b)) return b; in GetUnionType()
143 if (b->IsSubtypeOf(a)) return a; in GetUnionType()
Ddeclarable.cc99 if (upper_bound && !type->IsSubtypeOf(*upper_bound)) { in IsViolated()
Dcfg.cc27 if (!merged_type->IsSubtypeOf(c1)) { in SetInputTypes()
Dinstructions.cc31 if (!subtype->IsSubtypeOf(supertype)) { in ExpectSubtype()
/external/v8/src/wasm/
Dwasm-subtyping.h56 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function
64 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function
Dwasm-subtyping.cc226 (!sub_mut && !IsSubtypeOf(sub_struct->field(i), super_struct->field(i), in StructIsSubtypeOf()
251 !IsSubtypeOf(sub_array->element_type(), super_array->element_type(), in ArrayIsSubtypeOf()
373 if (IsSubtypeOf(a, b, module)) return a; in CommonSubtype()
374 if (IsSubtypeOf(b, a, module)) return b; in CommonSubtype()
Dmodule-instantiate.cc584 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) { in Build()
1213 if (IsSubtypeOf(table.type, kWasmFuncRef, module_) && in ProcessImportedTable()
1295 : IsSubtypeOf(global_object->type(), global.type, global_type_module, in ProcessImportedWasmGlobalObject()
1903 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) { in InitializeIndirectFunctionTables()
1934 if (IsSubtypeOf(table_object->type(), kWasmFuncRef, module)) { in LoadElemSegmentImpl()
1945 if (IsSubtypeOf(table_object->type(), kWasmFuncRef, module)) { in LoadElemSegmentImpl()
2020 if (IsSubtypeOf(module_->tables[index].type, kWasmFuncRef, module_)) { in LoadTableSegments()
Dfunction-body-decoder-impl.h1344 if (!VALIDATE(IsSubtypeOf(table_type, kWasmFuncRef, module_))) {
1357 if (!VALIDATE(IsSubtypeOf(immediate_type, table_type, module_))) {
1524 if (!VALIDATE(IsSubtypeOf(elem_type, module_->tables[imm.table.index].type,
1545 if (!VALIDATE(IsSubtypeOf(
3436 if (!VALIDATE(IsSubtypeOf(val.type, result_types[i], this->module_))) {
3892 IsSubtypeOf(ValueType::Ref(imm.type, kNonNullable),
3916 if (!VALIDATE(IsSubtypeOf(ValueType::Ref(rtt_type.type, kNonNullable),
3946 if (!VALIDATE(IsSubtypeOf(ValueType::Ref(rtt_type.type, kNonNullable),
3990 IsSubtypeOf(ValueType::Ref(rtt.type.heap_type(), kNonNullable),
4264 if (!VALIDATE(IsSubtypeOf(val.type, expected, this->module_) ||
[all …]
Dgraph-builder-interface.cc803 IsSubtypeOf(kWasmI31Ref, object.type, decoder->module_) in RefTest()
821 IsSubtypeOf(kWasmI31Ref, object.type, decoder->module_) in RefCast()
839 IsSubtypeOf(kWasmI31Ref, object.type, decoder->module_) in BrOnCast()
Dmodule-decoder.cc902 if (!IsSubtypeOf(type, module_->tables[table_index].type, in DecodeElementSection()
1787 !IsSubtypeOf( in consume_init_expr()
1832 if (expected != kWasmStmt && !IsSubtypeOf(TypeOf(expr), expected, module)) { in consume_init_expr()
Dwasm-objects.cc688 DCHECK(wasm::IsSubtypeOf(table->type(), wasm::kWasmFuncRef, module)); in GetFunctionTableEntry()
2172 if (!IsSubtypeOf(real_type, expected, exporting_module, module)) { in TypecheckJSObject()
/external/v8/src/runtime/
Druntime-wasm.cc371 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION()
398 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION()