Bug 1362205 - Annotate ScopeKinds in JS_GetTraceThingInfo(). r=sfink
authorAndrew McCreight <continuation@gmail.com>
Fri, 05 May 2017 09:26:29 -0700
changeset 356864 a717a61128accd351be6554bb747ef34f779c59b
parent 356863 5a4de575944b503ec8d3f5e301200c3abc69e020
child 356865 a88c73f843dc199a6f584cdc2829d05369de1ce9
push id31775
push userihsiao@mozilla.com
push dateMon, 08 May 2017 03:10:38 +0000
treeherdermozilla-central@22aaf8bad4df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1362205
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1362205 - Annotate ScopeKinds in JS_GetTraceThingInfo(). r=sfink MozReview-Commit-ID: 8Hti5sQAXGA
js/src/gc/Tracer.cpp
--- a/js/src/gc/Tracer.cpp
+++ b/js/src/gc/Tracer.cpp
@@ -459,16 +459,22 @@ JS_GetTraceThingInfo(char* buf, size_t b
                     snprintf(buf, bufsize, "<nonlinear desc>");
                 }
             } else {
                 snprintf(buf, bufsize, "<null>");
             }
             break;
           }
 
+          case JS::TraceKind::Scope:
+          {
+            js::Scope* scope = static_cast<js::Scope*>(thing);
+            snprintf(buf, bufsize, " %s", js::ScopeKindString(scope->kind()));
+          }
+
           default:
             break;
         }
     }
     buf[bufsize - 1] = '\0';
 }
 
 JS::CallbackTracer::CallbackTracer(JSContext* cx, WeakMapTraceKind weakTraceKind)