summaryrefslogtreecommitdiffstats
path: root/js/ipc/JavaScriptShared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/ipc/JavaScriptShared.cpp')
-rw-r--r--js/ipc/JavaScriptShared.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/ipc/JavaScriptShared.cpp b/js/ipc/JavaScriptShared.cpp
index 9786243f2..961a3f910 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)
{