Unify PreParser::ParseIdentifierName and Parser::ParseIdentifierName.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 7 Feb 2014 08:45:28 +0000 (08:45 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 7 Feb 2014 08:45:28 +0000 (08:45 +0000)
commit5b890419f54735a05420f3d8fbf4146200a6434b
treeb61db2738ca7c49de0899a5bbfba0e4ee7dd1947
parentcb6e1b4536e6f520e87e19b59f77d9cce709d079
Unify PreParser::ParseIdentifierName and Parser::ParseIdentifierName.

No special handling for keywords is needed, since the literal ascii strings for
them work too (see how Parser did it).

BUG=3126
LOG=N
R=ulan@chromium.org

Review URL: https://codereview.chromium.org/152853006

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