Bug 1101905 - Part 2: Add strict variant of JSOP_SETPROP. (r=Waldo)
This commit is contained in:
@@ -654,11 +654,19 @@ IsGetPropPC(jsbytecode *pc)
|
||||
return op == JSOP_LENGTH || op == JSOP_GETPROP || op == JSOP_CALLPROP;
|
||||
}
|
||||
|
||||
inline bool
|
||||
IsStrictSetPC(jsbytecode *pc)
|
||||
{
|
||||
JSOp op = JSOp(*pc);
|
||||
return op == JSOP_STRICTSETPROP;
|
||||
}
|
||||
|
||||
inline bool
|
||||
IsSetPropPC(jsbytecode *pc)
|
||||
{
|
||||
JSOp op = JSOp(*pc);
|
||||
return op == JSOP_SETPROP || op == JSOP_SETNAME || op == JSOP_SETGNAME;
|
||||
return op == JSOP_SETPROP || op == JSOP_STRICTSETPROP ||
|
||||
op == JSOP_SETNAME || op == JSOP_SETGNAME;
|
||||
}
|
||||
|
||||
inline bool
|
||||
|
||||
Reference in New Issue
Block a user