Bug 913978 - Fix over-tight assertions after enabling Baseline getter/setter calls for GETELEM/SETELEM ops. r=efaust
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user