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

Issue 1904933002: Introduce bytecodes for assisting generator suspend and resume. (Closed)

Created:
4 years, 8 months ago by neis
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Introduce bytecodes for assisting generator suspend and resume. The new bytecodes replace two runtime functions. They are still unsupported by the bytecode graphbuilder, though. BUG=v8:4907 LOG=n Committed: https://crrev.com/b09071525070dc62f6a923c2f6f8f5f1bf35dd37 Cr-Commit-Position: refs/heads/master@{#35716}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments #

Patch Set 3 : #

Patch Set 4 : Nix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -159 lines) Patch
M src/code-stub-assembler.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 4 chunks +26 lines, -5 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/code-assembler.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 2 chunks +3 lines, -8 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 1 chunk +43 lines, -0 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 2 2 chunks +69 lines, -5 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -3 lines 0 comments Download
M src/runtime/runtime-generator.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 10 chunks +74 lines, -80 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904933002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904933002/1
4 years, 8 months ago (2016-04-21 08:16:38 UTC) #2
neis
PTAL. This is orthogonal to the other CL.
4 years, 8 months ago (2016-04-21 08:43:20 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 08:48:04 UTC) #8
Benedikt Meurer
Very nice. LGTM with comment. https://codereview.chromium.org/1904933002/diff/1/src/compiler/code-assembler.h File src/compiler/code-assembler.h (right): https://codereview.chromium.org/1904933002/diff/1/src/compiler/code-assembler.h#newcode248 src/compiler/code-assembler.h:248: Node* ChangeInt32ToWord(Node* value); Rename ...
4 years, 8 months ago (2016-04-21 09:50:50 UTC) #9
Jarin
Love it! lgtm.
4 years, 8 months ago (2016-04-21 09:51:19 UTC) #10
rmcilroy
Looks great, a couple of comments. https://codereview.chromium.org/1904933002/diff/1/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/1904933002/diff/1/src/interpreter/interpreter-assembler.cc#newcode752 src/interpreter/interpreter-assembler.cc:752: Int32Sub(Int32Constant(Register::kRegisterFileStartOffset), index); I'd ...
4 years, 8 months ago (2016-04-21 10:21:32 UTC) #11
neis
https://codereview.chromium.org/1904933002/diff/1/src/compiler/code-assembler.h File src/compiler/code-assembler.h (right): https://codereview.chromium.org/1904933002/diff/1/src/compiler/code-assembler.h#newcode248 src/compiler/code-assembler.h:248: Node* ChangeInt32ToWord(Node* value); On 2016/04/21 09:50:50, Benedikt Meurer wrote: ...
4 years, 8 months ago (2016-04-21 11:30:15 UTC) #12
caitp (gmail)
full-codegen still uses that runtime func, will it be able to use the replacement instead?
4 years, 8 months ago (2016-04-21 12:43:37 UTC) #13
caitp (gmail)
On 2016/04/21 12:43:37, caitp wrote: > full-codegen still uses that runtime func, will it be ...
4 years, 8 months ago (2016-04-21 12:44:41 UTC) #14
rmcilroy
LGTM, thanks. https://codereview.chromium.org/1904933002/diff/1/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/1904933002/diff/1/src/interpreter/interpreter-assembler.cc#newcode752 src/interpreter/interpreter-assembler.cc:752: Int32Sub(Int32Constant(Register::kRegisterFileStartOffset), index); On 2016/04/21 11:30:15, neis wrote: ...
4 years, 8 months ago (2016-04-21 13:55:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904933002/40001
4 years, 8 months ago (2016-04-21 15:02:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/538) v8_linux64_rel_ng on tryserver.v8 (JOB_TIMED_OUT, ...
4 years, 8 months ago (2016-04-21 17:08:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904933002/40001
4 years, 8 months ago (2016-04-21 17:51:16 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/550)
4 years, 8 months ago (2016-04-21 19:53:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904933002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904933002/60001
4 years, 8 months ago (2016-04-22 08:56:41 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-22 09:18:03 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:11 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b09071525070dc62f6a923c2f6f8f5f1bf35dd37
Cr-Commit-Position: refs/heads/master@{#35716}

Powered by Google App Engine
This is Rietveld 408576698