Bug 1264948 - Compily with Windows lack of support for noexcept keyword. r=me
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Mon, 20 Jun 2016 13:54:08 +0000
changeset 302085 8e07ea79523bd0576b8dbd320c91203df5f4c5ae
parent 302084 b64db3b38fd8fa0bad48acfc0dc4de52a23f9e5b
child 302086 4b5c2c00f20a333eb8b0fe633d3326bf0236fdff
push id78584
push usernpierron@mozilla.com
push dateMon, 20 Jun 2016 13:54:38 +0000
treeherdermozilla-inbound@ab5f00905c50 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1264948
milestone50.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 1264948 - Compily with Windows lack of support for noexcept keyword. r=me
js/src/jit/JitAllocPolicy.h
--- a/js/src/jit/JitAllocPolicy.h
+++ b/js/src/jit/JitAllocPolicy.h
@@ -145,17 +145,17 @@ class AutoJitContextAlloc
     ~AutoJitContextAlloc() {
         MOZ_ASSERT(jcx_->temp == &tempAlloc_);
         jcx_->temp = prevAlloc_;
     }
 };
 
 struct TempObject
 {
-    inline void* operator new(size_t nbytes, TempAllocator::Fallible view) noexcept {
+    inline void* operator new(size_t nbytes, TempAllocator::Fallible view) throw() {
         return view.alloc.allocate(nbytes);
     }
     inline void* operator new(size_t nbytes, TempAllocator& alloc) {
         return alloc.allocateInfallible(nbytes);
     }
     template <class T>
     inline void* operator new(size_t nbytes, T* pos) {
         static_assert(mozilla::IsConvertible<T*, TempObject*>::value,