зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1054340 - Remove PcOffset IR instructions. r=h4writer
This commit is contained in:
Родитель
eec76f0349
Коммит
6aad25a1b0
|
@ -1409,15 +1409,6 @@ CodeGenerator::visitStart(LStart *lir)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CodeGenerator::visitPcOffset(LPcOffset *lir)
|
||||
{
|
||||
if (!addNativeToBytecodeEntry(lir->mir()->trackedSite()))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CodeGenerator::visitReturn(LReturn *lir)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,6 @@ class CodeGenerator : public CodeGeneratorSpecific
|
|||
bool visitParameter(LParameter *lir);
|
||||
bool visitCallee(LCallee *lir);
|
||||
bool visitStart(LStart *lir);
|
||||
bool visitPcOffset(LPcOffset *lir);
|
||||
bool visitReturn(LReturn *ret);
|
||||
bool visitDefVar(LDefVar *lir);
|
||||
bool visitDefFun(LDefFun *lir);
|
||||
|
|
|
@ -1277,9 +1277,6 @@ IonBuilder::traverseBytecode()
|
|||
}
|
||||
#endif
|
||||
|
||||
if (isNativeToBytecodeMapEnabled())
|
||||
current->add(MPcOffset::New(alloc()));
|
||||
|
||||
// Nothing in inspectOpcode() is allowed to advance the pc.
|
||||
JSOp op = JSOp(*pc);
|
||||
if (!inspectOpcode(op))
|
||||
|
|
|
@ -3394,17 +3394,6 @@ class LStart : public LInstructionHelper<0, 0, 0>
|
|||
LIR_HEADER(Start)
|
||||
};
|
||||
|
||||
// No-op instruction that prints nativeOffset, script, pcOffset during codegen.
|
||||
class LPcOffset : public LInstructionHelper<0, 0, 0>
|
||||
{
|
||||
public:
|
||||
LIR_HEADER(PcOffset)
|
||||
|
||||
const MPcOffset *mir() const {
|
||||
return mir_->toPcOffset();
|
||||
}
|
||||
};
|
||||
|
||||
// Passed the BaselineFrame address in the OsrFrameReg by SideCannon().
|
||||
// Forwards this object to the LOsrValues for Value materialization.
|
||||
class LOsrEntry : public LInstructionHelper<1, 0, 0>
|
||||
|
|
|
@ -156,7 +156,6 @@
|
|||
_(DoubleToString) \
|
||||
_(ValueToString) \
|
||||
_(Start) \
|
||||
_(PcOffset) \
|
||||
_(OsrEntry) \
|
||||
_(OsrValue) \
|
||||
_(OsrScopeChain) \
|
||||
|
|
|
@ -1674,13 +1674,6 @@ LIRGenerator::visitStart(MStart *start)
|
|||
return add(lir);
|
||||
}
|
||||
|
||||
bool
|
||||
LIRGenerator::visitPcOffset(MPcOffset *pcOffset)
|
||||
{
|
||||
LPcOffset *lir = new(alloc()) LPcOffset;
|
||||
return add(lir, pcOffset);
|
||||
}
|
||||
|
||||
bool
|
||||
LIRGenerator::visitNop(MNop *nop)
|
||||
{
|
||||
|
|
|
@ -141,7 +141,6 @@ class LIRGenerator : public LIRGeneratorSpecific
|
|||
bool visitFromCharCode(MFromCharCode *ins);
|
||||
bool visitStringSplit(MStringSplit *ins);
|
||||
bool visitStart(MStart *start);
|
||||
bool visitPcOffset(MPcOffset *pcOffset);
|
||||
bool visitOsrEntry(MOsrEntry *entry);
|
||||
bool visitNop(MNop *nop);
|
||||
bool visitLimitedTruncate(MLimitedTruncate *nop);
|
||||
|
|
|
@ -1111,24 +1111,6 @@ class MStart : public MNullaryInstruction
|
|||
}
|
||||
};
|
||||
|
||||
class MPcOffset : public MNullaryInstruction
|
||||
{
|
||||
private:
|
||||
MPcOffset() {
|
||||
setGuard();
|
||||
}
|
||||
|
||||
public:
|
||||
INSTRUCTION_HEADER(PcOffset)
|
||||
static MPcOffset *New(TempAllocator &alloc) {
|
||||
return new(alloc) MPcOffset();
|
||||
}
|
||||
|
||||
AliasSet getAliasSet() const {
|
||||
return AliasSet::None();
|
||||
}
|
||||
};
|
||||
|
||||
// Instruction marking on entrypoint for on-stack replacement.
|
||||
// OSR may occur at loop headers (at JSOP_TRACE).
|
||||
// There is at most one MOsrEntry per MIRGraph.
|
||||
|
|
|
@ -106,7 +106,6 @@ namespace jit {
|
|||
_(InitProp) \
|
||||
_(InitPropGetterSetter) \
|
||||
_(Start) \
|
||||
_(PcOffset) \
|
||||
_(OsrEntry) \
|
||||
_(Nop) \
|
||||
_(LimitedTruncate) \
|
||||
|
|
|
@ -199,7 +199,6 @@ class ParallelSafetyVisitor : public MDefinitionVisitor
|
|||
UNSAFE_OP(InitProp)
|
||||
UNSAFE_OP(InitPropGetterSetter)
|
||||
SAFE_OP(Start)
|
||||
SAFE_OP(PcOffset)
|
||||
UNSAFE_OP(OsrEntry)
|
||||
SAFE_OP(Nop)
|
||||
SAFE_OP(LimitedTruncate)
|
||||
|
|
Загрузка…
Ссылка в новой задаче