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

Issue 1768123002: [Interpreter] Fixes a bug when popping context to correct level on break/continue. (Closed)

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

Description

[Interpreter] Fixes a bug when popping context to correct level on break/continue. The current implementation does not consider the case when the context of the control scope and the current context differ. It is possible that they are different in some cases for example: with statements. This cl fixes this. BUG=v8:4280, v8:4680 LOG=N Committed: https://crrev.com/e260bd5356f19d8538dcadfe6d619922106719a3 Cr-Commit-Position: refs/heads/master@{#34609}

Patch Set 1 #

Total comments: 2

Patch Set 2 : "removes should_pop_context. Now context is popped always on return." #

Patch Set 3 : Restores should_pop_context_ and fixes it to pop contexts only on break/continue #

Patch Set 4 : fixed test-bytecode-generator tests #

Total comments: 8

Patch Set 5 : Fixes comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -13 lines) Patch
M src/interpreter/bytecode-generator.cc View 1 2 3 4 1 chunk +11 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryCatch.golden View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WithStatement.golden View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (17 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/1768123002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/1
4 years, 9 months ago (2016-03-07 13:13:07 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/16419)
4 years, 9 months ago (2016-03-07 13:24:34 UTC) #4
mythria
PTAL. Thanks, Mythri
4 years, 9 months ago (2016-03-07 13:57:21 UTC) #6
rmcilroy
https://codereview.chromium.org/1768123002/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1768123002/diff/1/src/interpreter/bytecode-generator.cc#newcode26 src/interpreter/bytecode-generator.cc:26: bool should_pop_context = true) Now that we are popping ...
4 years, 9 months ago (2016-03-08 07:34:37 UTC) #7
rmcilroy
And lgtm, thanks!
4 years, 9 months ago (2016-03-08 07:35:43 UTC) #8
mythria
Thanks, I removed it. https://codereview.chromium.org/1768123002/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1768123002/diff/1/src/interpreter/bytecode-generator.cc#newcode26 src/interpreter/bytecode-generator.cc:26: bool should_pop_context = true) On ...
4 years, 9 months ago (2016-03-08 11:04:23 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1768123002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/20001
4 years, 9 months ago (2016-03-08 11:04:30 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/2526) v8_linux64_rel_ng_triggered on ...
4 years, 9 months ago (2016-03-08 11:18:01 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1768123002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/40001
4 years, 9 months ago (2016-03-08 15:02:56 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/11252)
4 years, 9 months ago (2016-03-08 15:13:46 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1768123002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/60001
4 years, 9 months ago (2016-03-08 15:36:51 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 16:13:46 UTC) #23
mythria
PTAL. I pop context only on break or continue now.
4 years, 9 months ago (2016-03-08 16:35:11 UTC) #24
rmcilroy
LGTM once comments addressed. https://codereview.chromium.org/1768123002/diff/60001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1768123002/diff/60001/src/interpreter/bytecode-generator.cc#newcode369 src/interpreter/bytecode-generator.cc:369: // TODO(rmcilroy): Only emit a ...
4 years, 9 months ago (2016-03-08 17:33:40 UTC) #25
mythria
Thanks, done. Mythri https://codereview.chromium.org/1768123002/diff/60001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1768123002/diff/60001/src/interpreter/bytecode-generator.cc#newcode369 src/interpreter/bytecode-generator.cc:369: // TODO(rmcilroy): Only emit a single ...
4 years, 9 months ago (2016-03-09 10:24:45 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1768123002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/80001
4 years, 9 months ago (2016-03-09 10:25:02 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-09 10:44:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1768123002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1768123002/80001
4 years, 9 months ago (2016-03-09 11:03:11 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-09 11:04:53 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 11:05:58 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e260bd5356f19d8538dcadfe6d619922106719a3
Cr-Commit-Position: refs/heads/master@{#34609}

Powered by Google App Engine
This is Rietveld 408576698