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

Issue 2258073003: Fix Scanner invariants w/ literal buffers. (Closed)

Created:
4 years, 4 months ago by vogelheim
Modified:
4 years, 4 months ago
Reviewers:
marja
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

Fix Scanner invariants w/ literal buffers. This isn't the most elegant fix, but I'd prefer to not rework the logic right now. What happens is: - Most parts of the Scanner use nullptr to mean, no literal buffer. - The bookmarking logic may end up with a state where there's a non-nullptr literal buffer, but it's empty. (length 0) - These are functionally equivalent, so there's no 'real' bug. - But it makes it hard to reason. This patch hence checks for length-0 literal buffers, and uses nullptr instead. R=marja@chromium.org BUG=chromium:639191 v8:4947 Committed: https://crrev.com/b68df2d27010b8fcf4f50f73644335dd584eecac Cr-Commit-Position: refs/heads/master@{#38756}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M src/parsing/scanner.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/parsing/scanner.cc View 2 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
marja
lgtm, seems trivial
4 years, 4 months ago (2016-08-19 12:12:07 UTC) #1
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/2258073003/1
4 years, 4 months ago (2016-08-19 14:07:07 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-19 15:25:14 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 15:25:32 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b68df2d27010b8fcf4f50f73644335dd584eecac
Cr-Commit-Position: refs/heads/master@{#38756}

Powered by Google App Engine
This is Rietveld 408576698