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

Issue 1288773007: Adding visitors to regurgitate expression types or reset them. (Closed)

Created:
5 years, 4 months ago by bradn
Modified:
5 years, 4 months ago
Reviewers:
titzer, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Adding visitors to regurgitate expression types or reset them. Adding an AstExpressionVisitor to touch each expression node in an AST. Adding TypingReseter to clear the slate after a failed asm.js validation that has set partial typing information. Adding a ExpressionTypeCollector to walk the expressions in an AST and emit them as a string for testing. Adding tests of the above. LOG=N BUG= https://code.google.com/p/v8/issues/detail?id=4203 TEST=test-typing-reset,test-ast-expression-visitor R=rossberg@chromium.org,titzer@chromium.org Committed: https://crrev.com/10f2c5c33a65a4b92fb44a7809e8e7be253264dc Cr-Commit-Position: refs/heads/master@{#30336}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : revise #

Patch Set 3 : revise #

Patch Set 4 : merge #

Patch Set 5 : fix windows #

Patch Set 6 : fix asan #

Total comments: 8

Patch Set 7 : revision #

Total comments: 4

Patch Set 8 : fixes #

Patch Set 9 : fix #

Total comments: 1

Patch Set 10 : back to macros #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1133 lines, -2 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A src/ast-expression-visitor.h View 1 2 3 4 5 6 9 1 chunk +49 lines, -0 lines 0 comments Download
A src/ast-expression-visitor.cc View 1 2 3 4 5 6 8 9 1 chunk +337 lines, -0 lines 0 comments Download
A src/typing-reset.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A src/typing-reset.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
A test/cctest/expression-type-collector.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A test/cctest/expression-type-collector.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
A test/cctest/expression-type-collector-macros.h View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A test/cctest/test-ast-expression-visitor.cc View 1 2 3 4 5 6 7 1 chunk +258 lines, -0 lines 0 comments Download
A test/cctest/test-typing-reset.cc View 1 2 3 4 5 6 7 1 chunk +285 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
bradn
5 years, 4 months ago (2015-08-19 08:06:59 UTC) #3
titzer
https://codereview.chromium.org/1288773007/diff/40001/src/ast-expression-visitor.cc File src/ast-expression-visitor.cc (right): https://codereview.chromium.org/1288773007/diff/40001/src/ast-expression-visitor.cc#newcode167 src/ast-expression-visitor.cc:167: ++depth_; IIUC, you are using the depth counter as ...
5 years, 4 months ago (2015-08-19 12:06:37 UTC) #4
bradn
PTAL This now gathers a list of expression type entries and uses macros to express ...
5 years, 4 months ago (2015-08-20 04:01:41 UTC) #5
rossberg
https://codereview.chromium.org/1288773007/diff/40001/src/ast-expression-visitor.h File src/ast-expression-visitor.h (right): https://codereview.chromium.org/1288773007/diff/40001/src/ast-expression-visitor.h#newcode26 src/ast-expression-visitor.h:26: void* operator new(size_t size, Zone* zone) { return zone->New(size); ...
5 years, 4 months ago (2015-08-20 16:34:27 UTC) #6
bradn
PTAL That it much niced not needing to plumb in the zone. I've sent out ...
5 years, 4 months ago (2015-08-20 21:35:47 UTC) #7
titzer
On 2015/08/20 21:35:47, bradn wrote: > PTAL > > That it much niced not needing ...
5 years, 4 months ago (2015-08-21 10:33:18 UTC) #8
titzer
https://codereview.chromium.org/1288773007/diff/160001/src/ast-expression-visitor.cc File src/ast-expression-visitor.cc (right): https://codereview.chromium.org/1288773007/diff/160001/src/ast-expression-visitor.cc#newcode17 src/ast-expression-visitor.cc:17: #define RECURSE(call) \ Can we make these real methods ...
5 years, 4 months ago (2015-08-21 12:05:51 UTC) #9
rossberg
https://codereview.chromium.org/1288773007/diff/140001/src/typing-reset.cc File src/typing-reset.cc (right): https://codereview.chromium.org/1288773007/diff/140001/src/typing-reset.cc#newcode22 src/typing-reset.cc:22: TypingReseter* visitor = new (info->zone()) TypingReseter(info); On 2015/08/20 21:35:47, ...
5 years, 4 months ago (2015-08-21 12:36:51 UTC) #10
bradn
PTAL https://codereview.chromium.org/1288773007/diff/160001/src/ast-expression-visitor.cc File src/ast-expression-visitor.cc (right): https://codereview.chromium.org/1288773007/diff/160001/src/ast-expression-visitor.cc#newcode17 src/ast-expression-visitor.cc:17: #define RECURSE(call) \ On 2015/08/21 12:05:51, titzer wrote: ...
5 years, 4 months ago (2015-08-21 21:37:08 UTC) #11
bradn
https://codereview.chromium.org/1288773007/diff/220001/src/ast-expression-visitor.cc File src/ast-expression-visitor.cc (right): https://codereview.chromium.org/1288773007/diff/220001/src/ast-expression-visitor.cc#newcode63 src/ast-expression-visitor.cc:63: RECURSE(Visit(stmt)); So Visit has baked in a short-circuit: #define ...
5 years, 4 months ago (2015-08-22 01:19:13 UTC) #13
titzer
On 2015/08/22 01:19:13, bradn wrote: > https://codereview.chromium.org/1288773007/diff/220001/src/ast-expression-visitor.cc > File src/ast-expression-visitor.cc (right): > > https://codereview.chromium.org/1288773007/diff/220001/src/ast-expression-visitor.cc#newcode63 > ...
5 years, 4 months ago (2015-08-24 09:51:25 UTC) #14
bradn
Back to the macros as discussed.
5 years, 4 months ago (2015-08-24 16:50:58 UTC) #15
titzer
lgtm
5 years, 4 months ago (2015-08-24 17:00:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288773007/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288773007/240001
5 years, 4 months ago (2015-08-24 17:03:44 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:240001)
5 years, 4 months ago (2015-08-24 17:16:44 UTC) #19
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 17:17:01 UTC) #20
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/10f2c5c33a65a4b92fb44a7809e8e7be253264dc
Cr-Commit-Position: refs/heads/master@{#30336}

Powered by Google App Engine
This is Rietveld 408576698