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

Issue 2668003002: Trivial simplification in JSObject::AddDataElement. (Closed)

Created:
3 years, 10 months ago by jbroman
Modified:
3 years, 10 months ago
Reviewers:
Camillo Bruni
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Trivial simplification in JSObject::AddDataElement. Spotted by clang static analyzer, these variables are declared outside of the condition but only used within. Review-Url: https://codereview.chromium.org/2668003002 Cr-Commit-Position: refs/heads/master@{#42970} Committed: https://chromium.googlesource.com/v8/v8/+/790518c13043ba0c83fa7cf9c240ed9f151bd1e3

Patch Set 1 #

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

Messages

Total messages: 12 (8 generated)
jbroman
The clang static analyzer pointed this out. Totally trivial (maybe not even worth landing), but ...
3 years, 10 months ago (2017-02-02 19:39:49 UTC) #6
Camillo Bruni
LGTM, nice! This has probably potential for further optimization as NewNumberFromUint creates an unecessary handle, ...
3 years, 10 months ago (2017-02-06 14:28:11 UTC) #7
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/2668003002/1
3 years, 10 months ago (2017-02-06 14:30:47 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 14:57:46 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/790518c13043ba0c83fa7cf9c240ed9f151...

Powered by Google App Engine
This is Rietveld 408576698