/external/v8/src/torque/ |
D | types.cc | 76 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 …]
|
D | parameter-difference.h | 44 } 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()
|
D | csa-generator.cc | 213 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 …]
|
D | declaration-visitor.cc | 77 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()
|
D | types.h | 111 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()
|
D | implementation-visitor.cc | 2407 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 …]
|
D | cc-generator.cc | 175 return_type->IsSubtypeOf(original_type) || in EmitInstruction() 177 return_type->IsSubtypeOf(TypeOracle::GetHeapObjectType())); in EmitInstruction() 371 if (instruction.type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction()
|
D | type-visitor.cc | 165 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()
|
D | class-debug-reader-generator.cc | 120 return name_and_type_.type->IsSubtypeOf(TypeOracle::GetTaggedType()); in IsTagged() 386 } else if (!index_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in GenerateGetPropsChunkForField()
|
D | type-oracle.h | 142 if (a->IsSubtypeOf(b)) return b; in GetUnionType() 143 if (b->IsSubtypeOf(a)) return a; in GetUnionType()
|
D | declarable.cc | 99 if (upper_bound && !type->IsSubtypeOf(*upper_bound)) { in IsViolated()
|
D | cfg.cc | 27 if (!merged_type->IsSubtypeOf(c1)) { in SetInputTypes()
|
D | instructions.cc | 31 if (!subtype->IsSubtypeOf(supertype)) { in ExpectSubtype()
|
/external/v8/src/wasm/ |
D | wasm-subtyping.h | 56 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function 64 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function
|
D | wasm-subtyping.cc | 226 (!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()
|
D | module-instantiate.cc | 584 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()
|
D | function-body-decoder-impl.h | 1344 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 …]
|
D | graph-builder-interface.cc | 803 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()
|
D | module-decoder.cc | 902 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()
|
D | wasm-objects.cc | 688 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/ |
D | runtime-wasm.cc | 371 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION() 398 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION()
|