Bug 913978 - Fix over-tight assertions after enabling Baseline getter/setter calls for GETELEM/SETELEM ops. r=efaust

This commit is contained in:
Kannan Vijayan
2013-09-10 12:26:47 -04:00
parent b5c0b65a92
commit 532af6a9f4
5 changed files with 34 additions and 17 deletions

View File

@@ -591,19 +591,33 @@ IsEqualityOp(JSOp op)
}
inline bool
IsGetterPC(jsbytecode *pc)
IsGetPropPC(jsbytecode *pc)
{
JSOp op = JSOp(*pc);
return op == JSOP_LENGTH || op == JSOP_GETPROP || op == JSOP_CALLPROP;
}
inline bool
IsSetterPC(jsbytecode *pc)
IsSetPropPC(jsbytecode *pc)
{
JSOp op = JSOp(*pc);
return op == JSOP_SETPROP || op == JSOP_SETNAME || op == JSOP_SETGNAME;
}
inline bool
IsGetElemPC(jsbytecode *pc)
{
JSOp op = JSOp(*pc);
return op == JSOP_GETELEM || op == JSOP_CALLELEM;
}
inline bool
IsSetElemPC(jsbytecode *pc)
{
JSOp op = JSOp(*pc);
return op == JSOP_SETELEM;
}
inline bool
IsCallPC(jsbytecode *pc)
{