Source code
Revision control
Copy as Markdown
Other Tools
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
#ifndef jit_riscv64_LIR_riscv64_h
#define jit_riscv64_LIR_riscv64_h
namespace js {
namespace jit {
class LUnbox : public LInstructionHelper<1, BOX_PIECES, 0> {
public:
LIR_HEADER(Unbox);
explicit LUnbox(const LAllocation& input) : LInstructionHelper(classOpcode) {
setOperand(0, input);
}
static const size_t Input = 0;
LBoxAllocation input() const { return getBoxOperand(Input); }
MUnbox* mir() const { return mir_->toUnbox(); }
const char* extraName() const { return StringFromMIRType(mir()->type()); }
};
} // namespace jit
} // namespace js
#endif /* jit_riscv64_LIR_riscv64_h */