Bug 1108797 - Add a missing AutoForbidPools to callAndPushReturnAddress. r=dougc
authorJan de Mooij <jdemooij@mozilla.com>
Fri, 19 Dec 2014 12:59:17 +0100
changeset 220592 df379644b52fa9f4a7d619ee9085d098bc8983f4
parent 220591 bc096fd3062653f1bf532a629f0a16471ca030a5
child 220593 f4eba33e0d61602f0f1a406c7b4f434519067300
push id10503
push userryanvm@gmail.com
push dateFri, 19 Dec 2014 20:13:42 +0000
treeherderfx-team@98ee95ac6be5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougc
bugs1108797
milestone37.0a1
Bug 1108797 - Add a missing AutoForbidPools to callAndPushReturnAddress. r=dougc
js/src/jit/arm/MacroAssembler-arm.h
--- a/js/src/jit/arm/MacroAssembler-arm.h
+++ b/js/src/jit/arm/MacroAssembler-arm.h
@@ -586,16 +586,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;