icecat: add release icecat-140.7.0-1gnu1 for ecne
This commit is contained in:
parent
7d0f5dab3b
commit
30225f2e73
156 changed files with 9131 additions and 4525 deletions
|
|
@ -67,6 +67,8 @@ struct Matcher {
|
|||
|
||||
using namespace mozilla::loader;
|
||||
|
||||
struct CachedStencilRefAndTime;
|
||||
|
||||
class ScriptPreloader : public nsIObserver,
|
||||
public nsIMemoryReporter,
|
||||
public nsIRunnable,
|
||||
|
|
@ -216,21 +218,6 @@ class ScriptPreloader : public nsIObserver,
|
|||
: ScriptStatus::Saved;
|
||||
}
|
||||
|
||||
// For use with nsTArray::Sort.
|
||||
//
|
||||
// Orders scripts by script load time, so that scripts which are needed
|
||||
// earlier are stored earlier, and scripts needed at approximately the
|
||||
// same time are stored approximately contiguously.
|
||||
struct Comparator {
|
||||
bool Equals(const CachedStencil* a, const CachedStencil* b) const {
|
||||
return a->mLoadTime == b->mLoadTime;
|
||||
}
|
||||
|
||||
bool LessThan(const CachedStencil* a, const CachedStencil* b) const {
|
||||
return a->mLoadTime < b->mLoadTime;
|
||||
}
|
||||
};
|
||||
|
||||
struct StatusMatcher final : public Matcher<CachedStencil*> {
|
||||
explicit StatusMatcher(ScriptStatus status) : mStatus(status) {}
|
||||
|
||||
|
|
@ -388,6 +375,8 @@ class ScriptPreloader : public nsIObserver,
|
|||
MaybeOneOf<JS::TranscodeBuffer, nsTArray<uint8_t>> mXDRData;
|
||||
} JS_HAZ_NON_GC_POINTER;
|
||||
|
||||
friend struct CachedStencilRefAndTime;
|
||||
|
||||
template <ScriptStatus status>
|
||||
static Matcher<CachedStencil*>* Match() {
|
||||
static CachedStencil::StatusMatcher matcher{status};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue