mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
parent
444483bf81
commit
5bf58e6044
14 changed files with 189 additions and 43 deletions
|
|
@ -13455,8 +13455,9 @@ class MCheckIsObj
|
|||
{
|
||||
uint8_t checkKind_;
|
||||
|
||||
explicit MCheckIsObj(MDefinition* toCheck, uint8_t checkKind)
|
||||
: MUnaryInstruction(toCheck), checkKind_(checkKind)
|
||||
MCheckIsObj(MDefinition* toCheck, uint8_t checkKind)
|
||||
: MUnaryInstruction(toCheck),
|
||||
checkKind_(checkKind)
|
||||
{
|
||||
setResultType(MIRType::Value);
|
||||
setResultTypeSet(toCheck->resultTypeSet());
|
||||
|
|
@ -13475,6 +13476,33 @@ class MCheckIsObj
|
|||
}
|
||||
};
|
||||
|
||||
class MCheckIsCallable
|
||||
: public MUnaryInstruction,
|
||||
public BoxInputsPolicy::Data
|
||||
{
|
||||
uint8_t checkKind_;
|
||||
|
||||
MCheckIsCallable(MDefinition* toCheck, uint8_t checkKind)
|
||||
: MUnaryInstruction(toCheck),
|
||||
checkKind_(checkKind)
|
||||
{
|
||||
setResultType(MIRType::Value);
|
||||
setResultTypeSet(toCheck->resultTypeSet());
|
||||
setGuard();
|
||||
}
|
||||
|
||||
public:
|
||||
INSTRUCTION_HEADER(CheckIsCallable)
|
||||
TRIVIAL_NEW_WRAPPERS
|
||||
NAMED_OPERANDS((0, checkValue))
|
||||
|
||||
uint8_t checkKind() const { return checkKind_; }
|
||||
|
||||
AliasSet getAliasSet() const override {
|
||||
return AliasSet::None();
|
||||
}
|
||||
};
|
||||
|
||||
class MCheckObjCoercible
|
||||
: public MUnaryInstruction,
|
||||
public BoxInputsPolicy::Data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue