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

Issue 1523423003: [Interpreter] Marks that 'throw' has returned a value. (Closed)

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

Description

[Interpreter] Marks that 'throw' has returned a value. This is to fix some of the failing test262 tests with ignition flag. In few test262 tests, there is a throw from the script scope. Rewriter::Rewrite pass converts expression statements into assignment statements in script scope. This causes interpreter to fail because assignment expression expects a result in accumulator but throw statement does not return a value. To fix this, we now mark that accumulator contains a value when visiting throw statement. BUG=v8:4280 LOG=N Committed: https://crrev.com/232e28d65e95ec928cdc339ab51bfb93654bc1e2 Cr-Commit-Position: refs/heads/master@{#33408}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased the patch. #

Patch Set 3 : Throw always marks that a result is returned. #

Total comments: 5

Patch Set 4 : Fixes nits and updates mjsunit.status and test262.status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -17 lines) Patch
M src/interpreter/bytecode-generator.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 8 chunks +0 lines, -11 lines 0 comments Download
M test/test262/test262.status View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
mythria
Could you please take a look. Andreas, I never looked at parsing code, so I ...
5 years ago (2015-12-16 16:34:06 UTC) #2
mythria
Michi, This is the cl I was explaining you today afternoon. Could you please take ...
4 years, 11 months ago (2016-01-18 16:41:35 UTC) #4
Michael Starzinger
Looking good. https://codereview.chromium.org/1523423003/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1523423003/diff/1/src/interpreter/bytecode-generator.cc#newcode1546 src/interpreter/bytecode-generator.cc:1546: if (info()->literal()->scope()->is_script_scope() || I wouldn't even narrow ...
4 years, 11 months ago (2016-01-18 21:23:03 UTC) #5
mythria
Thanks, I fixed it. PTAL. Thanks, Mythri https://codereview.chromium.org/1523423003/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1523423003/diff/1/src/interpreter/bytecode-generator.cc#newcode1546 src/interpreter/bytecode-generator.cc:1546: if (info()->literal()->scope()->is_script_scope() ...
4 years, 11 months ago (2016-01-19 10:48:04 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/1523423003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523423003/40001
4 years, 11 months ago (2016-01-19 10:48:26 UTC) #9
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 11 months ago (2016-01-19 10:48:28 UTC) #11
rmcilroy
LGTM thanks! Before landing, could you check the tests I disabled in https://codereview.chromium.org/1595223004/ and see ...
4 years, 11 months ago (2016-01-19 11:45:55 UTC) #12
Michael Starzinger
LGTM. https://codereview.chromium.org/1523423003/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1523423003/diff/40001/src/interpreter/bytecode-generator.cc#newcode412 src/interpreter/bytecode-generator.cc:412: VisitForEffect(scope()->GetIllegalRedeclaration()); On 2016/01/19 10:48:04, mythria wrote: > GetIllegalRedeclaration ...
4 years, 11 months ago (2016-01-19 11:46:00 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/1523423003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523423003/60001
4 years, 11 months ago (2016-01-20 13:17:29 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-20 13:38:13 UTC) #17
mythria
I updated test262.status and mjsunit.status. It fixes 2 out of 3 from test262 and very ...
4 years, 11 months ago (2016-01-20 13:45:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523423003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523423003/60001
4 years, 11 months ago (2016-01-20 13:45:42 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-20 13:49:00 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 13:49:27 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/232e28d65e95ec928cdc339ab51bfb93654bc1e2
Cr-Commit-Position: refs/heads/master@{#33408}

Powered by Google App Engine
This is Rietveld 408576698