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

Issue 2889973002: [Interpreter] Handle various generator intrinsics (Closed)

Created:
3 years, 7 months ago by mvstanton
Modified:
3 years, 7 months ago
Reviewers:
adamk, rmcilroy
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Handle various generator intrinsics We can avoid some runtime calls by implementing intrinsics. BUG= Review-Url: https://codereview.chromium.org/2889973002 Cr-Commit-Position: refs/heads/master@{#45418} Committed: https://chromium.googlesource.com/v8/v8/+/0980d759f5b8bcc8bf1e8dd5c1941324ad9636b6

Patch Set 1 #

Total comments: 3

Patch Set 2 : REBASE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -246 lines) Patch
M src/interpreter/interpreter-intrinsics.h View 1 chunk +30 lines, -27 lines 0 comments Download
M src/interpreter/interpreter-intrinsics-generator.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M src/runtime/runtime-generator.cc View 4 chunks +12 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden View 1 26 chunks +65 lines, -65 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden View 1 15 chunks +36 lines, -36 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 15 chunks +31 lines, -31 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 1 22 chunks +55 lines, -55 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StandardForLoop.golden View 1 18 chunks +31 lines, -31 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
mvstanton
Hi Adam, hi Ross, Here is a CL that removes 3 runtime calls from generators, ...
3 years, 7 months ago (2017-05-17 14:04:58 UTC) #4
rmcilroy
https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc File src/interpreter/interpreter-intrinsics-generator.cc (right): https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc#newcode412 src/interpreter/interpreter-intrinsics-generator.cc:412: __ LoadObjectField(generator, JSGeneratorObject::kContextOffset); Maybe there is a case for ...
3 years, 7 months ago (2017-05-17 14:48:29 UTC) #7
adamk
lgtm, thanks, this was on my backlog already :) https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc File src/interpreter/interpreter-intrinsics-generator.cc (right): https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc#newcode412 src/interpreter/interpreter-intrinsics-generator.cc:412: ...
3 years, 7 months ago (2017-05-17 17:35:31 UTC) #8
mvstanton
https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc File src/interpreter/interpreter-intrinsics-generator.cc (right): https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc#newcode412 src/interpreter/interpreter-intrinsics-generator.cc:412: __ LoadObjectField(generator, JSGeneratorObject::kContextOffset); On 2017/05/17 17:35:31, adamk wrote: > ...
3 years, 7 months ago (2017-05-18 10:00:59 UTC) #9
rmcilroy
On 2017/05/18 10:00:59, mvstanton wrote: > https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc > File src/interpreter/interpreter-intrinsics-generator.cc (right): > > https://codereview.chromium.org/2889973002/diff/1/src/interpreter/interpreter-intrinsics-generator.cc#newcode412 > ...
3 years, 7 months ago (2017-05-18 11:31:23 UTC) #10
mvstanton
Thanks guys... Okay, I did this change in the morning and decided to back off ...
3 years, 7 months ago (2017-05-19 08:36:22 UTC) #11
rmcilroy
On 2017/05/19 08:36:22, mvstanton wrote: > Thanks guys... > > Okay, I did this change ...
3 years, 7 months ago (2017-05-19 08:55:20 UTC) #12
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/2889973002/20001
3 years, 7 months ago (2017-05-19 08:56:56 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/0980d759f5b8bcc8bf1e8dd5c1941324ad9636b6
3 years, 7 months ago (2017-05-19 09:27:33 UTC) #19
mvstanton
3 years, 7 months ago (2017-05-19 09:45:34 UTC) #20
Message was sent while issue was closed.
Yep, sounds good! I could also imagine "hint" immediate values that allow us to
keep an optimized/slimmed-down bytecode and recover full type/context
information later. That should keep most of the savings and protect downwind
compilation as well.

Powered by Google App Engine
This is Rietveld 408576698