From aef00a82928df5185da5e534bf3c0ff9461e371f Mon Sep 17 00:00:00 2001
From: Brian Hackett <bhackett1024@gmail.com>
Date: Thu, 23 Feb 2012 18:11:03 -0800
Subject: [PATCH] Fix bogus assert, bug 717249. r=waldo

---
 js/src/jsanalyze.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/js/src/jsanalyze.h b/js/src/jsanalyze.h
index 2bd3e017d46..2b9fc4cfdc9 100644
--- a/js/src/jsanalyze.h
+++ b/js/src/jsanalyze.h
@@ -1113,10 +1113,7 @@ class ScriptAnalysis
     {
         SSAUseChain *uses = useChain(SSAValue::PushedValue(pc - script->code, 0));
         JS_ASSERT(uses && uses->popped);
-        JS_ASSERT_IF(uses->next,
-                     !uses->next->next &&
-                     uses->next->popped &&
-                     script->code[uses->next->offset] == JSOP_SWAP);
+        JS_ASSERT(js_CodeSpec[script->code[uses->offset]].format & JOF_INVOKE);
         return script->code + uses->offset;
     }