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

Issue 2385123002: [ignition] Fix building lookup graph when search depth is 0 (Closed)

Created:
4 years, 2 months ago by Leszek Swirski
Modified:
4 years, 2 months ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com, rmcilroy, ranjitkan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ignition] Fix building lookup graph when search depth is 0 In some (rare) cases, the context depth passed to a dynamic variable lookup can be zero. In these cases, the fast path for the lookup (i.e. load from context or global) can always be taken, as there is no need to search the current context. However, with no slow path checks, the bytecode graph builder had a null environment for the slow path, causing segfaults when this graph was built. This patch adds a null check for the slow path environment, and skips building the slow path if the environment is null. BUG=chromium:652186 Committed: https://crrev.com/4ad35791199a48e2e503b0f6193f93ab3141be00 Cr-Commit-Position: refs/heads/master@{#39949}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove singleton merge when there is no slow path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -43 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 4 chunks +46 lines, -37 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-652186-global.js View 1 chunk +3 lines, -4 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-652186-local.js View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Leszek Swirski
4 years, 2 months ago (2016-10-03 11:36:17 UTC) #4
Michael Starzinger
LGTM with nits. https://codereview.chromium.org/2385123002/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2385123002/diff/1/src/compiler/bytecode-graph-builder.cc#newcode952 src/compiler/bytecode-graph-builder.cc:952: NewMerge(); nit: Shouldn't we only create ...
4 years, 2 months ago (2016-10-04 09:43:10 UTC) #7
Leszek Swirski
Thanks, I'll go ahead and commit https://codereview.chromium.org/2385123002/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2385123002/diff/1/src/compiler/bytecode-graph-builder.cc#newcode952 src/compiler/bytecode-graph-builder.cc:952: NewMerge(); On 2016/10/04 ...
4 years, 2 months ago (2016-10-04 10:46:55 UTC) #10
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/2385123002/20001
4 years, 2 months ago (2016-10-04 10:47:13 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-04 11:07:58 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 11:08:21 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4ad35791199a48e2e503b0f6193f93ab3141be00
Cr-Commit-Position: refs/heads/master@{#39949}

Powered by Google App Engine
This is Rietveld 408576698