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

Issue 1322773002: Add asm.js typer / validator. (Closed)

Created:
5 years, 3 months ago by bradn
Modified:
5 years, 3 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

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 Committed: https://crrev.com/546d9a70ace27ccecbf4adaad44bdeee6de135b7 Cr-Commit-Position: refs/heads/master@{#30520}

Patch Set 1 : fix #

Patch Set 2 : based on landing others #

Total comments: 10

Patch Set 3 : fixes #

Total comments: 6

Patch Set 4 : fixes and merge #

Patch Set 5 : fix merge issue #

Patch Set 6 : fix merge issue #

Total comments: 2

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2088 lines, -0 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A src/typing-asm.h View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
A src/typing-asm.cc View 1 2 3 4 5 6 1 chunk +1070 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/test-asm-validator.cc View 1 2 3 4 5 6 1 chunk +918 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
bradn
5 years, 3 months ago (2015-08-30 07:09:13 UTC) #2
titzer
https://codereview.chromium.org/1322773002/diff/40001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/1322773002/diff/40001/src/typing-asm.cc#newcode59 src/typing-asm.cc:59: #define RECURSE_EXPR(expr, expected_type, msg) \ Can these four macros ...
5 years, 3 months ago (2015-08-31 09:13:36 UTC) #3
bradn
PTAL https://codereview.chromium.org/1322773002/diff/40001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/1322773002/diff/40001/src/typing-asm.cc#newcode59 src/typing-asm.cc:59: #define RECURSE_EXPR(expr, expected_type, msg) \ On 2015/08/31 09:13:36, ...
5 years, 3 months ago (2015-08-31 17:34:44 UTC) #4
titzer
https://codereview.chromium.org/1322773002/diff/60001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/1322773002/diff/60001/src/typing-asm.cc#newcode343 src/typing-asm.cc:343: RECURSE(VisitWithExpectation(stmt->cond(), cache_.kInt32, Is this also true? I thought asm ...
5 years, 3 months ago (2015-08-31 19:16:11 UTC) #5
bradn
PTAL https://codereview.chromium.org/1322773002/diff/60001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/1322773002/diff/60001/src/typing-asm.cc#newcode343 src/typing-asm.cc:343: RECURSE(VisitWithExpectation(stmt->cond(), cache_.kInt32, On 2015/08/31 19:16:11, titzer wrote: > ...
5 years, 3 months ago (2015-08-31 19:40:13 UTC) #6
titzer
lgtm with comment https://codereview.chromium.org/1322773002/diff/110001/src/typing-asm.cc File src/typing-asm.cc (right): https://codereview.chromium.org/1322773002/diff/110001/src/typing-asm.cc#newcode44 src/typing-asm.cc:44: AsmTyper::AsmTyper(CompilationInfo* info) Can we make this ...
5 years, 3 months ago (2015-09-01 14:28:37 UTC) #7
bradn
Will do a similar switch on the other AstVisitors in another CL. https://codereview.chromium.org/1322773002/diff/110001/src/typing-asm.cc File src/typing-asm.cc ...
5 years, 3 months ago (2015-09-01 16:28:41 UTC) #8
bradn
5 years, 3 months ago (2015-09-01 16:28:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322773002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322773002/130001
5 years, 3 months ago (2015-09-01 16:29:03 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:130001)
5 years, 3 months ago (2015-09-01 18:30:39 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 18:30:47 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/546d9a70ace27ccecbf4adaad44bdeee6de135b7
Cr-Commit-Position: refs/heads/master@{#30520}

Powered by Google App Engine
This is Rietveld 408576698