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

Issue 2630343002: [Parser] Introduce AstStringConstants to share constants across AstValueFactory (Closed)

Created:
3 years, 11 months ago by rmcilroy
Modified:
3 years, 11 months ago
Reviewers:
ahaas, marja
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Parser] Introduce AstStringConstants to share constants across AstValueFactory Creates an AstStringConstants container which pre-initializes the string constants used by AstValueFactory. This ensures that all AstValueFactories will produce the same AstValue objects for constants, and so they can be used by the BytecodeGenerator without having to pass the AstValueFactory to it, enabling construction off-thread. BUG=v8:5203 Review-Url: https://codereview.chromium.org/2630343002 Cr-Original-Commit-Position: refs/heads/master@{#42381} Committed: https://chromium.googlesource.com/v8/v8/+/d611496b8ed30af787d8668f96b400617c858508 Review-Url: https://codereview.chromium.org/2630343002 Cr-Commit-Position: refs/heads/master@{#42394} Committed: https://chromium.googlesource.com/v8/v8/+/5883bf21253efaa591420bfcdc2f5a5eb6b68ce4

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : Add comment #

Patch Set 4 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -45 lines) Patch
M src/ast/ast-value-factory.h View 1 2 3 8 chunks +64 lines, -20 lines 0 comments Download
M src/ast/ast-value-factory.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/heap-symbols.h View 1 2 3 10 chunks +18 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M src/isolate.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-ast.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 11 chunks +25 lines, -14 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (17 generated)
rmcilroy
Marja, PTAL at this change, it's what we discussed last week to remove the need ...
3 years, 11 months ago (2017-01-16 12:59:40 UTC) #5
marja
Generally LG, the design is elegant! https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h File src/ast/ast-value-factory.h (right): https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h#newcode326 src/ast/ast-value-factory.h:326: AstStringConstants(Isolate* isolate, uint32_t ...
3 years, 11 months ago (2017-01-16 13:38:41 UTC) #8
ahaas
On 2017/01/16 at 13:38:41, marja wrote: > Generally LG, the design is elegant! > > ...
3 years, 11 months ago (2017-01-16 13:56:10 UTC) #9
rmcilroy
https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h File src/ast/ast-value-factory.h (right): https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h#newcode326 src/ast/ast-value-factory.h:326: AstStringConstants(Isolate* isolate, uint32_t hash_seed) On 2017/01/16 13:38:40, marja wrote: ...
3 years, 11 months ago (2017-01-16 14:08:01 UTC) #10
marja
lgtm https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h File src/ast/ast-value-factory.h (right): https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h#newcode336 src/ast/ast-value-factory.h:336: name##_string_->set_string(isolate->factory()->name##_string()); \ On 2017/01/16 14:08:01, rmcilroy wrote: > ...
3 years, 11 months ago (2017-01-16 14:09:26 UTC) #11
rmcilroy
https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h File src/ast/ast-value-factory.h (right): https://codereview.chromium.org/2630343002/diff/20001/src/ast/ast-value-factory.h#newcode336 src/ast/ast-value-factory.h:336: name##_string_->set_string(isolate->factory()->name##_string()); \ On 2017/01/16 14:09:26, marja wrote: > On ...
3 years, 11 months ago (2017-01-16 14:22:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630343002/60001
3 years, 11 months ago (2017-01-16 14:22:34 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/15669) v8_mac_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-16 14:42:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630343002/80001
3 years, 11 months ago (2017-01-16 15:35:21 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/v8/v8/+/d611496b8ed30af787d8668f96b400617c858508
3 years, 11 months ago (2017-01-16 16:06:55 UTC) #23
rmcilroy
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/2638783002/ by rmcilroy@chromium.org. ...
3 years, 11 months ago (2017-01-16 16:35:03 UTC) #24
marja
On 2017/01/16 16:35:03, rmcilroy wrote: > A revert of this CL (patchset #4 id:80001) has ...
3 years, 11 months ago (2017-01-17 10:10:36 UTC) #26
rmcilroy
On 2017/01/17 10:10:36, marja wrote: > On 2017/01/16 16:35:03, rmcilroy wrote: > > A revert ...
3 years, 11 months ago (2017-01-17 10:18:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630343002/80001
3 years, 11 months ago (2017-01-17 10:19:09 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 10:20:52 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/5883bf21253efaa591420bfcdc2f5a5eb6b...

Powered by Google App Engine
This is Rietveld 408576698