Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 657893003: AstValueFactory: make true, false, null, undefined and "the hole" unique values. (Closed)

Created:
6 years, 2 months ago by marja
Modified:
6 years, 2 months ago
Reviewers:
rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/v8/source/detail?r=24873

Patch Set 1 #

Total comments: 6

Patch Set 2 : clang-formatting moar #

Patch Set 3 : code review (rossberg@) #

Total comments: 3

Patch Set 4 : Code review (rossberg@) #

Patch Set 5 : . #

Patch Set 6 : oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -36 lines) Patch
M src/ast-value-factory.h View 1 2 3 6 chunks +25 lines, -13 lines 0 comments Download
M src/ast-value-factory.cc View 1 2 3 4 5 2 chunks +20 lines, -23 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
marja
rossberg, ptal
6 years, 2 months ago (2014-10-23 11:17:39 UTC) #2
rossberg
https://codereview.chromium.org/657893003/diff/1/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/657893003/diff/1/src/ast-value-factory.h#newcode289 src/ast-value-factory.h:289: #define F(name, value) name##_ = NULL; Nit: use same ...
6 years, 2 months ago (2014-10-23 12:12:22 UTC) #3
marja
https://codereview.chromium.org/657893003/diff/1/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/657893003/diff/1/src/ast-value-factory.h#newcode289 src/ast-value-factory.h:289: #define F(name, value) name##_ = NULL; On 2014/10/23 12:12:21, ...
6 years, 2 months ago (2014-10-23 12:27:32 UTC) #4
rossberg
https://codereview.chromium.org/657893003/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/657893003/diff/1/src/ast.h#newcode3404 src/ast.h:3404: const AstValue* value = b ? ast_value_factory_->true_value() On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 12:36:31 UTC) #5
marja
https://codereview.chromium.org/657893003/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/657893003/diff/1/src/ast.h#newcode3404 src/ast.h:3404: const AstValue* value = b ? ast_value_factory_->true_value() On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 13:00:41 UTC) #6
rossberg
Sorry, more wishes. :) https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h#newcode323 src/ast-value-factory.h:323: #define F(name, function_name, type) \ ...
6 years, 2 months ago (2014-10-23 13:21:29 UTC) #7
marja
https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h#newcode323 src/ast-value-factory.h:323: #define F(name, function_name, type) \ On 2014/10/23 13:21:29, rossberg ...
6 years, 2 months ago (2014-10-24 10:08:19 UTC) #8
rossberg
LGTM https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/657893003/diff/40001/src/ast-value-factory.h#newcode323 src/ast-value-factory.h:323: #define F(name, function_name, type) \ On 2014/10/24 10:08:19, ...
6 years, 2 months ago (2014-10-24 10:40:05 UTC) #9
marja
6 years, 2 months ago (2014-10-24 13:02:52 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 24873 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698