Open Bug 918840 Opened 11 years ago Updated 1 year ago

Change GETINTRINSIC to create lazily-cloned functions instead of immediately eager-cloning

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

People

(Reporter: till, Unassigned)

References

(Blocks 1 open bug)

Details

Iterators use self-hosting to initialize prototypes. That means that it installs methods by looking them up using GETINTRINSIC. This means that all thus-installed methods get cloned eagerly.

Now, this isn't as bad as it sounds, because all of this only happens upon first instantiation of a legacy generator.

Still, I can't think of any good reasons for GETINTRINSIC not to do lazy-cloning, so it probably should.
Assignee: general → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.