12011-04-04 Geoffrey Garen <ggaren@apple.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Fixed a weak-handle-related leak in RegisterFile
6 https://bugs.webkit.org/show_bug.cgi?id=57793
7
8 * interpreter/RegisterFile.cpp: Nixed leaky GlobalObjectNotifier.
9 * interpreter/RegisterFile.h:
10 (JSC::RegisterFile::GlobalObjectOwner::finalize):
11 (JSC::RegisterFile::RegisterFile): Replaced GlobalObjectNotifier with
12 a per-RegisterFile weak handle owner, which does not leak.
13
14 * runtime/WeakGCPtr.h:
15 (JSC::WeakGCPtr::set): Allow set() to take a context argument, since
16 RegisterFile now needs this. (Seems like it was an accidental omission
17 all along.)
18