/third_party/node/deps/v8/src/torque/ |
H A 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 303 if ((*it)->IsSubtypeOf(t)) { in Subtract() 435 if (field_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType())) { in ClassifyContents() 437 } else if (field_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in ClassifyContents() 622 if (type->IsSubtypeOf(TypeOracle::GetObjectType())) { in ComputeSlotKindsHelper() 628 } else if (type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in ComputeSlotKindsHelper() 935 if (IsSubtypeOf(TypeOracl in HasStaticSize() [all...] |
H A 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()
|
H A D | csa-generator.cc | 212 return_type->IsSubtypeOf(original_type) || in EmitInstruction() 214 return_type->IsSubtypeOf(TypeOracle::GetHeapObjectType())); in EmitInstruction() 222 if (return_type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction() 263 if (return_type->IsSubtypeOf(TypeOracle::GetSmiType())) { in EmitInstruction() 265 } else if (return_type->IsSubtypeOf(TypeOracle::GetNumberType())) { in EmitInstruction() 267 } else if (return_type->IsSubtypeOf(TypeOracle::GetStringType())) { in EmitInstruction() 269 } else if (return_type->IsSubtypeOf(TypeOracle::GetObjectType())) { in EmitInstruction() 273 } else if (return_type->IsSubtypeOf(TypeOracle::GetIntPtrType())) { in EmitInstruction() 275 } else if (return_type->IsSubtypeOf(TypeOracle::GetUIntPtrType())) { in EmitInstruction() 277 } else if (return_type->IsSubtypeOf(TypeOracl in EmitInstruction() [all...] |
H A D | cc-generator.cc | 162 return_type->IsSubtypeOf(original_type) || in EmitInstruction() 164 return_type->IsSubtypeOf(TypeOracle::GetHeapObjectType())); in EmitInstruction() 184 if (return_type->IsSubtypeOf(TypeOracle::GetSmiType())) { in EmitInstruction() 386 if (instruction.type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction() 392 if (!instruction.type->IsSubtypeOf(TypeOracle::GetSmiType())) { in EmitInstruction() 412 if (instruction.type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in EmitInstruction()
|
H A D | declaration-visitor.cc | 78 if (!signature.return_type->IsSubtypeOf(TypeOracle::GetJSAnyType())) { in CreateBuiltin() 85 if (!TypeOracle::GetJSAnyType()->IsSubtypeOf(parameter_type)) { in CreateBuiltin() 143 if (!(signature.return_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType()) || in Visit() 152 if (!parameter_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType())) { in Visit()
|
H A D | types.h | 110 virtual bool IsSubtypeOf(const Type* supertype) const; 417 bool IsSubtypeOf(const Type* other) const override { 419 if (!member->IsSubtypeOf(other)) return false; 426 if (other->IsSubtypeOf(member)) { in IsSupertypeOf() 455 if (t->IsSubtypeOf(this)) return; in Extend() 458 [&](const Type* member) { return member->IsSubtypeOf(t); }); in Extend()
|
H A D | type-visitor.cc | 164 if (field_type->IsSubtypeOf(TypeOracle::GetBoolType())) { in ComputeType() 256 !super_class->IsSubtypeOf(TypeOracle::GetJSObjectType())) { in ComputeType() 432 if (!field_type->IsSubtypeOf(TypeOracle::GetObjectType())) { in VisitClassFieldsAndMethods()
|
H A D | implementation-visitor.cc | 2561 if (!assignment_value.type()->IsSubtypeOf(referenced_type)) { in GenerateAssignToLocation() 2717 if (!return_type->IsSubtypeOf(outer_return_type)) { in GenerateCall() 2774 if (!this_value.type()->IsSubtypeOf(method->aggregate_type())) { in GenerateCall() 2954 if (!t->IsSubtypeOf(parameter_type)) { in GenerateCall() 3096 if (!getter->signature().return_type->IsSubtypeOf( in GenerateCall() 3536 if (type->IsSubtypeOf(TypeOracle::GetSmiType())) { in MachineTypeString() 3539 if (type->IsSubtypeOf(TypeOracle::GetHeapObjectType())) { in MachineTypeString() 3542 if (type->IsSubtypeOf(TypeOracle::GetTaggedType())) { in MachineTypeString() 3778 if ((field_type->IsSubtypeOf(TypeOracle::GetStrongTaggedType()) || in GetSectionFor() 3782 } else if (field_type->IsSubtypeOf(TypeOracl in GetSectionFor() [all...] |
H A D | type-oracle.h | 153 if (a->IsSubtypeOf(b)) return b; in GetUnionType() 154 if (b->IsSubtypeOf(a)) return a; in GetUnionType()
|
H A D | declarable.cc | 110 if (upper_bound && !type->IsSubtypeOf(*upper_bound)) { in IsViolated()
|
H A D | cfg.cc | 27 if (!merged_type->IsSubtypeOf(c1)) { in SetInputTypes()
|
H A D | class-debug-reader-generator.cc | 120 return name_and_type_.type->IsSubtypeOf(TypeOracle::GetTaggedType()); in IsTagged()
|
H A D | instructions.cc | 31 if (!subtype->IsSubtypeOf(supertype)) { in ExpectSubtype()
|
/third_party/node/deps/v8/src/wasm/ |
H A D | wasm-subtyping.h | 60 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function 68 V8_INLINE bool IsSubtypeOf(ValueType subtype, ValueType supertype, in IsSubtypeOf() function 75 // We have this function call IsSubtypeOf instead of the opposite because type 80 return IsSubtypeOf(ValueType::Ref(subtype, kNonNullable), in IsHeapSubtypeOf()
|
H A D | wasm-subtyping.cc | 46 (!sub_mut && !IsSubtypeOf(sub_struct->field(i), super_struct->field(i), in ValidStructSubtypeDefinition() 69 IsSubtypeOf(sub_array->element_type(), super_array->element_type(), in ValidArraySubtypeDefinition() 88 if (!IsSubtypeOf(super_func->parameters()[i], sub_func->parameters()[i], in ValidFunctionSubtypeDefinition() 95 if (!IsSubtypeOf(sub_func->returns()[i], super_func->returns()[i], in ValidFunctionSubtypeDefinition() 211 // The {IsSubtypeOf} entry point already has a fast path checking ValueType in IsSubtypeOfImpl()
|
H A D | module-instantiate.cc | 637 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) { in Build() 719 if (IsSubtypeOf(table.type, kWasmFuncRef, module_)) { in Build() 1045 DCHECK(IsSubtypeOf(value.type(), global.type, module_)); in WriteGlobalValue() 1322 if (IsSubtypeOf(table.type, kWasmFuncRef, module_) && in ProcessImportedTable() 1404 : IsSubtypeOf(global_object->type(), global.type, global_type_module, in ProcessImportedWasmGlobalObject() 1533 if (IsSubtypeOf(global.type, kWasmFuncRef, module_) && !value->IsNull()) { in ProcessImportedGlobal() 1974 bool is_function_table = IsSubtypeOf(table.type, kWasmFuncRef, module_); in InitializeNonDefaultableTables() 2024 IsSubtypeOf(table_object->type(), kWasmFuncRef, instance->module()); in LoadElemSegmentImpl()
|
H A D | function-body-decoder-impl.h | 1315 if (!IsSubtypeOf(*target_sig_it++, ret_type, this->module_)) return false; in CanReturnCall() 1335 if (!VALIDATE(IsSubtypeOf(table_type, kWasmFuncRef, module_))) { in Validate() 1345 if (!VALIDATE(IsSubtypeOf(immediate_type, table_type, module_))) { in Validate() 1483 if (!VALIDATE(IsSubtypeOf(elem_type, module_->tables[imm.table.index].type, in Validate() 1496 if (!VALIDATE(IsSubtypeOf( in Validate() 4028 return !IsSubtypeOf(ValueType::Ref(rtt.type.ref_index(), kNonNullable), in TypeCheckAlwaysFails() 4030 !IsSubtypeOf(obj.type, in TypeCheckAlwaysFails() 4040 IsSubtypeOf(obj.type, in TypeCheckAlwaysSucceeds() 4355 if (!IsSubtypeOf(src_imm.array_type->element_type(), in DecodeGCOpcode() 4467 if (!VALIDATE(IsSubtypeOf(ob in DecodeGCOpcode() [all...] |
H A D | module-decoder.cc | 1863 if (V8_UNLIKELY(!IsSubtypeOf(found, expected, module_.get()))) { \ in consume_init_expr() 2124 if (is_active && !IsSubtypeOf(type, table_type, this->module_.get())) { in consume_element_segment_header() 2149 if (!IsSubtypeOf(table_type, kWasmFuncRef, this->module_.get())) { in consume_element_segment_header() 2211 if (V8_UNLIKELY(!IsSubtypeOf(entry_type, expected, module_.get()))) { in consume_element_func_index()
|
H A D | wasm-objects.cc | 653 DCHECK(wasm::IsSubtypeOf(table->type(), wasm::kWasmFuncRef, module)); in GetFunctionTableEntry() 2333 if (!IsSubtypeOf(real_type, expected, exporting_module, module)) { in TypecheckJSObject()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | wasm-inlining.cc | 184 CHECK(wasm::IsSubtypeOf(specialized_sig->GetParam(i), in Finalize() 188 CHECK(wasm::IsSubtypeOf(formal_sig->GetReturn(i), in Finalize()
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-wasm.cc | 424 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION() 451 : IsSubtypeOf(table->type(), wasm::kWasmFuncRef, in RUNTIME_FUNCTION()
|