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

Issue 2933283002: [objects] Relax JSBoundFunction verification. (Closed)

Created:
3 years, 6 months ago by Benedikt Meurer
Modified:
3 years, 6 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[objects] Relax JSBoundFunction verification. The heap verifier does certain invariant checks on JSBoundFunction objects, i.e. it assumes that the bound_target_function is a proper JSReceiver. The Deoptimizer cannot maintain this invariant, because it first allocates the JSBoundFunction in an invalid state and only afterwards fix up the state. But the GC (and thus the heap verifier) can observe this invalid state why materializing field values, so we need to relax the verification slightly. BUG=chromium:729573, chromium:732176 R=mstarzinger@chromium.org Review-Url: https://codereview.chromium.org/2933283002 Cr-Commit-Position: refs/heads/master@{#45988} Committed: https://chromium.googlesource.com/v8/v8/+/a9b9c7ab8ca8c0ae749eb119418fb4cc037a93de

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M src/objects.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-debug.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Benedikt Meurer
3 years, 6 months ago (2017-06-13 06:57:27 UTC) #1
Benedikt Meurer
Hey Michi, Here's the fix for the Deoptimizer unhappiness with my JSBoundFunction patch. I didn't ...
3 years, 6 months ago (2017-06-13 06:58:36 UTC) #4
Michael Starzinger
https://codereview.chromium.org/2933283002/diff/1/src/deoptimizer.cc File src/deoptimizer.cc (right): https://codereview.chromium.org/2933283002/diff/1/src/deoptimizer.cc#newcode4436 src/deoptimizer.cc:4436: slot->value_ = object; This only works because escape analysis ...
3 years, 6 months ago (2017-06-13 07:57:32 UTC) #7
Michael Starzinger
LGTM once comment is addressed.
3 years, 6 months ago (2017-06-13 07:58:27 UTC) #8
Benedikt Meurer
Hm, this sounds dangerous. Should we relax the object verifier instead?
3 years, 6 months ago (2017-06-13 08:21:08 UTC) #9
Michael Starzinger
Jaro and I just had a brief chat about this as well. He also suggested ...
3 years, 6 months ago (2017-06-13 09:13:16 UTC) #11
Jarin
On 2017/06/13 09:13:16, Michael Starzinger wrote: > Jaro and I just had a brief chat ...
3 years, 6 months ago (2017-06-13 09:28:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2933283002/20001
3 years, 6 months ago (2017-06-19 06:40:46 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 07:09:16 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/a9b9c7ab8ca8c0ae749eb119418fb4cc037...

Powered by Google App Engine
This is Rietveld 408576698