AstValueFactory: make true, false, null, undefined and "the hole" unique values.
authormarja@chromium.org <marja@chromium.org>
Fri, 24 Oct 2014 13:02:23 +0000 (13:02 +0000)
committermarja@chromium.org <marja@chromium.org>
Fri, 24 Oct 2014 13:12:11 +0000 (13:12 +0000)
commite0734a65199ebacea5110430b534377ba1f0534a
tree95d1a1559dfd4296a1d05a8ada5166456d358cf8
parent484274346f5aa3e425caa94887223a1637b4e644
AstValueFactory: make true, false, null, undefined and "the hole" unique values.

They were not, so we were creating several instances of them, one for each time
they occurred in the source code.

It's not known to have caused efficiency problems though, so this is a sanity
fix more than an efficiency fix.

Note that numbers are still not unique.

BUG=
R=rossberg@chromium.org

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

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