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

Issue 2079613003: [generators] Implement %GeneratorGetSourcePosition. (Closed)

Created:
4 years, 6 months ago by neis
Modified:
4 years, 6 months ago
Reviewers:
Jarin, rmcilroy, Yang
CC:
v8-reviews_googlegroups.com, oth, mythria, Benedikt Meurer, Michael Starzinger
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[generators] Implement %GeneratorGetSourcePosition. This runtime function now also works for Ignition generators. It returns the source position of the yield at which a suspended generator got suspended. This works by storing the current bytecode offset at suspension and using an existing mechanism to map it back to a source position. TBR=littledan@chromium.org BUG= Committed: https://crrev.com/7c57ffc1dfaffe0cf9fa32e6d02b3667aa0e954a Cr-Commit-Position: refs/heads/master@{#37140}

Patch Set 1 #

Patch Set 2 : enable test #

Total comments: 3

Patch Set 3 : Rename input field to input_or_debug and improve comments. #

Patch Set 4 : rename again, and move subtraction to runtime #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -88 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/access-builder.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/access-builder.cc View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M src/compiler/js-operator.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/s390/full-codegen-s390.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M src/interpreter/interpreter-assembler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +18 lines, -9 lines 0 comments Download
M src/objects.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-generator.cc View 1 2 3 6 chunks +3 lines, -19 lines 0 comments Download
M src/s390/builtins-s390.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/x87/builtins-x87.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M test/mjsunit/es6/generators-mirror.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (13 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/2079613003/1
4 years, 6 months ago (2016-06-17 14:17:20 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 14:44:42 UTC) #4
neis
ptal
4 years, 6 months ago (2016-06-17 15:15:11 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079613003/20001
4 years, 6 months ago (2016-06-17 15:17:24 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 15:39:12 UTC) #11
Jarin
lgtm https://codereview.chromium.org/2079613003/diff/20001/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/2079613003/diff/20001/src/compiler/js-typed-lowering.cc#newcode1740 src/compiler/js-typed-lowering.cc:1740: FieldAccess input_field = AccessBuilder::ForJSGeneratorObjectInput(); Please, add some explanation ...
4 years, 6 months ago (2016-06-20 07:56:50 UTC) #12
rmcilroy
LGTM with one suggestion. https://codereview.chromium.org/2079613003/diff/20001/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/2079613003/diff/20001/src/compiler/js-typed-lowering.cc#newcode1740 src/compiler/js-typed-lowering.cc:1740: FieldAccess input_field = AccessBuilder::ForJSGeneratorObjectInput(); On ...
4 years, 6 months ago (2016-06-20 11:11:26 UTC) #13
Yang
On 2016/06/20 11:11:26, rmcilroy wrote: > LGTM with one suggestion. > > https://codereview.chromium.org/2079613003/diff/20001/src/compiler/js-typed-lowering.cc > File ...
4 years, 6 months ago (2016-06-21 06:34:43 UTC) #14
neis
On 2016/06/20 11:11:26, rmcilroy wrote: > https://codereview.chromium.org/2079613003/diff/20001/src/interpreter/interpreter.cc#newcode1825 > src/interpreter/interpreter.cc:1825: __ StoreObjectField(generator, > JSGeneratorObject::kInputOffset, offset); > ...
4 years, 6 months ago (2016-06-21 07:36:06 UTC) #15
rmcilroy
On 2016/06/21 07:36:06, neis wrote: > On 2016/06/20 11:11:26, rmcilroy wrote: > > > https://codereview.chromium.org/2079613003/diff/20001/src/interpreter/interpreter.cc#newcode1825 ...
4 years, 6 months ago (2016-06-21 08:38:46 UTC) #16
neis
On 2016/06/21 08:38:46, rmcilroy wrote: > On 2016/06/21 07:36:06, neis wrote: > > On 2016/06/20 ...
4 years, 6 months ago (2016-06-21 11:17:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079613003/60001
4 years, 6 months ago (2016-06-21 11:17:53 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/17651)
4 years, 6 months ago (2016-06-21 11:22:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079613003/60001
4 years, 6 months ago (2016-06-21 11:43:36 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-21 12:12:58 UTC) #27
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 12:13:57 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7c57ffc1dfaffe0cf9fa32e6d02b3667aa0e954a
Cr-Commit-Position: refs/heads/master@{#37140}

Powered by Google App Engine
This is Rietveld 408576698