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

Issue 1286383005: Parse arrow functions at proper precedence level (Closed)

Created:
5 years, 4 months ago by wingo
Modified:
5 years, 4 months ago
CC:
v8-dev, aperez, Michael Starzinger, Yang, Michael Hablich, vogelheim
Base URL:
https://chromium.googlesource.com/v8/v8@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Parse arrow functions at proper precedence level BUG=v8:4211 LOG=Y R=rossberg@chromium.org Committed: https://crrev.com/9271b0ccf9ddb217deb1f0b9ef9b59b64dc40214 Cr-Commit-Position: refs/heads/master@{#30298}

Patch Set 1 : Add test #

Total comments: 6

Patch Set 2 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -34 lines) Patch
M src/ast.h View 3 chunks +17 lines, -1 line 0 comments Download
M src/ast-literal-reindexer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ast-numbering.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/ast-loop-assignment-analyzer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/messages.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/parser.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pattern-rewriter.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/preparser.h View 1 3 chunks +27 lines, -28 lines 0 comments Download
M src/prettyprinter.cc View 3 chunks +15 lines, -0 lines 0 comments Download
M src/typing.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M test/message/arrow-missing.out View 1 chunk +3 lines, -3 lines 0 comments Download
A test/mjsunit/harmony/regress/regress-4211.js View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
wingo
+mstarzinger for the TF bits. WDYT Andreas? This patch is to fix a precedence corner ...
5 years, 4 months ago (2015-08-20 13:09:17 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286383005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286383005/20001
5 years, 4 months ago (2015-08-20 13:38:05 UTC) #4
Michael Starzinger
The compiler and full-code parts look OK, didn't look at the rest (or at the ...
5 years, 4 months ago (2015-08-20 13:38:10 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-20 14:38:20 UTC) #9
rossberg
https://codereview.chromium.org/1286383005/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1286383005/diff/20001/src/preparser.h#newcode2288 src/preparser.h:2288: result = Nit: unnecessary line break? https://codereview.chromium.org/1286383005/diff/20001/src/preparser.h#newcode2290 src/preparser.h:2290: // ...
5 years, 4 months ago (2015-08-20 16:50:00 UTC) #10
wingo
Fixed nits; PTAL. Thanks :) https://codereview.chromium.org/1286383005/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1286383005/diff/20001/src/preparser.h#newcode2288 src/preparser.h:2288: result = On 2015/08/20 ...
5 years, 4 months ago (2015-08-21 09:50:49 UTC) #12
rossberg
lgtm
5 years, 4 months ago (2015-08-21 10:33:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286383005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286383005/60001
5 years, 4 months ago (2015-08-21 10:34:32 UTC) #15
Michael Starzinger
LGTM on compiler directory.
5 years, 4 months ago (2015-08-21 10:38:11 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 4 months ago (2015-08-21 11:33:33 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9271b0ccf9ddb217deb1f0b9ef9b59b64dc40214 Cr-Commit-Position: refs/heads/master@{#30298}
5 years, 4 months ago (2015-08-21 11:33:54 UTC) #19
fennyfanny655
5 years, 4 months ago (2015-08-21 12:01:54 UTC) #21
fennyfanny655
5 years, 4 months ago (2015-08-21 12:01:56 UTC) #22
Michael Achenbach
Guess this breaks layout test expectations: http://build.chromium.org/p/client.v8.fyi/console?branch=master Please revert or adapt blink-upstream asap.
5 years, 4 months ago (2015-08-21 17:07:36 UTC) #24
Yang
5 years, 4 months ago (2015-08-24 06:56:44 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:60001) has been created in
https://codereview.chromium.org/1315503002/ by yangguo@chromium.org.

The reason for reverting is: Breaks layout test. Please change test expectation
on blink first.

---
/mnt/data/b/build/slave/V8-Blink_Linux_64/build/layout-test-results/inspector/sources/debugger-pause/debugger-pause-in-internal-expected.txt
+++
/mnt/data/b/build/slave/V8-Blink_Linux_64/build/layout-test-results/inspector/sources/debugger-pause/debugger-pause-in-internal-actual.txt
@@ -1,4 +1,4 @@
-CONSOLE ERROR: line 9: Uncaught SyntaxError: Expected () to start arrow
function, but got '}' instead of '=>'
+CONSOLE ERROR: line 9: Uncaught SyntaxError: Unexpected token )
 Tests that pause on exception in internal script does not crash.
 
 Script source was shown..

Powered by Google App Engine
This is Rietveld 408576698