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

Issue 2902423002: Revert of Make non-Module generators only context allocate parameters. (Closed)

Created:
3 years, 6 months ago by Michael Achenbach
Modified:
3 years, 6 months ago
Reviewers:
kozy, neis, Jarin, adamk, jgruber
CC:
v8-reviews_googlegroups.com, marja+watch_chromium.org, kozy, Benedikt Meurer
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Revert of Make non-Module generators only context allocate parameters. (patchset #11 id:220001 of https://codereview.chromium.org/2898163002/ ) Reason for revert: Speculative revert for layout test changes: https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/builds/15868 Looks like this might have caused the change in: inspector/sources/debugger-ui/function-generator-details.html See also: https://github.com/v8/v8/wiki/Blink-layout-tests Original issue's description: > Make non-Module generators only context allocate parameters. > > In particular, local variables should be allocated on stack (in bytecode register), and stored/loaded to the generator object on generator suspend/resume. > > The CL is based on @adamk's change to scoping/parsers (https://chromium-review.googlesource.com/c/498538/), I only made the debugger cope with this change. > > I should note that the CL changes the scope type of suspended generators from ScopeType.Closure to ScopeType.Local. In the future we might want to introduce ScopeType.SuspendedGenerator to make the distinction explicit. > > Some of the changes in the tests have been made because the debugger functions do not return scopes of closed generators anymore. Generators should be allowed to throw away their internal state when they finish. > > BUG=v8:6368 > > Review-Url: https://codereview.chromium.org/2898163002 > Cr-Commit-Position: refs/heads/master@{#45515} > Committed: https://chromium.googlesource.com/v8/v8/+/a957b0f42468d632b09574e3d6719c704eebbfea TBR=adamk@chromium.org,jgruber@chromium.org,neis@chromium.org,jarin@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=v8:6368

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3413 lines, -2741 lines) Patch
M src/ast/scopes.h View 2 chunks +0 lines, -8 lines 0 comments Download
M src/ast/scopes.cc View 2 chunks +1 line, -3 lines 0 comments Download
M src/debug/debug-scopes.h View 3 chunks +5 lines, -11 lines 0 comments Download
M src/debug/debug-scopes.cc View 12 chunks +34 lines, -100 lines 0 comments Download
M src/parsing/parser.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M src/runtime/runtime-debug.cc View 2 chunks +0 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden View 5 chunks +1258 lines, -1001 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden View 5 chunks +926 lines, -711 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 11 chunks +516 lines, -387 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StandardForLoop.golden View 4 chunks +604 lines, -448 lines 0 comments Download
M test/debugger/debug/debug-scopes-suspended-generators.js View 15 chunks +24 lines, -25 lines 0 comments Download
M test/debugger/debug/es8/async-function-debug-evaluate.js View 4 chunks +12 lines, -12 lines 0 comments Download
M test/debugger/debug/es8/async-function-debug-scopes.js View 3 chunks +2 lines, -4 lines 0 comments Download
M test/debugger/debug/regress-3225.js View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/debugger/suspended-generator-scopes-expected.txt View 4 chunks +16 lines, -16 lines 0 comments Download
M test/inspector/runtime/internal-properties-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Michael Achenbach
Created Revert of Make non-Module generators only context allocate parameters.
3 years, 6 months ago (2017-05-25 17:38:41 UTC) #1
Michael Achenbach
FYI Alexey and Benedikt. Maybe we had two changes in a row that change layout ...
3 years, 6 months ago (2017-05-25 17:39:45 UTC) #2
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/2902423002/1
3 years, 6 months ago (2017-05-25 17:39:57 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gcc_compile_dbg on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gcc_compile_dbg/builds/1106) v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 6 months ago (2017-05-25 17:41:27 UTC) #6
kozy
I'll revert it tomorrow manually. Based on test results - before we was able to ...
3 years, 6 months ago (2017-05-25 22:46:02 UTC) #8
kozy
3 years, 6 months ago (2017-05-26 09:41:58 UTC) #10
Message was sent while issue was closed.
Removing scopes for closed generators is one of the intention of original CL, so
we need to mark related tests as NeedsManualRebaseline only and rebase it later:
https://codereview.chromium.org/2910623002

Powered by Google App Engine
This is Rietveld 408576698