Make "native" not a keyword.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Jun 2011 10:20:57 +0000 (10:20 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 20 Jun 2011 10:20:57 +0000 (10:20 +0000)
commit480ec43c4e5cc6071c545281439e55d210d41097
tree3e675c177f76afd0d090d1cd44f7d6a417be347f
parentb789cb8c94c192a1f3fb37bcbe582c451cdc06ac
Make "native" not a keyword.

We now only recognize "native function" when it occurs in extension scripts
(parsing with a non-NULL extension), and only if there is no line-terminator
between "native" and "function" (so that it would otherwise be a Syntax Error).
Preparsing never recognizes native functions, which is acceptable since we
never preparse extension scripts (because we don't allow lazy functions
anyway).

BUG=v8:1097

Review URL: http://codereview.chromium.org/7206020

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8326 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.h
src/parser.cc
src/preparser.cc
src/preparser.h
src/scanner-base.cc
src/token.h
test/cctest/test-parsing.cc
test/mjsunit/object-literal.js
test/mozilla/mozilla.status
test/sputnik/sputnik.status