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

Issue 2152853002: [Interpreter] Avoid accessing on-heap literal in VisitLiteral. (Closed)

Created:
4 years, 5 months ago by rmcilroy
Modified:
4 years, 5 months ago
Reviewers:
vogelheim, adamk
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Avoid accessing on-heap literal in VisitLiteral. Move VisitLiteral to decide what type of literal is being emitted by checking the raw ASTValue type, instead of the internalized on-heap value. This is required for concurrent bytecode generation. As part of this change, the NUMBER AstValue constructor is modified to try to convert numbers without a dot to SMIs where possible. This is to maintain the behavior in NewNumber where such numbers are internalized as SMIs, and ensures that we still emit LdaSmi bytecodes for these values in the generated bytecode. BUG=v8:5203 Committed: https://crrev.com/6b5949a8a04a2bc784bc6936cc713b466bfe2044 Cr-Commit-Position: refs/heads/master@{#37931}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments #

Total comments: 2

Patch Set 3 : DCHECK to CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -28 lines) Patch
M src/ast/ast-value-factory.h View 1 2 4 chunks +21 lines, -6 lines 0 comments Download
M src/conversions.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M src/conversions-inl.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +3 lines, -7 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 3 chunks +12 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveReturnStatements.golden View 1 1 chunk +18 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (17 generated)
rmcilroy
Ptal, thanks.
4 years, 5 months ago (2016-07-14 17:55:46 UTC) #6
rmcilroy
+adamk for parser owners review. PTAL, thanks.
4 years, 5 months ago (2016-07-18 11:18:47 UTC) #8
vogelheim
lgtm https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden File test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden (right): https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden#newcode153 test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden:153: /* 46 S> */ B(LdaConstant), U8(0), [Feel free ...
4 years, 5 months ago (2016-07-18 13:01:04 UTC) #9
rmcilroy
https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden File test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden (right): https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden#newcode153 test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden:153: /* 46 S> */ B(LdaConstant), U8(0), On 2016/07/18 13:01:04, ...
4 years, 5 months ago (2016-07-18 13:12:19 UTC) #10
vogelheim
On 2016/07/18 13:12:19, rmcilroy wrote: > https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden > File test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden > (right): > > https://codereview.chromium.org/2152853002/diff/1/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden#newcode153 ...
4 years, 5 months ago (2016-07-18 16:18:15 UTC) #11
adamk
I'm surprised not to see any more test changes; is there any way to get ...
4 years, 5 months ago (2016-07-18 17:27:41 UTC) #12
adamk
4 years, 5 months ago (2016-07-18 17:27:49 UTC) #13
rmcilroy
Addressed review comments, PTAL. > I'm surprised not to see any more test changes; is ...
4 years, 5 months ago (2016-07-19 14:31:55 UTC) #14
adamk
lgtm % CHECK issue (feel free to revert to the old code if you'd prefer) ...
4 years, 5 months ago (2016-07-19 19:26:31 UTC) #19
rmcilroy
https://codereview.chromium.org/2152853002/diff/20001/src/ast/ast-value-factory.h File src/ast/ast-value-factory.h (right): https://codereview.chromium.org/2152853002/diff/20001/src/ast/ast-value-factory.h#newcode149 src/ast/ast-value-factory.h:149: DCHECK_EQ(STRING, type_); On 2016/07/19 19:26:31, adamk wrote: > Oh, ...
4 years, 5 months ago (2016-07-20 21:34:41 UTC) #20
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/2152853002/40001
4 years, 5 months ago (2016-07-21 09:17:34 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-21 09:18:51 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 09:20:30 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6b5949a8a04a2bc784bc6936cc713b466bfe2044
Cr-Commit-Position: refs/heads/master@{#37931}

Powered by Google App Engine
This is Rietveld 408576698