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

Issue 1957393004: Allow Turbofan optimization of Ignition generators (Closed)

Created:
4 years, 7 months ago by neis
Modified:
4 years, 7 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

Allow Turbofan optimization of Ignition generators, first version. In the bytecode graphbuilder, translate the two generator-specific bytecodes as a couple of runtime calls for now. BUG=v8:4907 LOG=n Committed: https://crrev.com/3cc7315eda083f940c6b476bcb55c0d43344eed3 Cr-Commit-Position: refs/heads/master@{#36134}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -200 lines) Patch
M src/bailout-reason.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 chunks +38 lines, -4 lines 0 comments Download
M src/compiler/js-graph.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/js-graph.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/linkage.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M src/compiler/register-allocator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/runtime/runtime-generator.cc View 1 2 chunks +49 lines, -1 line 0 comments Download
M src/types.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/harmony/generators.js View 1 15 chunks +223 lines, -183 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
neis
PTAL https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc#newcode739 src/compiler.cc:739: if (IsGeneratorFunction(info->shared_info()->kind()) && !use_turbofan) { Does this make ...
4 years, 7 months ago (2016-05-10 10:03:22 UTC) #5
rmcilroy
https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc#newcode739 src/compiler.cc:739: if (IsGeneratorFunction(info->shared_info()->kind()) && !use_turbofan) { On 2016/05/10 10:03:22, neis ...
4 years, 7 months ago (2016-05-10 10:23:21 UTC) #7
Benedikt Meurer
LGTM with comments/nits from my side. https://codereview.chromium.org/1957393004/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler/bytecode-graph-builder.cc#newcode1375 src/compiler/bytecode-graph-builder.cc:1375: NewNode(javascript()->CallRuntime(Runtime::kGeneratorWriteRegister), Nit: use ...
4 years, 7 months ago (2016-05-10 10:32:08 UTC) #8
Michael Starzinger
https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc#newcode739 src/compiler.cc:739: if (IsGeneratorFunction(info->shared_info()->kind()) && !use_turbofan) { On 2016/05/10 10:23:21, rmcilroy ...
4 years, 7 months ago (2016-05-10 10:37:11 UTC) #9
Jarin
Awesome! lgtm.
4 years, 7 months ago (2016-05-10 10:46:35 UTC) #10
Michael Starzinger
Looking good. I like it. https://codereview.chromium.org/1957393004/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler/bytecode-graph-builder.cc#newcode1377 src/compiler/bytecode-graph-builder.cc:1377: environment()->LookupRegister(interpreter::Register(i))); nit: Better pull ...
4 years, 7 months ago (2016-05-10 10:53:05 UTC) #11
neis
https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/1957393004/diff/1/src/compiler.cc#newcode739 src/compiler.cc:739: if (IsGeneratorFunction(info->shared_info()->kind()) && !use_turbofan) { On 2016/05/10 10:37:11, Michael ...
4 years, 7 months ago (2016-05-10 11:32:06 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957393004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957393004/20001
4 years, 7 months ago (2016-05-10 11:33:14 UTC) #15
Michael Starzinger
LGTM.
4 years, 7 months ago (2016-05-10 11:48:29 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 12:04:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957393004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957393004/20001
4 years, 7 months ago (2016-05-10 12:04:47 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-10 12:07:12 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 12:07:41 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3cc7315eda083f940c6b476bcb55c0d43344eed3
Cr-Commit-Position: refs/heads/master@{#36134}

Powered by Google App Engine
This is Rietveld 408576698