Bug 1329665 - Use fallible allocator in FlowAliasAnalysis::saveStoreDependency. r=h4writer
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Fri, 20 Jan 2017 11:16:11 +0000
changeset 377572 ae8caa5d668abfa77d4e041e783784b9eb0f76fc
parent 377571 db3c474e3c68615f5bfd042d1d9a866ee964a5fc
child 377573 3cedab21a7e65e6a1c4c2294ecfb5502575a46e3
child 377620 9b5cc104aaf600a84643800a17bddfbed0acbc24
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersh4writer
bugs1329665
milestone53.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 1329665 - Use fallible allocator in FlowAliasAnalysis::saveStoreDependency. r=h4writer
js/src/jit/FlowAliasAnalysis.cpp
--- a/js/src/jit/FlowAliasAnalysis.cpp
+++ b/js/src/jit/FlowAliasAnalysis.cpp
@@ -810,17 +810,17 @@ FlowAliasAnalysis::saveLoadDependency(MD
 }
 
 bool
 FlowAliasAnalysis::saveStoreDependency(MDefinition* ins, BlockStoreInfo& prevStores)
 {
     // To form a store dependency chain, we store the previous last dependencies
     // in the current store.
 
-    StoreDependency* dependency = new(alloc()) StoreDependency(alloc());
+    StoreDependency* dependency = new(alloc().fallible()) StoreDependency(alloc());
     if (!dependency)
         return false;
     if (!dependency->init(prevStores))
         return false;
 
     ins->setStoreDependency(dependency);
     return true;
 }