Adding visitors to regurgitate expression types or reset them.
authorbradnelson <bradnelson@google.com>
Mon, 24 Aug 2015 17:16:38 +0000 (10:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 24 Aug 2015 17:16:49 +0000 (17:16 +0000)
commit10f2c5c33a65a4b92fb44a7809e8e7be253264dc
treec00b6ff9ca16546f0ece6bdb85987a380d086c41
parentf0e3d51840634b2648391e85469e6f2ef6247dae
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

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

Cr-Commit-Position: refs/heads/master@{#30336}
12 files changed:
BUILD.gn
src/ast-expression-visitor.cc [new file with mode: 0644]
src/ast-expression-visitor.h [new file with mode: 0644]
src/typing-reset.cc [new file with mode: 0644]
src/typing-reset.h [new file with mode: 0644]
test/cctest/cctest.gyp
test/cctest/expression-type-collector-macros.h [new file with mode: 0644]
test/cctest/expression-type-collector.cc [new file with mode: 0644]
test/cctest/expression-type-collector.h [new file with mode: 0644]
test/cctest/test-ast-expression-visitor.cc [new file with mode: 0644]
test/cctest/test-typing-reset.cc [new file with mode: 0644]
tools/gyp/v8.gyp