Bug 1268771 - Remove OldJitAllocPolicy. r=jandem.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 29 Apr 2016 16:22:35 +1000
changeset 295632 3b968080b282bfe3ccbcf0c52c65a7da90fd85a3
parent 295631 a0daadf6943ce11e9858cdcb7aacfd63dfc0ce39
child 295633 ed22935f909f92a895fab83422be3913694352ca
push id76022
push usernnethercote@mozilla.com
push dateSun, 01 May 2016 22:57:00 +0000
treeherdermozilla-inbound@3b968080b282 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1268771
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1268771 - Remove OldJitAllocPolicy. r=jandem. It's unused.
js/src/jit/JitAllocPolicy.h
--- a/js/src/jit/JitAllocPolicy.h
+++ b/js/src/jit/JitAllocPolicy.h
@@ -117,41 +117,16 @@ class JitAllocPolicy
     }
     void reportAllocOverflow() const {
     }
     bool checkSimulatedOOM() const {
         return !js::oom::ShouldFailWithOOM();
     }
 };
 
-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_;
     JitContext* jcx_;
     TempAllocator* prevAlloc_;
 
   public:
     explicit AutoJitContextAlloc(JSContext* cx)