summaryrefslogtreecommitdiffstats
path: root/js/src/vm/GeckoProfiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/GeckoProfiler.cpp')
-rw-r--r--js/src/vm/GeckoProfiler.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/src/vm/GeckoProfiler.cpp b/js/src/vm/GeckoProfiler.cpp
index dbf1eb9081..91f03b3432 100644
--- a/js/src/vm/GeckoProfiler.cpp
+++ b/js/src/vm/GeckoProfiler.cpp
@@ -371,12 +371,11 @@ void GeckoProfilerRuntime::fixupStringsMapAfterMovingGC() {
#ifdef JSGC_HASH_TABLE_CHECKS
void GeckoProfilerRuntime::checkStringsMapAfterMovingGC() {
- for (auto r = strings().all(); !r.empty(); r.popFront()) {
- BaseScript* script = r.front().key();
+ CheckTableAfterMovingGC(strings(), [](const auto& entry) {
+ BaseScript* script = entry.key();
CheckGCThingAfterMovingGC(script);
- auto ptr = strings().lookup(script);
- MOZ_RELEASE_ASSERT(ptr.found() && &*ptr == &r.front());
- }
+ return script;
+ });
}
#endif