Simplify PreParser::ParsePrimaryExpression
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Mar 2013 12:44:38 +0000 (12:44 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Mar 2013 12:44:38 +0000 (12:44 +0000)
commitb09f9bfe68c0868561c66fd0d0a32e3702b8a8c8
tree2bfadc463c5cf8698c4598c04171b99fe6ac6d90
parentb85237a0bc0baa980c8b24c781381321f82b161e
Simplify PreParser::ParsePrimaryExpression

* src/preparser.cc (PreParser::ParsePrimaryExpression): No need to check
  keywords for validity as identifiers, as ParseIdentifier (called in
  the fallthrough) will take care of it.

Covered by existing tests.

BUG=

Review URL: https://codereview.chromium.org/12600004
Patch from Andy Wingo <wingo@igalia.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13899 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/preparser.cc