]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - jit/ArityCheckFailReturnThunks.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / jit / ArityCheckFailReturnThunks.cpp
index 7e9b77d2a1061e1634a983e5ba0cd59d9df7199d..d522b8125a46d77687f0365b10608cc2c35b109e 100644 (file)
@@ -97,7 +97,8 @@ CodeLocationLabel* ArityCheckFailReturnThunks::returnPCsFor(
         jit.jump(GPRInfo::regT2);
     }
     
-    LinkBuffer linkBuffer(vm, jit, GLOBAL_THUNK_ID);
+    // Sadly, we cannot fail here because the LLInt may need us.
+    LinkBuffer linkBuffer(vm, jit, GLOBAL_THUNK_ID, JITCompilationMustSucceed);
     
     unsigned returnPCsSize = numExpectedArgumentsIncludingThis / stackAlignmentRegisters() + 1;
     std::unique_ptr<CodeLocationLabel[]> returnPCs =