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

Issue 1831053003: Check for proper types from error handling code (Closed)

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

Description

Check for proper types from error handling code A bug in error printing meant that we failed to do proper type checks before calling into C++ code, which could lead to RUNTIME_ASSERT failures if methods are called on alternative receivers. This patch adds the right type checks. BUG=chromium:596718 LOG=Y R=adamk Committed: https://crrev.com/97fce6214e946ad5c1e09656a0317308a75f3dc3 Cr-Commit-Position: refs/heads/master@{#35069}

Patch Set 1 #

Patch Set 2 : regression test #

Total comments: 2

Patch Set 3 : more tests #

Patch Set 4 : Update golden test expectations #

Patch Set 5 : Ignore IfConditions output change #

Patch Set 6 : rebase golden again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M src/js/messages.js View 1 chunk +21 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
A test/mjsunit/regress/regress-596718.js View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
Dan Ehrenberg
4 years, 9 months ago (2016-03-24 20:56:54 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831053003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831053003/20001
4 years, 9 months ago (2016-03-24 20:56:54 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/12875)
4 years, 9 months ago (2016-03-24 21:01:45 UTC) #5
adamk
https://codereview.chromium.org/1831053003/diff/20001/src/js/messages.js File src/js/messages.js (right): https://codereview.chromium.org/1831053003/diff/20001/src/js/messages.js#newcode574 src/js/messages.js:574: if (!IS_RECEIVER(obj) || !HAS_PRIVATE(obj, callSiteFunctionSymbol)) { Remind me, does ...
4 years, 9 months ago (2016-03-24 21:03:11 UTC) #6
Dan Ehrenberg
https://codereview.chromium.org/1831053003/diff/20001/src/js/messages.js File src/js/messages.js (right): https://codereview.chromium.org/1831053003/diff/20001/src/js/messages.js#newcode574 src/js/messages.js:574: if (!IS_RECEIVER(obj) || !HAS_PRIVATE(obj, callSiteFunctionSymbol)) { On 2016/03/24 at ...
4 years, 9 months ago (2016-03-24 21:39:07 UTC) #7
adamk
+yangguo FYI, but lgtm to quiet ClusterFuzz
4 years, 9 months ago (2016-03-24 21:43:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831053003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831053003/40001
4 years, 9 months ago (2016-03-24 21:55:47 UTC) #10
commit-bot: I haz the power
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/14329)
4 years, 9 months ago (2016-03-24 22:10:09 UTC) #12
Dan Ehrenberg
Ross, Stefano, could you take a look at the bytecode expectations changes that this leads ...
4 years, 9 months ago (2016-03-24 22:36:47 UTC) #14
adamk
On 2016/03/24 22:36:47, Dan Ehrenberg wrote: > Ross, Stefano, could you take a look at ...
4 years, 9 months ago (2016-03-24 23:53:26 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831053003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831053003/80001
4 years, 9 months ago (2016-03-24 23:56:05 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/15784)
4 years, 9 months ago (2016-03-25 00:11:23 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/1831053003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831053003/100001
4 years, 9 months ago (2016-03-25 00:28:53 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 00:57:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831053003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831053003/100001
4 years, 9 months ago (2016-03-25 02:04:48 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-25 02:08:52 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 02:10:09 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/97fce6214e946ad5c1e09656a0317308a75f3dc3
Cr-Commit-Position: refs/heads/master@{#35069}

Powered by Google App Engine
This is Rietveld 408576698