Bug 1108797 - Add a missing AutoForbidPools to callAndPushReturnAddress. r=dougc, a=sledru
authorJan de Mooij <jdemooij@mozilla.com>
Fri, 19 Dec 2014 12:59:17 +0100
changeset 242569 0be8fa650e1ca9d6dc4616d15764df6b8c3c012c
parent 242568 f2d2a910e7cefb1f66eab89c6b6059754b006dd4
child 242570 ceb5206306539ea37262bdcf710ad21fb6ec9b98
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougc, sledru
bugs1108797
milestone36.0a2
Bug 1108797 - Add a missing AutoForbidPools to callAndPushReturnAddress. r=dougc, a=sledru
js/src/jit/arm/MacroAssembler-arm.h
--- a/js/src/jit/arm/MacroAssembler-arm.h
+++ b/js/src/jit/arm/MacroAssembler-arm.h
@@ -585,16 +585,17 @@ class MacroAssemblerARMCompat : public M
         call(reg);
         append(desc, currentOffset(), framePushed_);
     }
     void call(const CallSiteDesc &desc, Label *label) {
         call(label);
         append(desc, currentOffset(), framePushed_);
     }
     void callAndPushReturnAddress(Label *label) {
+        AutoForbidPools afp(this, 2);
         ma_push(pc);
         call(label);
     }
 
     void branch(JitCode *c) {
         BufferOffset bo = m_buffer.nextOffset();
         addPendingJump(bo, ImmPtr(c->raw()), Relocation::JITCODE);
         RelocStyle rs;