Open Bug 1145430 Opened 10 years ago Updated 3 months ago

Untangle DebugScopeProxy::handleUnaliasedAccess

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: jorendorff, Unassigned)

Details

Waldo on DebugScopeProxy::handleUnaliasedAccess (in bug 1142794, comment 5): > It's extraordinarily frustrating to have all accesses -- sets and gets > both -- go through a single method. :-( It's thus impossible to tell > from the signature what'll happen, and what will be affected by the > call. > > We've been in this situation before -- I *remember* having one > massive, messy function for this sort of thing before, and manually > disentangling it into something far more readable. It was a huge win > for readability. And now, we've regressed to exactly the same > situation again. :-( > > Could you file a followup to break this method into handleUnaliasedGet > and handleUnaliasedSet, have each of those methods delegate to get/set > methods existing on CallObject and on ClonedBlockObject, and then pair > up those classes' get/set methods at the source level to aid in > comparisons of the two, with whatever prefatory code-sharing is > possible in such system? > > Once this happens, there will be no need to copy |v| here.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.