Mark types for second value pushed by JSOP_CALLXMLNAME, bug 717252. r=dvander
authorBrian Hackett <bhackett1024@gmail.com>
Fri, 13 Jan 2012 17:45:11 -0800
changeset 85667 7ea17887bc78be093e3878d14a48fbd4aea6af4e
parent 85666 70cde72e024bcb00eb21401c89932d4c1300de33
child 85668 d55387b7d9c80223cf948b471a03d2c364d9d66b
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs717252
milestone12.0a1
Mark types for second value pushed by JSOP_CALLXMLNAME, bug 717252. r=dvander
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -4059,18 +4059,21 @@ ScriptAnalysis::analyzeTypesBytecode(JSC
             }
         }
         break;
 
       case JSOP_YIELD:
         pushed[0].addType(cx, Type::UnknownType());
         break;
 
+      case JSOP_CALLXMLNAME:
+        pushed[1].addType(cx, Type::UnknownType());
+        /* FALLTHROUGH */
+
       case JSOP_XMLNAME:
-      case JSOP_CALLXMLNAME:
         pushed[0].addType(cx, Type::UnknownType());
         break;
 
       case JSOP_SETXMLNAME:
         cx->compartment->types.monitorBytecode(cx, script, offset);
         poppedTypes(pc, 0)->addSubset(cx, &pushed[0]);
         break;