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

Issue 2435823002: [V8][asm.js] Adds support to global const variables. (Closed)

Created:
4 years, 2 months ago by John
Modified:
4 years, 1 month ago
Reviewers:
bradnelson, aseemgarg, bradn
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[V8][asm.js] Adds support to global const variables. This CL adds support for: https://discourse.wicg.io/t/allow-const-global-variables/684 It allows global const variables to be used as if they were numeric literals. For example: const f0 = fround(0); ... function foo() { var v = f0; // no type annotation. ... return f0; // no return type annotation. } BUG= https://bugs.chromium.org/p/v8/issues/detail?id=5540 Committed: https://crrev.com/5331e3b61633b5b95b487353b4d08346abf48eee Cr-Commit-Position: refs/heads/master@{#40477}

Patch Set 1 #

Patch Set 2 : Changes expected error messages in asm-typer cctest. #

Total comments: 8

Patch Set 3 : Addresses comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -15 lines) Patch
M src/asmjs/asm-typer.h View 1 2 3 chunks +12 lines, -3 lines 0 comments Download
M src/asmjs/asm-typer.cc View 1 2 5 chunks +73 lines, -10 lines 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 2 3 chunks +29 lines, -2 lines 0 comments Download
M test/mjsunit/asm/asm-validation.js View 1 2 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
John
4 years, 2 months ago (2016-10-19 19:46:38 UTC) #8
bradnelson
lgtm https://codereview.chromium.org/2435823002/diff/20001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2435823002/diff/20001/src/asmjs/asm-typer.cc#newcode765 src/asmjs/asm-typer.cc:765: VariableInfo::Mutability mutability; Maybe a comment linking to the ...
4 years, 2 months ago (2016-10-19 21:52:07 UTC) #12
aseemgarg
Didn't realize const was allowed in asmjs. Do we have plumbing to raise an error ...
4 years, 2 months ago (2016-10-19 22:24:11 UTC) #13
bradn
In the errata (See the bug)... :-) but why?!?! So this change works with the ...
4 years, 2 months ago (2016-10-19 22:45:22 UTC) #14
titzer
On 2016/10/19 22:24:11, aseemgarg wrote: > Didn't realize const was allowed in asmjs. Do we ...
4 years, 2 months ago (2016-10-20 08:20:53 UTC) #15
John
ptal https://codereview.chromium.org/2435823002/diff/20001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2435823002/diff/20001/src/asmjs/asm-typer.cc#newcode765 src/asmjs/asm-typer.cc:765: VariableInfo::Mutability mutability; On 2016/10/19 21:52:07, bradnelson wrote: > ...
4 years, 2 months ago (2016-10-20 15:13:22 UTC) #18
bradn
lgtm
4 years, 2 months ago (2016-10-20 15:20:34 UTC) #19
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/2435823002/40001
4 years, 2 months ago (2016-10-20 15:20:45 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-20 15:48:33 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:08:32 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5331e3b61633b5b95b487353b4d08346abf48eee
Cr-Commit-Position: refs/heads/master@{#40477}

Powered by Google App Engine
This is Rietveld 408576698