Bug 1101905 - Part 2: Add strict variant of JSOP_SETPROP. (r=Waldo)

This commit is contained in:
Eric Faust
2014-11-26 14:42:52 -08:00
parent 3c261cde7c
commit c1bccb9264
9 changed files with 58 additions and 17 deletions

View File

@@ -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