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

Issue 1628173002: Don't NULL-check GlobalHandle::Node::object_ (Closed)

Created:
4 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 11 months ago
Reviewers:
vogelheim
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

Don't NULL-check GlobalHandle::Node::object_ If it's Smi::FromInt(0), the NULL check would trigger. Instead, use the handle-zap value to mean "not set". BUG=v8:3647, chromium:580651 R=vogelheim@chromium.org LOG=y Committed: https://crrev.com/85f32f1fc8b59a1b91404b0515a935df1f86b7f9 Cr-Commit-Position: refs/heads/master@{#33492}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M src/global-handles.cc View 3 chunks +4 lines, -3 lines 4 comments Download
M test/cctest/test-global-handles.cc View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
jochen (gone - plz use gerrit)
4 years, 11 months ago (2016-01-25 09:47:46 UTC) #1
vogelheim
lgtm https://codereview.chromium.org/1628173002/diff/1/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1628173002/diff/1/src/global-handles.cc#newcode81 src/global-handles.cc:81: object_ = reinterpret_cast<Object*>(kGlobalHandleZapValue); nitpick: Wouldn't it be better ...
4 years, 11 months ago (2016-01-25 12:00:19 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1628173002/diff/1/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1628173002/diff/1/src/global-handles.cc#newcode81 src/global-handles.cc:81: object_ = reinterpret_cast<Object*>(kGlobalHandleZapValue); On 2016/01/25 at 12:00:19, vogelheim wrote: ...
4 years, 11 months ago (2016-01-25 13:05:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1628173002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1628173002/1
4 years, 11 months ago (2016-01-25 13:07:58 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-25 13:09:33 UTC) #6
commit-bot: I haz the power
4 years, 11 months ago (2016-01-25 13:10:14 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/85f32f1fc8b59a1b91404b0515a935df1f86b7f9
Cr-Commit-Position: refs/heads/master@{#33492}

Powered by Google App Engine
This is Rietveld 408576698