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

Issue 2751693002: [wasm][asm.js] Adding custom asm.js lexer. (Closed)

Created:
3 years, 9 months ago by bradnelson
Modified:
3 years, 9 months ago
CC:
v8-reviews_googlegroups.com, Karl
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm][asm.js] Adding custom asm.js lexer. Adding a custom lexer for asm.js parsing. It takes advantage of a number of asm.js properties to simply things: * Assumes 'use asm' is the only string. * Does not handle unicode for now (tools don't emit it). * Combines global + local string table with lexer. R=marja@chromium.org,vogelheim@chromium.org,kschimpf@chromium.org BUG=v8:4203 BUG=v8:6090 Review-Url: https://codereview.chromium.org/2751693002 Cr-Commit-Position: refs/heads/master@{#43874} Committed: https://chromium.googlesource.com/v8/v8/+/4c3217e13292a3aab056b5800678754c8dac8bfe

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix warning #

Total comments: 88

Patch Set 4 : revised #

Patch Set 5 : drop unused #

Patch Set 6 : fix warning #

Patch Set 7 : check #

Total comments: 39

Patch Set 8 : fix #

Patch Set 9 : i #

Patch Set 10 : fix #

Total comments: 14

Patch Set 11 : fix #

Patch Set 12 : fix #

Patch Set 13 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+997 lines, -13 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A src/asmjs/asm-names.h View 1 2 3 4 5 6 7 1 chunk +110 lines, -0 lines 0 comments Download
A src/asmjs/asm-scanner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +158 lines, -0 lines 1 comment Download
A src/asmjs/asm-scanner.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +413 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M src/parsing/scanner.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -12 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M src/parsing/scanner-character-streams.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M test/unittests/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A test/unittests/asmjs/asm-scanner-unittest.cc View 1 2 3 4 5 6 7 1 chunk +290 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 77 (55 generated)
bradnelson
Carved off a part of this: https://codereview.chromium.org/2733743002/ I've added some amount of tests, but will ...
3 years, 9 months ago (2017-03-14 05:21:41 UTC) #3
marja
Some initial comments. https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc#newcode80 src/asmjs/asm-lexer.cc:80: } else if (ch == kEndOfInput) ...
3 years, 9 months ago (2017-03-14 11:11:48 UTC) #14
vogelheim
I'll assume kschimpf@ is the main reviewer for this CL, as I have no insight ...
3 years, 9 months ago (2017-03-14 13:36:38 UTC) #15
Karl
https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc#newcode74 src/asmjs/asm-lexer.cc:74: if (ch == ' ' || ch == '\t' ...
3 years, 9 months ago (2017-03-14 18:00:47 UTC) #17
bradn
https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc#newcode57 src/asmjs/asm-lexer.cc:57: #if 0 On 2017/03/14 13:36:37, vogelheim wrote: > Please ...
3 years, 9 months ago (2017-03-15 07:53:04 UTC) #34
vogelheim
lgtm Generally looks good. I think the strtod issue is a real bug, though. https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc ...
3 years, 9 months ago (2017-03-15 12:07:41 UTC) #41
vogelheim
https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/40001/src/asmjs/asm-lexer.cc#newcode254 src/asmjs/asm-lexer.cc:254: double_value_ = strtod(name_.c_str(), &end); On 2017/03/15 07:53:03, bradn wrote: ...
3 years, 9 months ago (2017-03-15 12:10:11 UTC) #42
marja
More comments; I didn't have a detailed look but I think I don't need to, ...
3 years, 9 months ago (2017-03-15 12:34:50 UTC) #43
Karl
https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc#newcode163 src/asmjs/asm-lexer.cc:163: return i.first.c_str(); Why not just: return i.first; https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc#newcode168 src/asmjs/asm-lexer.cc:168: ...
3 years, 9 months ago (2017-03-15 15:04:13 UTC) #44
bradn
PTAL https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc#newcode9 src/asmjs/asm-lexer.cc:9: #include "src/objects.h" On 2017/03/15 12:34:49, marja wrote: > ...
3 years, 9 months ago (2017-03-16 00:21:47 UTC) #47
vogelheim
lgtm - except for the thing in parsing/scanner.cc; I don't get that. The bots appear ...
3 years, 9 months ago (2017-03-16 12:46:48 UTC) #54
Karl
lgtm. The code looks good, except for the small issues noted by vogelheim.
3 years, 9 months ago (2017-03-16 15:33:16 UTC) #55
bradn
https://codereview.chromium.org/2751693002/diff/200001/src/asmjs/asm-scanner.cc File src/asmjs/asm-scanner.cc (right): https://codereview.chromium.org/2751693002/diff/200001/src/asmjs/asm-scanner.cc#newcode333 src/asmjs/asm-scanner.cc:333: if (ch == kEndOfInput) { On 2017/03/16 12:46:47, vogelheim ...
3 years, 9 months ago (2017-03-16 17:03:16 UTC) #58
marja
https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc File src/asmjs/asm-lexer.cc (right): https://codereview.chromium.org/2751693002/diff/140001/src/asmjs/asm-lexer.cc#newcode11 src/asmjs/asm-lexer.cc:11: #include "src/parsing/scanner.h" On 2017/03/16 00:21:47, bradn wrote: > On ...
3 years, 9 months ago (2017-03-16 17:05:33 UTC) #59
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/2751693002/220001
3 years, 9 months ago (2017-03-16 17:09:39 UTC) #63
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/2751693002/240001
3 years, 9 months ago (2017-03-16 17:13:11 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/14918) v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 9 months ago (2017-03-16 17:15:41 UTC) #68
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/2751693002/260001
3 years, 9 months ago (2017-03-16 17:22:02 UTC) #71
commit-bot: I haz the power
Committed patchset #13 (id:260001) as https://chromium.googlesource.com/v8/v8/+/4c3217e13292a3aab056b5800678754c8dac8bfe
3 years, 9 months ago (2017-03-16 18:10:54 UTC) #74
marja
Some post-commit stuff I noticed when reviewing the parser part.. https://codereview.chromium.org/2751693002/diff/260001/src/asmjs/asm-scanner.h File src/asmjs/asm-scanner.h (right): https://codereview.chromium.org/2751693002/diff/260001/src/asmjs/asm-scanner.h#newcode100 ...
3 years, 9 months ago (2017-03-20 14:29:24 UTC) #75
bradn
https://codereview.chromium.org/2770803002/
3 years, 9 months ago (2017-03-22 23:07:37 UTC) #76
bradn
3 years, 9 months ago (2017-03-22 23:08:01 UTC) #77
Message was sent while issue was closed.
I meant: https://codereview.chromium.org/2769013002

Powered by Google App Engine
This is Rietveld 408576698