DescriptionSimplify 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 #
Messages
Total messages: 12 (7 generated)
|