зеркало из https://github.com/mozilla/gecko-dev.git
Bug 989356 - Remove Ion BOX_OUTPUT_ACCESSORS macro. r=sstangl
This commit is contained in:
Родитель
0b60d2496d
Коммит
fc953090ed
|
@ -870,7 +870,6 @@ class LToIdV : public LInstructionHelper<BOX_PIECES, 2 * BOX_PIECES, 1>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(ToIdV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LToIdV(const LDefinition &temp)
|
||||
{
|
||||
|
@ -2808,7 +2807,6 @@ class LBinaryV : public LCallInstructionHelper<BOX_PIECES, 2 * BOX_PIECES, 0>
|
|||
|
||||
public:
|
||||
LIR_HEADER(BinaryV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LBinaryV(JSOp jsop)
|
||||
: jsop_(jsop)
|
||||
|
@ -3510,7 +3508,6 @@ class LImplicitThis : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(ImplicitThis)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LImplicitThis(const LAllocation &callee) {
|
||||
setOperand(0, callee);
|
||||
|
@ -3800,7 +3797,6 @@ class LLoadElementV : public LInstructionHelper<BOX_PIECES, 2, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(LoadElementV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LLoadElementV(const LAllocation &elements, const LAllocation &index) {
|
||||
setOperand(0, elements);
|
||||
|
@ -3858,7 +3854,6 @@ class LLoadElementHole : public LInstructionHelper<BOX_PIECES, 3, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(LoadElementHole)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LLoadElementHole(const LAllocation &elements, const LAllocation &index, const LAllocation &initLength) {
|
||||
setOperand(0, elements);
|
||||
|
@ -4200,7 +4195,6 @@ class LLoadTypedArrayElementHole : public LInstructionHelper<BOX_PIECES, 2, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(LoadTypedArrayElementHole)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LLoadTypedArrayElementHole(const LAllocation &object, const LAllocation &index) {
|
||||
setOperand(0, object);
|
||||
|
@ -4373,7 +4367,6 @@ class LLoadFixedSlotV : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(LoadFixedSlotV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LLoadFixedSlotV(const LAllocation &object) {
|
||||
setOperand(0, object);
|
||||
|
@ -4444,7 +4437,6 @@ class LGetNameCache : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(GetNameCache)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LGetNameCache(const LAllocation &scopeObj) {
|
||||
setOperand(0, scopeObj);
|
||||
|
@ -4461,7 +4453,6 @@ class LCallGetIntrinsicValue : public LCallInstructionHelper<BOX_PIECES, 0, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(CallGetIntrinsicValue)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
const MCallGetIntrinsicValue *mir() const {
|
||||
return mir_->toCallGetIntrinsicValue();
|
||||
|
@ -4490,7 +4481,6 @@ class LGetPropertyCacheV : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(GetPropertyCacheV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LGetPropertyCacheV(const LAllocation &object) {
|
||||
setOperand(0, object);
|
||||
|
@ -4525,7 +4515,6 @@ class LGetPropertyPolymorphicV : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(GetPropertyPolymorphicV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LGetPropertyPolymorphicV(const LAllocation &obj) {
|
||||
setOperand(0, obj);
|
||||
|
@ -4627,7 +4616,6 @@ class LGetElementCacheV : public LInstructionHelper<BOX_PIECES, 1 + BOX_PIECES,
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(GetElementCacheV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
static const size_t Index = 1;
|
||||
|
||||
|
@ -4691,7 +4679,6 @@ class LLoadSlotV : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(LoadSlotV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LLoadSlotV(const LAllocation &in) {
|
||||
setOperand(0, in);
|
||||
|
@ -4915,7 +4902,6 @@ class LCallGetElement : public LCallInstructionHelper<BOX_PIECES, 2 * BOX_PIECES
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(CallGetElement)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
static const size_t LhsInput = 0;
|
||||
static const size_t RhsInput = BOX_PIECES;
|
||||
|
@ -4930,7 +4916,6 @@ class LCallSetElement : public LCallInstructionHelper<0, 1 + 2 * BOX_PIECES, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(CallSetElement)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
static const size_t Index = 1;
|
||||
static const size_t Value = 1 + BOX_PIECES;
|
||||
|
@ -5171,7 +5156,6 @@ class LIteratorNext : public LInstructionHelper<BOX_PIECES, 1, 1>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(IteratorNext)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LIteratorNext(const LAllocation &iterator, const LDefinition &temp) {
|
||||
setOperand(0, iterator);
|
||||
|
@ -5249,7 +5233,6 @@ class LGetFrameArgument : public LInstructionHelper<BOX_PIECES, 1, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(GetFrameArgument)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LGetFrameArgument(const LAllocation &index) {
|
||||
setOperand(0, index);
|
||||
|
@ -5300,7 +5283,6 @@ class LSetFrameArgumentV : public LInstructionHelper<0, BOX_PIECES, 0>
|
|||
{
|
||||
public:
|
||||
LIR_HEADER(SetFrameArgumentV)
|
||||
BOX_OUTPUT_ACCESSORS()
|
||||
|
||||
LSetFrameArgumentV() {}
|
||||
|
||||
|
|
|
@ -1539,21 +1539,6 @@ LAllocation::toRegister() const
|
|||
return visitor->visit##opcode(this); \
|
||||
}
|
||||
|
||||
#if defined(JS_NUNBOX32)
|
||||
# define BOX_OUTPUT_ACCESSORS() \
|
||||
const LDefinition *outputType() { \
|
||||
return getDef(TYPE_INDEX); \
|
||||
} \
|
||||
const LDefinition *outputPayload() { \
|
||||
return getDef(PAYLOAD_INDEX); \
|
||||
}
|
||||
#elif defined(JS_PUNBOX64)
|
||||
# define BOX_OUTPUT_ACCESSORS() \
|
||||
const LDefinition *outputValue() { \
|
||||
return getDef(0); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "jit/LIR-Common.h"
|
||||
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
|
||||
# if defined(JS_CODEGEN_X86)
|
||||
|
|
|
@ -136,11 +136,11 @@ CodeGeneratorX64::visitUnbox(LUnbox *unbox)
|
|||
bool
|
||||
CodeGeneratorX64::visitLoadSlotV(LLoadSlotV *load)
|
||||
{
|
||||
Register dest = ToRegister(load->outputValue());
|
||||
ValueOperand dest = ToOutValue(load);
|
||||
Register base = ToRegister(load->input());
|
||||
int32_t offset = load->mir()->slot() * sizeof(js::Value);
|
||||
|
||||
masm.loadPtr(Address(base, offset), dest);
|
||||
masm.loadValue(Address(base, offset), dest);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче