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

Issue 1801473003: [ignition, debugger] correctly set position for return with elided bytecode. (Closed)

Created:
4 years, 9 months ago by Yang
Modified:
4 years, 9 months ago
Reviewers:
rmcilroy, vogelheim
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

[ignition, debugger] correctly set position for return with elided bytecode. We may not emit bytecode for the evaluation of the to-be-returned expression. In that case we cannot set two return positions for a return statement (one before and one after the expression evaluation). This sets the interpreter apart from full-codegen. Make sure that we always have the second of the two return positions. Note that we end up with separate test cases for ignition and FCG. R=rmcilroy@chromium.org, vogelheim@chromium.org BUG=v8:4690 LOG=N Committed: https://crrev.com/3c1dc424d3f2f651ad5f250817eb10c7078da2bc Cr-Commit-Position: refs/heads/master@{#34771}

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressed comments #

Total comments: 1

Patch Set 3 : do not use --ignition flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -14 lines) Patch
M src/interpreter/bytecode-array-builder.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/source-position-table.h View 1 1 chunk +16 lines, -4 lines 0 comments Download
M src/interpreter/source-position-table.cc View 1 2 chunks +19 lines, -8 lines 0 comments Download
A test/mjsunit/ignition/elided-instruction.js View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A test/mjsunit/ignition/elided-instruction-no-ignition.js View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M test/unittests/interpreter/source-position-table-unittest.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Yang
4 years, 9 months ago (2016-03-14 09:24:22 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801473003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801473003/1
4 years, 9 months ago (2016-03-14 09:32:32 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/13725)
4 years, 9 months ago (2016-03-14 10:00:43 UTC) #5
vogelheim
I'm not quite sure... Please have a look at the comments. https://codereview.chromium.org/1801473003/diff/1/src/interpreter/source-position-table.cc File src/interpreter/source-position-table.cc (right): ...
4 years, 9 months ago (2016-03-14 10:41:15 UTC) #6
Yang
https://codereview.chromium.org/1801473003/diff/1/src/interpreter/source-position-table.cc File src/interpreter/source-position-table.cc (right): https://codereview.chromium.org/1801473003/diff/1/src/interpreter/source-position-table.cc#newcode142 src/interpreter/source-position-table.cc:142: if (bytes_.size() > 0 && previous_.bytecode_offset == entry.bytecode_offset) { ...
4 years, 9 months ago (2016-03-14 11:32:34 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/1801473003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801473003/20001
4 years, 9 months ago (2016-03-14 11:33:23 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 11:55:17 UTC) #11
rmcilroy
LGTM, thanks! https://codereview.chromium.org/1801473003/diff/20001/test/mjsunit/ignition/elided-instruction.js File test/mjsunit/ignition/elided-instruction.js (right): https://codereview.chromium.org/1801473003/diff/20001/test/mjsunit/ignition/elided-instruction.js#newcode5 test/mjsunit/ignition/elided-instruction.js:5: // Flags: --expose-debug-as debug --ignition --nostress-opt --noalways-opt ...
4 years, 9 months ago (2016-03-14 14:54:55 UTC) #12
Yang
On 2016/03/14 14:54:55, rmcilroy wrote: > LGTM, thanks! > > https://codereview.chromium.org/1801473003/diff/20001/test/mjsunit/ignition/elided-instruction.js > File test/mjsunit/ignition/elided-instruction.js (right): ...
4 years, 9 months ago (2016-03-14 15:02:59 UTC) #13
vogelheim
lgtm
4 years, 9 months ago (2016-03-14 17:24:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801473003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801473003/40001
4 years, 9 months ago (2016-03-15 08:03:44 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-15 08:26:31 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 08:28:10 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3c1dc424d3f2f651ad5f250817eb10c7078da2bc
Cr-Commit-Position: refs/heads/master@{#34771}

Powered by Google App Engine
This is Rietveld 408576698