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

Issue 2162853003: Simplify and correct logic in CallSite::GetMethodName (Closed)

Created:
4 years, 5 months ago by adamk
Modified:
4 years, 5 months ago
Reviewers:
Yang
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

Simplify and correct logic in CallSite::GetMethodName SharedFunctionInfo::name is always a String if present (never a Symbol), so there's no need to first test it for IsName() before testing IsString(). This is enforced by a check in %FunctionSetName. As a bonus, the code no longer looks invalid (unconditionally casting a Name to a String). The logic came into this broken-looking state accidentally in the flag cleanup CL https://codereview.chromium.org/2096933002/. Committed: https://crrev.com/f1cf71aa4daf3f8975b528fd9c554b17dd26cf14 Cr-Commit-Position: refs/heads/master@{#37914}

Patch Set 1 #

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

Messages

Total messages: 12 (7 generated)
adamk
4 years, 5 months ago (2016-07-19 19:53:40 UTC) #2
Yang
On 2016/07/19 19:53:40, adamk wrote: lgtm.
4 years, 5 months ago (2016-07-20 06:19:34 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/2162853003/1
4 years, 5 months ago (2016-07-20 18:09:39 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-20 18:12:23 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 18:13:58 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f1cf71aa4daf3f8975b528fd9c554b17dd26cf14
Cr-Commit-Position: refs/heads/master@{#37914}

Powered by Google App Engine
This is Rietveld 408576698