mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
parent
34fe54e4e8
commit
7bfe087f0c
12 changed files with 122 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
#include "mozilla/Casting.h"
|
||||
#include "mozilla/SizePrintfMacros.h"
|
||||
|
||||
#include "jsfun.h"
|
||||
|
||||
#include "jit/BaselineIC.h"
|
||||
#include "jit/BaselineJIT.h"
|
||||
#include "jit/FixedList.h"
|
||||
|
|
@ -1681,6 +1683,29 @@ BaselineCompiler::emit_JSOP_LAMBDA_ARROW()
|
|||
return true;
|
||||
}
|
||||
|
||||
typedef bool (*SetFunNameFn)(JSContext*, HandleFunction, HandleValue, FunctionPrefixKind);
|
||||
static const VMFunction SetFunNameInfo =
|
||||
FunctionInfo<SetFunNameFn>(js::SetFunctionNameIfNoOwnName, "SetFunName");
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_SETFUNNAME()
|
||||
{
|
||||
frame.popRegsAndSync(2);
|
||||
|
||||
frame.push(R0);
|
||||
frame.syncStack(0);
|
||||
|
||||
FunctionPrefixKind prefixKind = FunctionPrefixKind(GET_UINT8(pc));
|
||||
masm.unboxObject(R0, R0.scratchReg());
|
||||
|
||||
prepareVMCall();
|
||||
|
||||
pushArg(Imm32(int32_t(prefixKind)));
|
||||
pushArg(R1);
|
||||
pushArg(R0.scratchReg());
|
||||
return callVM(SetFunNameInfo);
|
||||
}
|
||||
|
||||
void
|
||||
BaselineCompiler::storeValue(const StackValue* source, const Address& dest,
|
||||
const ValueOperand& scratch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue