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 2320673002: [deoptimizer] Clear context before NotifyDeoptimized. (Closed)

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

Description

[deoptimizer] Clear context before NotifyDeoptimized. This clears the context register by setting it to Smi(0) before calling the Runtime::kNotifyDeoptimized helper. The deoptimizer must be able to materialize all heap objects without any context available. The context itself might be dematerialized. With this change we make sure that invariant is maintained even without escape analysis kicking in. We also satisfy the check that the context register is either Smi(0) or a valid context. It might have been the special {arguments_marker} in this particular case. R=bmeurer@chromium.org BUG=chromium:644245 Committed: https://crrev.com/96164b74f1fa5a73a9632eaae9179813cd6a0a92 Cr-Commit-Position: refs/heads/master@{#39267}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -19 lines) Patch
M src/deoptimizer.cc View 8 chunks +36 lines, -16 lines 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 chunks +16 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (14 generated)
Michael Starzinger
4 years, 3 months ago (2016-09-07 15:29:06 UTC) #7
Benedikt Meurer
Very nice, I like this a lot. LGTM. https://codereview.chromium.org/2320673002/diff/1/src/runtime/runtime-compiler.cc File src/runtime/runtime-compiler.cc (right): https://codereview.chromium.org/2320673002/diff/1/src/runtime/runtime-compiler.cc#newcode175 src/runtime/runtime-compiler.cc:175: DCHECK(isolate->context() ...
4 years, 3 months ago (2016-09-07 16:58:00 UTC) #8
Michael Starzinger
Thanks! Addressed comments. Landing. https://codereview.chromium.org/2320673002/diff/1/src/runtime/runtime-compiler.cc File src/runtime/runtime-compiler.cc (right): https://codereview.chromium.org/2320673002/diff/1/src/runtime/runtime-compiler.cc#newcode175 src/runtime/runtime-compiler.cc:175: DCHECK(isolate->context() == nullptr); On 2016/09/07 ...
4 years, 3 months ago (2016-09-08 08:46:42 UTC) #9
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/2320673002/20001
4 years, 3 months ago (2016-09-08 09:49:37 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-08 09:51:39 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 09:52:17 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/96164b74f1fa5a73a9632eaae9179813cd6a0a92
Cr-Commit-Position: refs/heads/master@{#39267}

Powered by Google App Engine
This is Rietveld 408576698