зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1268771 - Remove OldJitAllocPolicy. r=jandem.
It's unused.
This commit is contained in:
Родитель
32bf86a025
Коммит
42f9c7021b
|
@ -122,31 +122,6 @@ class JitAllocPolicy
|
|||
}
|
||||
};
|
||||
|
||||
class OldJitAllocPolicy
|
||||
{
|
||||
public:
|
||||
OldJitAllocPolicy()
|
||||
{}
|
||||
template <typename T>
|
||||
T* maybe_pod_malloc(size_t numElems) {
|
||||
size_t bytes;
|
||||
if (MOZ_UNLIKELY(!CalculateAllocSize<T>(numElems, &bytes)))
|
||||
return nullptr;
|
||||
return static_cast<T*>(GetJitContext()->temp->allocate(bytes));
|
||||
}
|
||||
template <typename T>
|
||||
T* pod_malloc(size_t numElems) {
|
||||
return maybe_pod_malloc<T>(numElems);
|
||||
}
|
||||
void free_(void* p) {
|
||||
}
|
||||
void reportAllocOverflow() const {
|
||||
}
|
||||
bool checkSimulatedOOM() const {
|
||||
return !js::oom::ShouldFailWithOOM();
|
||||
}
|
||||
};
|
||||
|
||||
class AutoJitContextAlloc
|
||||
{
|
||||
TempAllocator tempAlloc_;
|
||||
|
|
Загрузка…
Ссылка в новой задаче