зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1614622 part 4 - Remove now unused youngestFrameLocationAtAddr. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D62428 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
214eabb067
Коммит
79a35a52a6
|
@ -100,21 +100,6 @@ uint32_t JitcodeGlobalEntry::IonEntry::callStackAtAddr(
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitcodeGlobalEntry::IonEntry::youngestFrameLocationAtAddr(
|
|
||||||
void* ptr, JSScript** script, jsbytecode** pc) const {
|
|
||||||
uint32_t ptrOffset;
|
|
||||||
JitcodeRegionEntry region = RegionAtAddr(*this, ptr, &ptrOffset);
|
|
||||||
|
|
||||||
JitcodeRegionEntry::ScriptPcIterator locationIter = region.scriptPcIterator();
|
|
||||||
MOZ_ASSERT(locationIter.hasMore());
|
|
||||||
uint32_t scriptIdx, pcOffset;
|
|
||||||
locationIter.readNext(&scriptIdx, &pcOffset);
|
|
||||||
pcOffset = region.findPcOffset(ptrOffset, pcOffset);
|
|
||||||
|
|
||||||
*script = getScript(scriptIdx);
|
|
||||||
*pc = (*script)->offsetToPC(pcOffset);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t JitcodeGlobalEntry::IonEntry::lookupRealmID(void* ptr) const {
|
uint64_t JitcodeGlobalEntry::IonEntry::lookupRealmID(void* ptr) const {
|
||||||
uint32_t ptrOffset;
|
uint32_t ptrOffset;
|
||||||
JitcodeRegionEntry region = RegionAtAddr(*this, ptr, &ptrOffset);
|
JitcodeRegionEntry region = RegionAtAddr(*this, ptr, &ptrOffset);
|
||||||
|
@ -195,13 +180,6 @@ uint32_t JitcodeGlobalEntry::BaselineEntry::callStackAtAddr(
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitcodeGlobalEntry::BaselineEntry::youngestFrameLocationAtAddr(
|
|
||||||
void* ptr, JSScript** script, jsbytecode** pc) const {
|
|
||||||
uint8_t* addr = reinterpret_cast<uint8_t*>(ptr);
|
|
||||||
*script = script_;
|
|
||||||
*pc = script_->baselineScript()->approximatePcForNativeAddress(script_, addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t JitcodeGlobalEntry::BaselineEntry::lookupRealmID() const {
|
uint64_t JitcodeGlobalEntry::BaselineEntry::lookupRealmID() const {
|
||||||
return script_->realm()->creationOptions().profilerRealmID();
|
return script_->realm()->creationOptions().profilerRealmID();
|
||||||
}
|
}
|
||||||
|
@ -229,11 +207,6 @@ uint32_t JitcodeGlobalEntry::BaselineInterpreterEntry::callStackAtAddr(
|
||||||
MOZ_CRASH("shouldn't be called for BaselineInterpreter entries");
|
MOZ_CRASH("shouldn't be called for BaselineInterpreter entries");
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitcodeGlobalEntry::BaselineInterpreterEntry::youngestFrameLocationAtAddr(
|
|
||||||
void* ptr, JSScript** script, jsbytecode** pc) const {
|
|
||||||
MOZ_CRASH("shouldn't be called for BaselineInterpreter entries");
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t JitcodeGlobalEntry::BaselineInterpreterEntry::lookupRealmID() const {
|
uint64_t JitcodeGlobalEntry::BaselineInterpreterEntry::lookupRealmID() const {
|
||||||
MOZ_CRASH("shouldn't be called for BaselineInterpreter entries");
|
MOZ_CRASH("shouldn't be called for BaselineInterpreter entries");
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,9 +322,6 @@ class JitcodeGlobalEntry {
|
||||||
uint32_t callStackAtAddr(void* ptr, const char** results,
|
uint32_t callStackAtAddr(void* ptr, const char** results,
|
||||||
uint32_t maxResults) const;
|
uint32_t maxResults) const;
|
||||||
|
|
||||||
void youngestFrameLocationAtAddr(void* ptr, JSScript** script,
|
|
||||||
jsbytecode** pc) const;
|
|
||||||
|
|
||||||
uint64_t lookupRealmID(void* ptr) const;
|
uint64_t lookupRealmID(void* ptr) const;
|
||||||
|
|
||||||
bool hasTrackedOptimizations() const { return !!optsRegionTable_; }
|
bool hasTrackedOptimizations() const { return !!optsRegionTable_; }
|
||||||
|
@ -409,9 +406,6 @@ class JitcodeGlobalEntry {
|
||||||
uint32_t callStackAtAddr(void* ptr, const char** results,
|
uint32_t callStackAtAddr(void* ptr, const char** results,
|
||||||
uint32_t maxResults) const;
|
uint32_t maxResults) const;
|
||||||
|
|
||||||
void youngestFrameLocationAtAddr(void* ptr, JSScript** script,
|
|
||||||
jsbytecode** pc) const;
|
|
||||||
|
|
||||||
uint64_t lookupRealmID() const;
|
uint64_t lookupRealmID() const;
|
||||||
|
|
||||||
template <class ShouldTraceProvider>
|
template <class ShouldTraceProvider>
|
||||||
|
@ -437,9 +431,6 @@ class JitcodeGlobalEntry {
|
||||||
uint32_t callStackAtAddr(void* ptr, const char** results,
|
uint32_t callStackAtAddr(void* ptr, const char** results,
|
||||||
uint32_t maxResults) const;
|
uint32_t maxResults) const;
|
||||||
|
|
||||||
void youngestFrameLocationAtAddr(void* ptr, JSScript** script,
|
|
||||||
jsbytecode** pc) const;
|
|
||||||
|
|
||||||
uint64_t lookupRealmID() const;
|
uint64_t lookupRealmID() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -468,12 +459,6 @@ class JitcodeGlobalEntry {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void youngestFrameLocationAtAddr(JSRuntime* rt, void* ptr,
|
|
||||||
JSScript** script, jsbytecode** pc) const {
|
|
||||||
*script = nullptr;
|
|
||||||
*pc = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t lookupRealmID() const { return 0; }
|
uint64_t lookupRealmID() const { return 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -715,20 +700,6 @@ class JitcodeGlobalEntry {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void youngestFrameLocationAtAddr(JSRuntime* rt, void* ptr, JSScript** script,
|
|
||||||
jsbytecode** pc) const {
|
|
||||||
switch (kind()) {
|
|
||||||
case Ion:
|
|
||||||
return ionEntry().youngestFrameLocationAtAddr(ptr, script, pc);
|
|
||||||
case Baseline:
|
|
||||||
return baselineEntry().youngestFrameLocationAtAddr(ptr, script, pc);
|
|
||||||
case Dummy:
|
|
||||||
return dummyEntry().youngestFrameLocationAtAddr(rt, ptr, script, pc);
|
|
||||||
default:
|
|
||||||
MOZ_CRASH("Invalid JitcodeGlobalEntry kind.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t lookupRealmID(JSRuntime* rt, void* ptr) const {
|
uint64_t lookupRealmID(JSRuntime* rt, void* ptr) const {
|
||||||
switch (kind()) {
|
switch (kind()) {
|
||||||
case Ion:
|
case Ion:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче