Reviewers: Mads Ager, fschneider, Description: Add a predicate IsPrimitive to AST Expression nodes.
IsPrimitive reflects that an expression's value is known statically to be one of the ECMA-262-3 JS types other than Object (e.g., Undefined, Null, Boolean, String, or Number). The type conversions ToPrimitive, ToNumber, ToInteger, ToInt32, ToUInt32, ToUint16, ToString, or ToObject cannot invoke user code for primitive input values. ToObject throws a TypeError if its input is Undefined or Null. Please review this at http://codereview.chromium.org/912002 Affected files: M src/ast.h M src/ast.cc -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
