Unify function parameter checking in PreParser and Parser.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 7 Feb 2014 12:44:45 +0000 (12:44 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 7 Feb 2014 12:44:45 +0000 (12:44 +0000)
commitcaa727711f34d7039818e86b6ecd8753a566c992
treecbfb2ddc2a11f2c1076d1f273b252fc0158882c3
parentd0f57e1195aeb450ca3c7c7122bd4d7ab3d8bce3
Unify function parameter checking in PreParser and Parser.

This also makes the "delayed strict mode violations" mechanism in PreParser
unnecessary.

The attached tests didn't pass before this CL but now they do.

BUG=v8:3126
LOG=N
R=mstarzinger@chromium.org

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

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