Add asm.js typer / validator.
authorbradnelson <bradnelson@google.com>
Tue, 1 Sep 2015 18:30:34 +0000 (11:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Sep 2015 18:30:43 +0000 (18:30 +0000)
commit546d9a70ace27ccecbf4adaad44bdeee6de135b7
tree09548bd038d6c2a0a9f6382fb81161f5414f3b58
parent05f01b3f8e2fbb2eac0f4495d165f928b2679570
Add asm.js typer / validator.

Walk asm.js module ASTs, attach concrete type information
in preparation for generating a WASM module.

cctest test coverage (mjsunit coming in later CL).
Expressions, function tables, and foreign functions have coverage.
Statement coverage to be expanded in a later CL.

BUG= https://code.google.com/p/v8/issues/detail?id=4203
TEST=test-asm-validator
R=rossberg@chromium.org,titzer@chromium.org
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#30520}
BUILD.gn
src/typing-asm.cc [new file with mode: 0644]
src/typing-asm.h [new file with mode: 0644]
test/cctest/cctest.gyp
test/cctest/test-asm-validator.cc [new file with mode: 0644]
tools/gyp/v8.gyp