diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2019-04-29 12:08:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 12:08:50 +0300 |
commit | cf319d581ca94d304a1a9741a5466c96d9179ce6 (patch) | |
tree | f54c35c8893a301f0c135046246ff6f7aae1396a /js/ipc/JavaScriptShared.cpp | |
parent | bb1fad0fa728c7e95c6e06dfae63254b2c2e2966 (diff) | |
download | UXP-cf319d581ca94d304a1a9741a5466c96d9179ce6.tar UXP-cf319d581ca94d304a1a9741a5466c96d9179ce6.tar.gz UXP-cf319d581ca94d304a1a9741a5466c96d9179ce6.tar.lz UXP-cf319d581ca94d304a1a9741a5466c96d9179ce6.tar.xz UXP-cf319d581ca94d304a1a9741a5466c96d9179ce6.zip |
Improve dead compartment collection js/ipc
Diffstat (limited to 'js/ipc/JavaScriptShared.cpp')
-rw-r--r-- | js/ipc/JavaScriptShared.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/ipc/JavaScriptShared.cpp b/js/ipc/JavaScriptShared.cpp index 9786243f2..aba02252d 100644 --- a/js/ipc/JavaScriptShared.cpp +++ b/js/ipc/JavaScriptShared.cpp @@ -61,6 +61,15 @@ IdToObjectMap::find(ObjectId id) return p->value(); } +JSObject* +IdToObjectMap::findPreserveColor(ObjectId id) +{ + Table::Ptr p = table_.lookup(id); + if (!p) + return nullptr; + return p->value().unbarrieredGet(); + } + bool IdToObjectMap::add(ObjectId id, JSObject* obj) { @@ -757,4 +766,4 @@ CPOWManager* mozilla::jsipc::CPOWManagerFor(PJavaScriptChild* aChild) { return static_cast<JavaScriptChild*>(aChild); -} +}
\ No newline at end of file |