Parser / Scanner: Minor refactorings to make streaming scripts work easier.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Jul 2014 14:50:23 +0000 (14:50 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Jul 2014 14:50:23 +0000 (14:50 +0000)
commit79ddf746d9a5c633833926e7976fd2104b1082e2
tree75662ff03991788e8d1e7e816168824e19356e1b
parent91efa58849732a227cb326606cd0c963ceda074d
Parser / Scanner: Minor refactorings to make streaming scripts work easier.

1) Call DeserializeScopeChain only if it's going to do something
non-trivial. And we only need to internalize the AstValueFactory in those cases.

2) BufferedUtf16CharacterStream::FillBuffer doesn't need the length
argument. The length is always kBufferSize and the subclasses can just read it
(it's protected).

R=rossberg@chromium.org
BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22307 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/scanner-character-streams.cc
src/scanner-character-streams.h