mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
parent
444483bf81
commit
5bf58e6044
14 changed files with 189 additions and 43 deletions
|
|
@ -1381,6 +1381,26 @@ BaselineCompiler::emit_JSOP_CHECKISOBJ()
|
|||
return true;
|
||||
}
|
||||
|
||||
typedef bool (*CheckIsCallableFn)(JSContext*, HandleValue, CheckIsCallableKind);
|
||||
static const VMFunction CheckIsCallableInfo =
|
||||
FunctionInfo<CheckIsCallableFn>(CheckIsCallable, "CheckIsCallable");
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_CHECKISCALLABLE()
|
||||
{
|
||||
frame.syncStack(0);
|
||||
masm.loadValue(frame.addressOfStackValue(frame.peek(-1)), R0);
|
||||
|
||||
prepareVMCall();
|
||||
|
||||
pushArg(Imm32(GET_UINT8(pc)));
|
||||
pushArg(R0);
|
||||
if (!callVM(CheckIsCallableInfo))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
typedef bool (*ThrowUninitializedThisFn)(JSContext*, BaselineFrame* frame);
|
||||
static const VMFunction ThrowUninitializedThisInfo =
|
||||
FunctionInfo<ThrowUninitializedThisFn>(BaselineThrowUninitializedThis,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue