Parser & internalizing: efficiency fixes.
authormarja@chromium.org <marja@chromium.org>
Tue, 4 Nov 2014 14:15:57 +0000 (14:15 +0000)
committermarja@chromium.org <marja@chromium.org>
Tue, 4 Nov 2014 14:16:17 +0000 (14:16 +0000)
commit94a08565d79a13056b9d964428798dac564905bc
tree088e14bb4cfdca31349f4ef4747916f4cbd25cc2
parent38971822468625310de2b428fe3e13fe792cb06b
Parser & internalizing: efficiency fixes.

1) In ParseLazy, we're already using the heap, so we can also tell
AstValueFactory to internalize immediately. This is more efficient.

2) No need to collect the values in values_ and strings_ if they're already
internalized.

3) No need to collect AstValues which are strings in values_ since they don't
need to be internalized (the underlying strings will be internalized
separately).

BUG=429168
LOG=N
R=rossberg@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25109}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25109 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ast-value-factory.cc
src/parser.cc